Not able to plot negative and fractional values on graph

hi, 

I want to plot fractional and negative values on graph but I am getting error while plotting. Please refer below info 

Data Set - 

0.113

0.113

0.113

0.113

-0.233

-0.233

-0.233

-0.233


Error Log while plotting the above data set on graph - 

[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: RangeError (index): Invalid value: Only valid value is 0: 1

#0 List.[] (dart:core-patch/growable_array.dart:264:36)

#1 _MyHomePageState.initState.<anonymous closure>.<anonymous closure> (package:schneider_demo/main_file.dart:130:44)

#2 State.setState (package:flutter/src/widgets/framework.dart:1114:30)

#3 _MyHomePageState.initState.<anonymous closure> (package:schneider_demo/main_file.dart:111:7)

<asynchronous suspension>


I am using Flutter Version - "syncfusion_flutter_charts: 20.1.61"

Can you please check and let me know how to fix this issue..?

Regards 

Khal



1 Reply

YG Yuvaraj Gajaraj Syncfusion Team July 11, 2022 01:53 PM UTC

Hi Khalid,


Greetings from Syncfusion. We are not aware of which series and axis type are used to render a chart, so we have plotted the given point with the NumericAxis and line type series and it renders properly and ensured no issue is found at our end. We have attached the sample below which is used in the testing phase, if you still facing the same issue, please try to reproduce the issue in the attached sample and get back to us. It will be more helpful to us to provide a solution sooner.


Regards,

Yuvaraj.


Attachment: f176101_320d3197.zip

Loader.
Up arrow icon