isTransposed property Null safety

bool isTransposed
final

Data points or series can be selected while performing interaction on the chart. It can also be selected at the initial rendering using this property.

Defaults to [].

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
          series: <BarSeries<SalesData, num>>[
               BarSeries<SalesData, num>(
                initialSelectedDataIndexes: <int>[2, 0],
                 selectionSettings: SelectionSettings(
                   selectedColor: Colors.red,
                   unselectedColor: Colors.grey
                 ),
               ),
             ],
       ));
}

By setting this, the orientation of x-axis is set to vertical and orientation of y-axis is set to horizontal.

Defaults to false.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
           isTransposed: true,
       ));
}

Implementation

///By setting this, the orientation of x-axis is set to vertical and orientation of
///y-axis is set to horizontal.
///
///Defaults to `false`.
///
///```dart
///Widget build(BuildContext context) {
///    return Container(
///        child: SfCartesianChart(
///            isTransposed: true,
///        ));
///}
///```
final bool isTransposed;