Skip to content

Bar Series Label Position When Transposed #23

Closed
@walsha2

Description

@walsha2

Description:

Something happened from v3 to v4 that really messed up the data label positioning when the bar series is transposed - relevant snippets below:

SfCartesianChart(
    ...
    isTransposed: true,
    ...
    series: <BarSeries<ValueData, String>>[
    ...
      dataLabelSettings: DataLabelSettings(
        isVisible: true,
        position: CartesianLabelPosition.outer,
        labelPosition: LabelPosition.outside,
        alignment: ChartAlignment.center,
        textStyle: ChartTextStyle(
          fontSize: 8.5,
          fontWeight: FontWeight.bold,
        ),
          ),
    ...
    ],
)

The following is for the same exact code, just updating from v3 to v4 of package.


Here is the output from v3:

Here is the output from v4:

Issue Resolution:

Fix data labels and add more robust testing/checks for when bar series enables isTransposed: true

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