Improved samples #122
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
samples
Something to do with the samples.
With #153, I have laid out the foundation for this issue. Instead of the three (redundant) sample projects, we now have a dual-mode blazor application that looks and feels similar to the official Chart.js samples.
Now we need your help!
If you want to contribute to this library and/or get to know ChartJs.Blazor, you can port one of the samples listed below and submit a Pull Request. Please write a short comment on this issue before getting to work on the PR in order to avoid conflicts with other contributors.
If you decide to port a sample, please keep the following points in mind:
If you hit any roadblocks along the way (e.g. you simply cannot port a sample because we don't support that feature yet), this issue is the place to discuss it. I highly recommend to start with the easier samples that don't contain any of the known hurdles like callbacks.
Below you can find a list of samples we want to port. I will tick them off once they're merged.
We appreciate your contributions!
Important
Bar charts
Line charts
Area charts
Other charts
Linear scale
Logarithmic scale
Time scale
Scale options
Legend
Tooltip
Additional
Bar charts
Line charts
Other charts
Scale options
Tooltip
Scriptable
Advanced
Before edit
Currently our library has three sample projects. That's too much.
Our samples also don't show nearly all features Chart.js resp. our library has.
Nor are they analogous to the official Chart.js samples which understandably generates confusion.
Solution
Client- / Server-side
Currently we have lots of redundancies because of our three projects. We should eliminate two of them and run them in dual mode. There's already an amazing resource for running blazor in dual mode which we can take as reference. Once this is done, we can also update https://www.iheartblazor.com with these samples so you can swich between client and server without having to build the samples yourself.
Porting samples
We should try to mirror the offical samples in order to show our consumers how to achieve the same thing. This has the many benefits like more clarity for the simple user when trying to achieve something and a reference for the people who already know Chart.js. It's also simpler for us to maintain and to give support.
Of course some additional samples might be needed e.g. for the callback stuff, especially when you consider the server-side incompatibility.
Format checklists
The text was updated successfully, but these errors were encountered: