Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

displayDataPointWhenNoValue: false is ignored when using BezierChartScale.WEEKLY #87

Open
yaizudamashii opened this issue May 17, 2020 · 2 comments

Comments

@yaizudamashii
Copy link

yaizudamashii commented May 17, 2020

Version 1.0.17+1

displayDataPointWhenNoValue is ignored and a dot is shown at y axis value 0. (For May 13th in the example.)

Screen Shot 2020-05-16 at 10 39 31 PM

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
Copy link
Collaborator

Feel free to open a PR

@mukhammad-akilov
Copy link

Also it does not work for BezierChartScale.HOURLY
@diegoveloper Can you help us with that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants