google / charts

https://pub.dev/packages/charts_flutter
Apache License 2.0
2.81k stars 1.24k forks source link

BarChart - Make intervals on Y-Axis not calculated based on the data serise #459

Open elham-rababah opened 4 years ago

elham-rababah commented 4 years ago

I want to sent intervals o Y-Axis, to make static intervals not calculated based on data series

For example, I have this data var data1 = [ new Pollution(1980, 'USA', 10),

    ];
var data2 = [

  new Pollution(1980, 'Asia', 5),

];
var data3 = [

  new Pollution(1985, 'Europe', 40),
];

and the code for draw the chart is

charts.BarChart(
                        _seriesData,
                        animate: true,
                        barGroupingType: charts.BarGroupingType.grouped,
                        // behaviors: [new charts.SeriesLegend()],
                        // primaryMeasure Axis: ,
                        animationDuration: Duration(seconds: 5),
                      ),

Now it looks like image

But I want the interval to increase by five each time and the highest value can be reach is 100

xwolf47 commented 4 years ago

same...any solution?

elham-rababah commented 4 years ago

@xwolf47 Still the same