Why alphaNumerate() the chart series' class names?
See original GitHub issueCurrently, the series’ class names are constructed like this: ct-series-a
, ct-series-b
up to ct-series-z
, then it starts at ct-series-a
again.
This only allows for 26 series in a chart - seems a bit arbitrary to me. It’s also not enough for a — granted, maybe far-fetched — use case like a line per day in a month or the cumulative salaries (stacked bars) in a company with more than 26 employees.
I think it would be better to have just the number in the class name (ct-series-0
, ct-series-1
, etc.) - it’s easier to implement, more intuitive (as the series’ name now corresponds 1-on-1 to the series’ key) and more flexible.
Thoughts?
Issue Analytics
- State:
- Created 9 years ago
- Comments:5
Top Results From Across the Web
5.5 Character Classes and Bracket Expressions - GNU.org
Finally, certain named classes of characters are predefined within bracket expressions, as follows. Alphanumeric characters: ' [:alpha:] ' and ' [:digit:] '; ...
Read more >Alphanumeric Characters - Video & Lesson Transcript
Learn the definition of alphanumeric characters and the uses of alphanumeric ... See examples of how alphanumeric symbols are used in human.
Read more >Class ChartSeries - API Reference | Telerik UI for Blazor
The field name should be a valid Javascript identifier and should contain only alphanumeric characters (or "$" or "_"), and may not start...
Read more >Data types for Access desktop databases - Microsoft Support
Data types for Access desktop databases ; Short Text (formerly known as “Text”). Alphanumeric data (names, titles, etc.) Up to 255 characters. ;...
Read more >The Class System | Ext JS 6.0.2 - Sencha Documentation
Class names may only contain alphanumeric characters. ... Submit is stored in path/to/src/Ext/form/action/Submit.js; MyCompany.chart.axis.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You can do so by using the object series notation demonstrated on this Pie chart example, that is also valid for bar and line charts:
For Line and Bar charts just use
data: [1, 2, 3, 4]
instead ofvalue: 10
. The key is to use an object notation and useclassName
to override the class name of your series.👍 perfect, thanks!