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

Chart: add support for custom named axis #5883

Open
stsrki opened this issue Dec 6, 2024 · 0 comments
Open

Chart: add support for custom named axis #5883

stsrki opened this issue Dec 6, 2024 · 0 comments
Assignees
Labels
Type: Feature ⚙ Request or idea for a new feature.
Milestone

Comments

@stsrki
Copy link
Collaborator

stsrki commented Dec 6, 2024

https://blazorise.com/support/issues/236/chartjs-support-secondary-y-axis

To be able to define named axis, we could add a dictionary of ChartAxis,

[JsonPropertyName( "axis" )]
[JsonIgnore( Condition = JsonIgnoreCondition.WhenWritingNull )]
public Dictionary<string, ChartAxis> Axis { get; set; }

Then we could parse axis on JS side to properly assign the axis to chart options.


The other way would be to introduce a JSON serializer that serializes dictionaries into ready-to-be-used chart options.

@stsrki stsrki added the Type: Feature ⚙ Request or idea for a new feature. label Dec 6, 2024
@stsrki stsrki added this to the 2.0 milestone Dec 6, 2024
@stsrki stsrki self-assigned this Dec 6, 2024
@github-project-automation github-project-automation bot moved this to No Status in Development Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature ⚙ Request or idea for a new feature.
Projects
Status: No Status
Development

No branches or pull requests

1 participant