Skip to content

Commit

Permalink
Migrated the code with new charts.
Browse files Browse the repository at this point in the history
  • Loading branch information
BPraveenBalu committed Dec 13, 2023
1 parent 153a498 commit d9e1386
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,21 @@ class _MyHomePageState extends State<MyHomePage> {
child: SfCartesianChart(
primaryXAxis: CategoryAxis(plotBands: <PlotBand>[
PlotBand(
start: 7, end: 7, borderWidth: 2, dashArray: const <double>[4, 5])
start: 7,
end: 7,
borderWidth: 2,
borderColor: Colors.black,
dashArray: const <double>[4, 5])
]),
primaryYAxis: NumericAxis(plotBands: <PlotBand>[
PlotBand(
start: 36, end: 36, borderWidth: 2, dashArray: const <double>[4, 5])
start: 36,
end: 36,
borderWidth: 2,
borderColor: Colors.black,
dashArray: const <double>[4, 5])
]),
series: <ChartSeries<ChartSampleData, String>>[
series: <CartesianSeries<ChartSampleData, String>>[
LineSeries<ChartSampleData, String>(
dataSource: chartData,
xValueMapper: (ChartSampleData data, _) => data.x,
Expand Down

0 comments on commit d9e1386

Please sign in to comment.