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

axis.max() / axis.min() / axis.range() not working on Radars #3343

Open
Meffesino opened this issue Aug 16, 2023 · 3 comments
Open

axis.max() / axis.min() / axis.range() not working on Radars #3343

Meffesino opened this issue Aug 16, 2023 · 3 comments
Labels

Comments

@Meffesino
Copy link

Meffesino commented Aug 16, 2023

Description

I have a Radar chart. Once I use chart.load() to update the data, the Y-max is not updating accordingly and remains the same, as for the generation of the chart. Neither can I change the y max via any of those api calls:

axis.max() / axis.min() / axis.range()

Steps to check or reproduce

CodePen - Fiddle Example

  1. Click on "Add more Data" and you'll see, that the new dataset is loaded correctly, but the Y axis is not automatically changing, which results, that the data set is over-extending the original chart size. Neither does the chart.axis.max() call does change anything on the scale of the radar chart. How do I change the y max on radars?
    Expected output:
  • Y max should be recalculated on chart.load()
  • Y max should be changeable via axis.max() call

Changing type: "radar" to type: "line" and everything is working as expected...

@netil
Copy link
Member

netil commented Aug 16, 2023

Hi @Meffesino, there are no concept of x/y axes for radar type chart.
Hence, axis' methods only works for chart types which appears x/y axes.

@netil netil added the question label Aug 16, 2023
@Meffesino
Copy link
Author

Hi @netil - maybe it is not using the concept of "Axis" - but there has to be any concept to define what the maximum range of the radar is and how to present the data set inside that radar. Especially as I can load() new data and it presenting the data correctly to the existing range. It is computed somehow while generating the radar. As axis concept is used and can be manipulated at lines / bar etc. I have expected, that this is also the case for radars.

@Meffesino Meffesino reopened this Aug 16, 2023
@netil
Copy link
Member

netil commented Aug 18, 2023

here has to be any concept to define what the maximum range of the radar

you can use radar.axis.max option to define axis' max range, but when isn't specified it will be set max value according the data bound.

When data is dynamically loaded, won't reflect newly added data's range and this need to be improved in future release.

netil pushed a commit to netil/billboard.js that referenced this issue Aug 18, 2023
Add notes for .axis() methods, where only applicable for
chart types which has x and y axes.

Ref naver#3343
netil added a commit that referenced this issue Aug 18, 2023
Add notes for .axis() methods, where only applicable for
chart types which has x and y axes.

Ref #3343
netil added a commit that referenced this issue Sep 5, 2023
Add notes for .axis() methods, where only applicable for
chart types which has x and y axes.

Ref #3343
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants