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: Setting with in percent not respected, failure not even catched #5687

Open
cmahnke opened this issue Aug 4, 2024 · 0 comments
Open
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

Using SVG / a dynamic method to generate Diagrams via JS should be beneficial compared to using images. This implies that a relative width (specifying width in percent) should not only work, but should be the default.

Currently it's nor even tested for the percentage sign, but passed into the calculation which in turn fails several levels (JS, see console) and then SVG by passing NaN...

Steps to reproduce

This is the data:

config:
xyChart:
width: 100%
height: 600
chartOrientation: 'horizontal'
themeVariables:
xyChart:
titleColor: "#ff0000"

Screenshots

Bildschirmfoto 2024-08-04 um 15 01 14 Bildschirmfoto 2024-08-04 um 15 02 07

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 Setting with in percent not respected, failure not even catched XY Chart: Setting with in percent not respected, failure not even catched 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