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

Bar Series Label Position When Transposed #23

Closed
walsha2 opened this issue Sep 15, 2019 · 2 comments
Closed

Bar Series Label Position When Transposed #23

walsha2 opened this issue Sep 15, 2019 · 2 comments

Comments

@walsha2
Copy link

walsha2 commented Sep 15, 2019

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

@JayavigneshwaranG
Copy link
Collaborator

Hi @walsha2 ,

Sorry for the inconvenience.
We are able to reproduce the reported issue at our end and we have fixed this now. Published the fix to pub. So please use the latest version packages(1.0.0-beta.5).
Now the data labels are positioned properly when isTransposed is specified.

We are closing this issue. But you can reopen this if you face any concerns.

Thanks,
Jayavigneshwaran

@walsha2
Copy link
Author

walsha2 commented Sep 19, 2019

@JayavigneshwaranG confirmed - this is now fixed with the latest release. Thanks!

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

2 participants