Skip to content

Commit

Permalink
Merge pull request #3 from BPraveenBalu/main
Browse files Browse the repository at this point in the history
FLUT-860276 Migrated the code with new charts
  • Loading branch information
LavanyaGowtham2021 authored Dec 18, 2023
2 parents 153a498 + d9e1386 commit 7be31e2
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 7be31e2

Please sign in to comment.