Open angel1st opened 5 years ago
I have the same issue when recreating the chart in an interval of about 500ms (creating a new stateless widget with a line chart). And there's actually weird rendering behaviour in the animation. I tried to circumvent this by making the widget stateful and only updating the series data, but then nothing gets rendered, because - I guess - the chart doesn't consider content changes but requires to be rebuild. Wich kinda sucks, because we need to update the chart often. One could solve this by disabling animation, but the graph looks kind of dull then.
Chart configuration is changing more frequent than threshold of 500. Check if your behavior, axis, or renderer config is missing equality checks that may be causing configuration to be detected as changed.
@override
Widget build(BuildContext context) => charts.LineChart(
_seriesList,
animate: widget.animate,
behaviors: [
charts.SeriesLegend(
position: charts.BehaviorPosition.bottom,
),
],
primaryMeasureAxis: charts.NumericAxisSpec(
tickFormatterSpec:
charts.BasicNumericTickFormatterSpec.fromNumberFormat(
_ThroughputMeasureFormat(
isMegaBitPerSecond: widget.isMegaBitPerSecond),
),
),
secondaryMeasureAxis: charts.NumericAxisSpec(
tickFormatterSpec:
charts.BasicNumericTickFormatterSpec.fromNumberFormat(
_ThroughputMeasureFormat(
isMegaBitPerSecond: widget.isMegaBitPerSecond),
),
),
domainAxis: charts.NumericAxisSpec(
tickFormatterSpec:
charts.BasicNumericTickFormatterSpec.fromNumberFormat(
_TimeDomainFormat(),
),
),
);
I don't know, how to put in the mentioned equality checks
.
same...no solution yet?
Up!
Hi there, When creating
gauge
chart, I have following warning, constantly logged to the output:Here is how the gauge chart class looks like:
Any help would be greatly appreciated.