mariusmuntean / ChartJs.Blazor

Brings Chart.js charts to Blazor
https://www.iheartblazor.com/
MIT License
677 stars 151 forks source link

Data variable in RadarDataset class to be of type int #106

Closed devanshidiaries closed 4 years ago

devanshidiaries commented 4 years ago

Describe your question

Data variable in RadarDataset class of the RadarChartComponent is a double type list. Instead of doing a _rand.NextDouble() to assign the chart distribution double values. I would like to give int values for distribution on radar chart. But the Data variable defined in the RadarDataset class only takes a list with double type. Because the RadarDataset class is metadata class from ChartJs.Blazor, I cannot edit this as part of my code. Is there a workaround?

Which Blazor project type is your question related to?

Which charts is this question related to?

Radar Chart

Joelius300 commented 4 years ago

This is a duplicate of #105. I find it incredible that the same question was asked by two different accounts in such a short amount of time. I explained why it's a double in the other issue.
I'm closing this issue and answering the other because this one was submitted later. Still I want to thank you for providing more information than the other issue.

If you can't add an integer value to a list of doubles, you're doing something fundamentally wrong. I suggest taking it to https://stackoverflow.com/ if you can't figure it out yourself.