syncfusion / flutter-widgets

Syncfusion Flutter widgets libraries include high quality UI widgets and file-format packages to help you create rich, high-quality applications for iOS, Android, and web from a single code base.
1.44k stars 672 forks source link

zoomMode: ZoomMode.xy in stacked coloumn chart #1813

Closed FabioNieVec closed 4 days ago

FabioNieVec commented 1 month ago

Bug description

If I zoom in with zoomMode: ZoomMode.xy, in a Stacked column chart. The chart will only show me the stack that is the highest and also the color. It also happens if you move above the 0 y point

Steps to reproduce

  1. Zoom the chart in with y > 0, x can be anything
  2. if you move the chart 0 y = 0 than you can the all stacks
  3. if you move up they will disappear

Code sample

Code sample ```dart SfCartesianChart( legend: const Legend( isVisible: true, position: LegendPosition.bottom, overflowMode: LegendItemOverflowMode.wrap), primaryXAxis: CategoryAxis(), zoomPanBehavior: ZoomPanBehavior( enablePanning: true, zoomMode: ZoomMode.xy, enableSelectionZooming: true), series: [ StackedColumnSeries( dataSource: chartData, xValueMapper: (ChartData1 data, _) => data.x, yValueMapper: (ChartData1 data, _) => data.y1 ), StackedColumnSeries( dataSource: chartData, xValueMapper: (ChartData1 data, _) => data.x, yValueMapper: (ChartData1 data, _) => data.y2 ), StackedColumnSeries( dataSource: chartData, xValueMapper: (ChartData1 data, _) => data.x, yValueMapper: (ChartData1 data, _) => data.y3 ), StackedColumnSeries( dataSource: chartData, xValueMapper: (ChartData1 data, _) => data.x, yValueMapper: (ChartData1 data, _) => data.y4 ) ] ) ```

Screenshots or Video

Screenshots / Video demonstration https://github.com/syncfusion/flutter-widgets/assets/32736671/1590e77f-169a-4c46-b043-21dc1db5e411

Stack Traces

Stack Traces no stack trace

On which target platforms have you observed this bug?

Web

Flutter Doctor output

Doctor output not needed
LokeshPalani commented 1 month ago

Hi @FabioNieVec,

We have reproduced the issue you reported regarding ‘StackedColumnSeries not rendered after selection zooming’ on our end and the issue is scheduled to be fixed in our upcoming weekly patch release on April 30, 2024. We will notify you here once the release has been rolled out, and we appreciate your patience in the meantime.

Regards, Lokesh P.

Trung15010802 commented 3 weeks ago

The same error with ZoomMode.y. Using mouse wheel

PreethikaSelvam commented 2 weeks ago

Hi @FabioNieVec, @Trung15010802,

We would like to let you know that the reported issue is fixed and rolled out in our patch release. We kindly request you to upgrade the syncfusion_flutter_charts package to the latest version below.

Version: https://pub.dev/packages/syncfusion_flutter_charts/versions/25.1.42+1

Root cause: Stacked column/bar series rectangle bottom position was replaced with zoomed y axis minimum range instead of previously calculated bottom values.

If you have any further queries, please feel free to reach out to us.

Regards,

Preethika Selvam.