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

XY Chart: Discrete values not respected in bar chart axis #5686

Open
cmahnke opened this issue Aug 4, 2024 · 0 comments
Open

XY Chart: Discrete values not respected in bar chart axis #5686

cmahnke opened this issue Aug 4, 2024 · 0 comments
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@cmahnke
Copy link

cmahnke commented Aug 4, 2024

Description

I feed discrete integer values into bar char but the scale shows fraction numbers.

Steps to reproduce

This is the data:

---
config:
    xyChart:
        width: 800
        height: 600
        chartOrientation: 'horizontal'
    themeVariables:
        xyChart:
            titleColor: "#ff0000"
---
xychart-beta
        x-axis [ "Ric 05", "Ric 06", "Ric 07", "Ric 20", "Ric 09", "Ric 10", "Ric 16", "Ric 03", "Ric 04", "Ric 08", "Ric 12", "Ric 14", "Ric 18", "Ric 22", "Ric 24", "Ric 25", "Ric 27", "Ric 01", "Ric 02", "Ric 11", "Ric 13", "Ric 15", "Ric 17", "Ric 19", "Ric 21", "Ric 23", "Ric 26", "Ric 28", "Ric 29", "Ric 30", "Ric 31", "Ric 32", "Ric 33", "Ric 34"]
        bar [ 6, 4, 4, 4, 3, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]

Note that all values are integers

Screenshots

Bildschirmfoto 2024-08-04 um 14 53 22

See fractions on the scale, this is plainly wrong, the data doesn't provide this.

Code Sample

No response

Setup

  • Mermaid version:
  • Browser and Version: [Chrome, Edge, Firefox]

Suggested Solutions

No response

Additional Context

No response

@cmahnke cmahnke added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Aug 4, 2024
@cmahnke cmahnke changed the title Discrete values not respected in bar chart axis XY Chart: Discrete values not respected in bar chart axis Aug 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect
Projects
None yet
Development

No branches or pull requests

1 participant