final CartesianChartPoint<dynamic> chartPoint =
CartesianChartPoint<dynamic>( 0, double.parse((symbol?.bid ?? 0.0).toStringAsFixed((symbol?.digits ?? 0).toInt())));
pointLocation = candleController?.pointToPixel(chartPoint); <--- Return null
and then it display the chart.
the problem is with this method inside package:
final ChartAxisRendererDetails xAxisDetails =
seriesRendererDetails.xAxisDetails!; <---- Return null
We have checked and ensured the pointToPixel method in the ChartSeriesContoller is working fine without any kind of reported issue. We suspect that you have called this before the chart gets rendered in the view so that only it will get through the exception. So, we request you to share more details following,
It will be more helpful for to us assist you in a better way.
inside stack i call to chart, plotband and annotation
We have checked the shared code snippet and found that you have called the pointToPixel method inside the builder function of the StoreConnector, so we have tried the same and found that the pointToPixel method gets called before the chart rendering gets completed, in this state chart properties are not even initialized. So please try to call the pointToPixel method after the chart rendering gets completed. This will ensure that the necessary chart detail is available for the conversion to be performed accurately.