Hi all,
my data content is as below
//I provide the code in the zip file
x_axis = { 4, 4.25, 4.5, 4.75, 5, 5.25, 5.5, 5.75, 6, ..., 19, 19.25, 19.5, 19.75, 20}, increased by 0.25, x_axis.count = 65
y_axis = {3600, 3600, 3600, 3600, ..., 3600}, all the value is 3600, y_axis.count = 65
I do not know why the Chart(StackingAreaSeries) looks so strange when the x-axis type set as NumericalAxis. [Screenshot_1.png]
When the x-axis type changed to CategoryAxis, the graph part of this chart is what I want. [Screenshot_2.png]
I found that if we do not set the interval manually, then the API will change the interval according to the width of the screen size. [Screenshot_3.png and Screenshot_4.png are two different width size of the device]
So I want to specify the x-axis to make it show as {4,6,8,10,12,14,16,18,20} [Screenshot_2.png]
*Questions*
1. Why the graph looks strange with the x-axis type NumericalAxis, and it looks normal with CategoryAxis?
2. The NumericalAxis cannot set the interval, so what should I do with my data?
*** Please download the zip file
Attachment:
Question20201215_13067efe.zip