imaNNeo / fl_chart

FL Chart is a highly customizable Flutter chart library that supports Line Chart, Bar Chart, Pie Chart, Scatter Chart, and Radar Chart.
https://flchart.dev
MIT License
6.77k stars 1.74k forks source link

Is there a provision to change size of FlSpot? #1626

Closed adsazad closed 6 months ago

adsazad commented 6 months ago

Currently, I am using FlSpot to mark points on data in the chart. but those points are too big. I want to make the spots smaller.

LineChartBarData(
          dotData: FlDotData(show: true),
          barWidth: 1,
          color: Colors.blue,
          spots: [FlSpot(sPeak.toDouble(), windowEcgData[sPeak])],
        ),
adsazad commented 6 months ago
 LineChartBarData(
          dotData: FlDotData(
              show: true,
              getDotPainter: (spot, percent, barData, index) {
                return FlDotCrossPainter(
                  width: 1,
                  color: Colors.blue,
                );
              },
              ),
          barWidth: 1,
          color: Colors.blue,
          spots: [FlSpot(sPeak.toDouble(), windowEcgData[sPeak])],
        ),