You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is an issue with the width of the bars in multiple column series, while using CategoryAxis as my primaryXAxis, As shown in the screenshots attached, the width of the bar(s) does'nt scale despite the width of the column series section increasing after setting autoScrollingDelta and making the chart scrollable.
Issue 1
From several test, the width of the bars in multiple Cartesian Chart decrease as the number of column series increases, but this should also put into consideration the autoScrollingDelta value.
If autoScrollingDelta is provided, the width of the bars in multiple Cartesian Chart should decrease based on the autoScrollingDelta.
Issue 2
The column series as per the data set is about 50, which each series has about 1 to 7 bar, with this dataset some UI junk(Performance issue) is experienced.
Steps to reproduce
Create a Multiple ColumnSeries
Adjust a number of column series(e.g 20)
Adjust autoScrollingDelta(e.g 2, 5, 10)
The bar width remain the same despite reducing autoScrollingDelta
Code sample
Code sample
returnSfCartesianChart(
key: widget.barKey,
zoomPanBehavior:ZoomPanBehavior(
enablePanning:true,
zoomMode:ZoomMode.x,
),
primaryXAxis:CategoryAxis(
// Show only 5 column series sections (scrollable)
autoScrollingDelta:5 ,
autoScrollingMode:AutoScrollingMode.start,
title:AxisTitle(
text: widget.barGraphReport.xAxis.name,
textStyle:TextStyle(
fontSize: widget.isPreview ?7:11.98,
fontFamily:'Helvetica Neue',
fontWeight:FontWeight.w500,
color:AppTheme.appTheme(context).kAccent5GreyColor,
),
),
majorGridLines:constMajorGridLines(width:0),
),
primaryYAxis:NumericAxis(
title:AxisTitle(
text: widget.barGraphReport.yAxis?.name ??'',
textStyle:TextStyle(
fontSize: widget.isPreview ?7:11.98,
fontFamily:'Helvetica Neue',
fontWeight:FontWeight.w500,
color:AppTheme.appTheme(context).kAccent5GreyColor,
),
),
numberFormat:NumberFormat.compact(),
labelFormat:'',
axisLine:constAxisLine(width:0),
majorTickLines:constMajorTickLines(color:Colors.transparent),
),
series:_getDefaultColumnSeries(),
);
}
List<ColumnSeries<BarGraphValue, String>> _getDefaultColumnSeries() {
return<ColumnSeries<BarGraphValue, String>>[
for (final (index, bar) in widget.barGraphReport.values.firstOrNull
?.multipleBarGraphValues.indexed ??<MultipleBarGraphValues>[].indexed)
// Increasing and descreasing the nummber of Column Series// will affect the width of the bars// if (index < 5)ColumnSeries<BarGraphValue, String>(
dataSource: bar.values,
xValueMapper: (BarGraphValue i, _) => i.name ??'',
yValueMapper: (BarGraphValue i, _) => i.total ?? i.count ??0,
name: bar.name,
dataLabelSettings:constDataLabelSettings(isVisible:true),
pointColorMapper: (BarGraphValue val, _) =>Colors.primaries[val.color ??0],
width:1,
spacing:0.5,
),
];
}
}
On which target platforms have you observed this bug?
Web
Flutter Doctor output
Doctor output
$ flutter doctor -v[!] Flutter (Channel stable, 3.22.2, on Microsoft Windows [Version 10.0.22631.4317], locale en-US) • Flutter version 3.22.2 on channel stable at C:\src\flutter ! Warning: `dart` on your path resolves to C:\Program Files\Dart\dart-sdk\bin\dart.exe, which is not inside your current Flutter SDK checkout at C:\src\flutter. Consider adding C:\src\flutter\bin to the front of your path. • Upstream repository https://github.com/flutter/flutter.git • Framework revision 761747bfc5 (4 months ago), 2024-06-05 22:15:13 +0200 • Engine revision edd8546116 • Dart version 3.4.3 • DevTools version 2.34.3 • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.[√] Windows Version (Installed version of Windows is version 10 or higher)[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0) • Android SDK at C:\Users\user\AppData\Local\Android\sdk • Platform android-34, build-tools 34.0.0 • Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-9586694) • All Android licenses accepted.[√] Chrome - develop for the web • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe[X] Visual Studio - develop Windows apps X Visual Studio not installed; this is necessary to develop Windows apps. Download at https://visualstudio.microsoft.com/downloads/. Please install the "Desktop development with C++" workload, including all of its default components[√] Android Studio (version 2022.2) • Android Studio at C:\Program Files\Android\Android Studio • Flutter plugin can be installed from: https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-9586694)[√] IntelliJ IDEA Community Edition (version 2024.2) • IntelliJ at C:\Users\user\AppData\Local\Programs\IntelliJ IDEA Community Edition • Flutter plugin can be installed from: https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin version 242.22855.32[√] VS Code (version 1.94.1) • VS Code at C:\Users\user\AppData\Local\Programs\Microsoft VS Code • Flutter extension version 3.98.0[√] Connected device (3 available) • Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.22631.4317] • Chrome (web) • chrome • web-javascript • Google Chrome 129.0.6668.100 • Edge (web) • edge • web-javascript • Microsoft Edge 129.0.2792.89[√] Network resources • All expected network resources are available.! Doctor found issues in 2 categories.
The text was updated successfully, but these errors were encountered:
Bug description
There is an issue with the width of the bars in multiple column series, while using CategoryAxis as my primaryXAxis, As shown in the screenshots attached, the width of the bar(s) does'nt scale despite the width of the column series section increasing after setting autoScrollingDelta and making the chart scrollable.
Issue 1
From several test, the width of the bars in multiple Cartesian Chart decrease as the number of column series increases, but this should also put into consideration the autoScrollingDelta value.
If autoScrollingDelta is provided, the width of the bars in multiple Cartesian Chart should decrease based on the autoScrollingDelta.
Issue 2
The column series as per the data set is about 50, which each series has about 1 to 7 bar, with this dataset some UI junk(Performance issue) is experienced.
Steps to reproduce
Code sample
Code sample
Model sample
Sample Json Data
Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Stack Traces
Stack Traces
On which target platforms have you observed this bug?
Web
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: