示例图像 我如何只旋转柱状图的x轴? 我使用 Kotlin 语言的 labelRotationAngle 来实现它。Flutter 可以实现吗?感谢您的帮助。
charts.BarChart(
_createDataForChart(key, city_name),
animate: true,
behaviors: [new charts.PanAndZoomBehavior()],,
)
List<charts.Series<priceChart,String>> _createDataForChart(key, city_name){
return [
new charts.Series<priceChart, String>(
id: 'Sales',
colorFn: (_, __) => charts.MaterialPalette.blue.shadeDefault,
domainFn: (priceChart sales, _) => sales.date,
measureFn: (priceChart sales, _) => sales.price,
data: data,
)
]
}