Closed oleksiizapara closed 4 years ago
If I was you, I would take a look at https://github.com/Joelius300/ChartJSBlazor. This project is maintained at least.
We should add a ChartType.Custom(string chartType)
method to the ChartType
-'enum' with a summary along the lines of
This method constructs a
<see cref="ChartType" />
which represents the given value. Only use this method if you're implementing your own chart e.g. for a chart.js extension, otherwise use the given values.
I'm adding this to the backlog so it can be added in a feature release.
I found a great extension for chartJS which allows to create candlestick chart. https://github.com/chartjs/chartjs-chart-financial
I tired to implement Blazor extension version based on ChartJs.Blazor, However, I found that I cannot add additional ChartTypes. I used reflection to create valid objects.
The sample project with candlestick chart can be access via link https://github.com/oleksiizapara/ChartJsBlazorFinancialSample
I hope that in future release the library will be able to do it straightforward.
May be it can be done via base class that can be inherited?