question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Set max xaxis value is not showing

See original GitHub issue

Hello,

when I set options.xaxis.max to certain Date, it doesn’t get rendered (although it’s value is being sent to my xaxis labels formatter).

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
junedchhipacommented, Sep 15, 2018

I think - you want something like this, right? screen shot 2018-09-16 at 12 56 16 am

You will have to turn off the automatic timescale generation and use the custom xaxis.labels.formatter function along with setting the xaxis.tickAmount property.

For eg., I used moment.js to format dates and set the tickAmount to 2

xaxis: {
    type: 'datetime',
    tickAmount: 2,
    min: new Date('13 Nov 2017').getTime(),
    max: new Date('08 Dec 2017').getTime(),
    labels: {
        formatter: function(val) {
            return moment(new Date(val)).format("DD MMM");
        }
    }
},
0reactions
AshokLKumawatcommented, Dec 18, 2022

Im using apex zoomable timeseries , as im selection particular date its doesn’t show me 24 hour, also its show me pervious day time, image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Change the scale of the vertical (value) axis in a chart
Click the chart. On the Format tab, click Vertical (Value) Axis in the dropdown list and then click Format Pane. In the Format...
Read more >
Show only min and max values on x-axis in column chart
Show activity on this post. Right click the chart and choose Select Data. In the x-axis label range, choose C1:10. Because you only...
Read more >
Y axis max value not displayed? · Issue #1003 - GitHub
Currently, to attempt to achieve this, I'm setting the following values on my chart: chart.getAxisLeft().setAxisMaxValue(200f); chart.
Read more >
Why Can't I set Y-AXES min and max values - Stack Overflow
A Chart control added from the designer has a default ChartArea and a Series and a Legend , all associated.
Read more >
Changing the Axis Scale (Microsoft Excel)
Note that in order to adjust the Bounds and Units settings, Excel needs to recognize the data in an axis as a range...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found