Skip to content

Problem while plotting Spline area chart  #82

@LaxmikanthMadhyastha

Description

@LaxmikanthMadhyastha

Hi,
Thanks for providing this beautiful package.
I am trying to plot Spline area chart and the data contains few empty points in the beginning because of which I'm getting a long line from the beginning of the axis to the starting of the spline area series which how ever does not happen while using the spline chart for the same data also it works fine if the data contains empty points at the end.I have tried using empty point settings but that doesn't seem to be working
Below are the attached screenshots and the code.
Thanks

charts.add(SplineAreaSeries<ChartSampleData, DateTime>(
        enableTooltip: true,
        gradient: gradientColors,
        borderColor: Color.fromRGBO(12, 168, 131, 1),
        borderWidth: 2,
        dataSource: median,
        color: Color.fromRGBO(94, 206, 177, 1),
        xValueMapper: (ChartSampleData sales, _) => sales.x,
        yValueMapper: (ChartSampleData sales, _) => sales.y,
        markerSettings: MarkerSettings(isVisible: false),
        name: 'Sugar',
      ));

WhatsApp Image 2020-02-17 at 9 57 37 PM (2)

WhatsApp Image 2020-02-17 at 9 57 37 PM

WhatsApp Image 2020-02-17 at 9 57 37 PM (1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions