Home > front end >  how to remove horizontal line from barchart
how to remove horizontal line from barchart

Time:10-06

How to solve this problem, use FL-CHART package

this is my output

CodePudding user response:

You can change the width to zero (0) of that lines.

Example: majorGridLines: MajorGridLines(width: 0),

CodePudding user response:

You can remove the horizontal lines by setting drawHorizontalLine property to false

Example,

BarChart(BarChartData(gridData: FlGridData(
                    show: true,
                    drawVerticalLine: false,
                    drawHorizontalLine: false,// this one
              )));
  • Related