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

Radzen Blazor Chart Series when CategoryProperty not set chart axis rendering is not falling back to using Data row Index for X chart values (positions) #1279

Open
PRIMETSS opened this issue Dec 9, 2023 · 0 comments

Comments

@PRIMETSS
Copy link

PRIMETSS commented Dec 9, 2023

Describe the bug
Radzen Blazor Chart states that if

CategoryProperty - the name of the property which provides value for the X axis of the chart. The property can be string, Date or numeric. If not set RadzenChart will use the index of the data item as its X axis value.

Here

To Reproduce
Can reproduce easily from examples-docs page with the Chart example at https://blazor.radzen.com/line-chart
Remove the CategoryProperty or set to CategoryProperty=""

Expected behavior
Expect X values to be automatically generated as Index position value when Enumerating the Data array
As per below & screen shot.

This feature is convenient when the data set is a simple list of single property values

Screenshots
image
After Remove X values should fall back to using the 'Data Row' index for X and go in sequence 0, 1, 2, 3, 4, ..... 10 (etc)
image

Desktop (please complete the following information):

  • Dotnet v8
  • Version [4.23.1] Radzen Blazor Components
@PRIMETSS PRIMETSS changed the title Radzen Blazor Chart Series CategoryProperty not set is not fall back to using Data Index for X chart values (positions) Radzen Blazor Chart Series when CategoryProperty not set chart axis rendering is not falling back to using Data Index for X chart values (positions) Dec 9, 2023
@PRIMETSS PRIMETSS changed the title Radzen Blazor Chart Series when CategoryProperty not set chart axis rendering is not falling back to using Data Index for X chart values (positions) Radzen Blazor Chart Series when CategoryProperty not set chart axis rendering is not falling back to using Data row Index for X chart values (positions) Dec 9, 2023
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

1 participant