Skip to content

[syncfusion_flutter_charts] Chart scroll x #272

Closed
@weiwill

Description

@weiwill

Q1: first load chart scroll end,is not start.
Q2: how to show scroll bar on char bottom.

QQ20210605-032959

SfCartesianChart(
    enableAxisAnimation: true,
    primaryXAxis: CategoryAxis(
      labelStyle: TextStyle(fontSize: 20.px),
      maximumLabels: 100,
      autoScrollingDelta: 4,
      majorGridLines: MajorGridLines(width: 0),
      majorTickLines: MajorTickLines(width: 0),
    ),
    primaryYAxis: NumericAxis(
        numberFormat: NumberFormat('##########人'),
        minimum: 1.0,
        majorGridLines: MajorGridLines(
          width: 0,
        )),
    zoomPanBehavior: ZoomPanBehavior(
      enablePanning: true,
    ),
    series: <ChartSeries>[
      // Renders column chart
      ColumnSeries<MapD, String>(
          dataSource: controller.dataSource,
          xValueMapper: (MapD data, _) => data['x'],
          yValueMapper: (MapD data, _) => data['y'],
          pointColorMapper: (Map data, _) => Colors.blue,
          dataLabelSettings: DataLabelSettings(isVisible: true),
          emptyPointSettings: EmptyPointSettings(
              // Mode of empty point
              mode: EmptyPointMode.average)),
    ])

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