SfCartesianChart(
primaryXAxis: CategoryAxis(
arrangeByIndex: true
),
),
|
SfCartesianChart(
series: ColumnSeries<OrdinalSales, String>(
dataSource: [OrdinalSales('2020-1-14', 32, 'First') ],
dataLabelMapper: (OrdinalSales sales, _) => sales.text,
)
)
class OrdinalSales {
OrdinalSales(this.year, this.bar1, [this.text]);
final String year;
final num bar1;
final String text;
} |
SfCartesianChart(
tooltipBehavior: TooltipBehavior(
// To hide the marker
canShowMarker: false,
//To hide the header
header: ' '
)
)
|
SfCartesianChart(
primaryXAxis: CategoryAxis(
labelRotation: -45
),
)
|
SfCartesianChart(
dataLabelSettings: DataLabelSettings(
isVisible: true,
angle: 270,
),
) |