Hello,
i'm trying to fetch data from firebase, here is my database.
i only have one key in the 'ruangan2' with a timestamp. i want to using timestamp as the x axis, in the datetimecategoryaxis. but after i tried, i receive an error like this.
could you provide me some explanation, why this error occured? and please provide the solution. Thank you in advanced.
Hi Syaifullah,
Greetings from Syncfusion. We have analyzed your scenario with the DateTimeCategoryAxis, and no issue gets reproduced. Can you please check this case with the latest chart package version because the reported issue already got fixed and rolled out. If you are still facing any issues, please get back to us, with more information like a video record, if possible, please provide a sample to reproduce the issue. That will be more helpful to us to provide a solution sooner.
Regards,
Yuvaraj.
Hello Yuvaraj,
Thank you for replying.
The issue has solved for my problem. When there are 2 or more data in 'ruangan2', the datetimecategory axis not throw any exception anymore. Still, i don't know why, when in 'ruangan2' only has one data, the datetimecategoryaxis is throw exception about formatException. I checked the file that contain method 'DateTimeCategoryAxis.getFormattedLabel, the error occured in the int.parse(label) inside the method. please consider to check this method.
thank you,
Syaifullah
Hi Syaifullah,
The reported issue has already been fixed and it will be available in our upcoming weekly patch release, which is expected on 14th June 2022. We will update you once the release gets rolled out and we appreciate your patience until then.
Regards,
Yuvaraj.
Hi Syaifullah,
Thanks for your patience, the reported issue regarding getting an exception while having one data in DateTimeCategoryAxis has been fixed and rolled on in our weekly patch release. To avoid this issue, kindly upgrade the chart package to the latest version below.
Version: https://pub.dev/packages/syncfusion_flutter_charts/versions/20.1.60
Regards,
Yuvaraj.