Given I have the following serie:
series1.add(3, 0);
series1.add(6, 0);
series1.add(13, 0);
series1.add(34, 0);
series1.add(49, 1.0);
series1.add(51, 0);
series1.add(54, 0);
series1.add(55, 0);
series1.add(60, 0);
series1.add(89, 0);
series1.add(108, 0);
series1.add(208, 0);
series1.add(228, 0);
For X values I would like to not use any interval (range) for these values. In resume, I like to display, for x-axis exactly the values listed on series 1.
This is possible ?
Thanks
You can do this using the setRange method.
xAxis.setRange(min, max);
In your case the min is 3 and the max is 228. Simply use the method (xAxis.setRange(3, 228);) and your problem is solved.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.