You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to set the maximum value for lineChart.xAxis.axisMaximum = 5
But when I do so the graph stops scrolling.
What I mean is suppose I am having dataset [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15] for xAxis and [array or any 15 random numbers] for yAxis.
Then I achieve what I want i.e.., the chart should have max value of 5.
But what problem I face is that graph stops scrolling and I can't see values corresponding to values greater than 5 i.e.., 6,7,8,9... and so on.
The text was updated successfully, but these errors were encountered:
Here's my two cents on the subject. chart.setVisibleXRangeMaximum(5)
This however needs to be set after the data has been set in the chart.
This did the trick for me
I want to set the maximum value for
lineChart.xAxis.axisMaximum = 5
But when I do so the graph stops scrolling.
What I mean is suppose I am having dataset [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15] for xAxis and [array or any 15 random numbers] for yAxis.
Then I achieve what I want i.e.., the chart should have max value of 5.
But what problem I face is that graph stops scrolling and I can't see values corresponding to values greater than 5 i.e.., 6,7,8,9... and so on.
The text was updated successfully, but these errors were encountered: