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.46k stars 680 forks source link

[syncfusion_flutter_charts] custom intervals #1797

Closed Tigran-Kosemyan closed 1 month ago

Tigran-Kosemyan commented 1 month ago

how to set custom intervals in numeric axis with Scale values: 0, -10, -50, -100, -200, -500, -1000, -2000, -5000, -10000, -15000

   primaryYAxis: NumericAxis(
                        name: "hpaAxis",
                        axisLine: AxisLine(width: 1),
                        interval: 100,
                        minimum: 0,
                        maximum: -15000,
                        opposedPosition: false,
 ),
LokeshPalani commented 1 month ago

Hi @Tigran-Kosemyan,

Currently, there is no direct support for custom intervals in the NumericAxis. We suggest that you use the CategoryAxis in the primaryXAxis. By doing this, you can display the axis labels as String instead of numeric values. We have provided user guide documentation for your reference. Please let us know if you have any additional needs.

UG Link,

https://help.syncfusion.com/flutter/cartesian-charts/axis-types#category-axis

Regards, Lokesh P.

Tigran-Kosemyan commented 1 month ago

Hi @Tigran-Kosemyan,

Currently, there is no direct support for custom intervals in the NumericAxis. We suggest that you use the CategoryAxis in the primaryXAxis. By doing this, you can display the axis labels as String instead of numeric values. We have provided user guide documentation for your reference. Please let us know if you have any additional needs.

UG Link,

https://help.syncfusion.com/flutter/cartesian-charts/axis-types#category-axis

Regards, Lokesh P.

Thank you for answer

Best regards