How to get the X / Y values when clicking on a chart?
I use:
But the value is not the X or Y data value but the position.
Any pointers?
Ok, I tried pixelToPoint but I am getting strange values for x and y
My X is DateTime and my y is double but I can both strange number on both that does not co-relate
Example:
flutter: x value = 1627705874222.692, y value = -169.7426470588235
Actual should be x DateTime and y in the range between -20 to +2
Why does this happen?
Hi
I used the below:
I get only approx. values from DateTime; it is off by few minutes to more than 15 mins
and totally wrong values for y.
Has it got to do with the Controller, zoom or position?
Also, I forget to mention that there are more than one series in the chart; so which series is the data from?
Hope to hear from you soon.
I am still not getting accurate results. I am using FastLineSeries. Does it make a difference?
DateTime is off few minutes and Y values are way off by hundreds. My Y values are between -30 to +30 only
flutter: x value = 04-Aug-2021 17:48:55, y value = -316.93014705882354
code:
Been a week and I am still struggling with this...
I discovered a strange observation. I have 4 series of FastLineSeries.
When I only set one ChartSeriesController for one series, it does not work.
But if I set one unique ChartSeriesController per FastLineSeries, then it seems to be working.
I will have, like, 20 Series; so must I have one unique controller per series?
in my
my series is
myChartSeries is derived from future builder of
And this is created from below:
Do you see any
Hi
I am using xAxisName based on the sample file sent because I want 2 X-axis in my chart.
Can I have 2 X-Axises without using xAxisName?
The issue here I am facing is that the X and Y values are wrong..
Perhaps my series were created or configured wrongly?
I have created multiple controllers for each series.
I am now facing another issue; when Zoomed, or Panned, the X/Y values will be wrong.
What must I do when I zoomed and and clicked on the chart to get values?