displayDataPointWhenNoValue: false is ignored when using BezierChartScale.WEEKLY
Opened this issue · 2 comments
yaizudamashii commented
Version 1.0.17+1
displayDataPointWhenNoValue is ignored and a dot is shown at y axis value 0. (For May 13th in the example.)
Example code:
List<DataPoint<DateTime>> dataPoints = [
DataPoint<DateTime>(value: 231.0, xAxis: DateTime(2020, 5, 12, 9, 51, 27)),
DataPoint<DateTime>(value: 231.0, xAxis: DateTime(2020, 5, 14, 10, 59, 35)),
DataPoint<DateTime>(value: 231.0, xAxis: DateTime(2020, 5, 15, 8, 59, 0)),
];
return BezierChart(
fromDate: dataPoints.first.xAxis,
bezierChartScale: BezierChartScale.WEEKLY,
toDate: dataPoints.last.xAxis,
series: [
BezierLine(
label: "Num posts",
data: dataPoints,
),
],
config: BezierChartConfig(
verticalIndicatorStrokeWidth: 3.0,
verticalIndicatorColor: Colors.white,
showVerticalIndicator: true,
verticalIndicatorFixedPosition: false,
verticalLineFullHeight: true,
displayYAxis: true,
displayDataPointWhenNoValue: false,
backgroundColor: Colors.lightBlueAccent,
footerHeight: 50.0,
),
);
diegoveloper commented
Feel free to open a PR
mukhammad-akilov commented
Also it does not work for BezierChartScale.HOURLY
@diegoveloper Can you help us with that?