nova-chartjs
nova-chartjs copied to clipboard
Add Tooltip template
- [x] Adds a template for Tooltips
- [x] Replace placeholders in templates
- [x] Updates Readme
Note: The following issues should still be addressed to show Additional data not available in Charts in tooltips
- [ ] How can we pass addon data for each tooltip point (i.e. fir each model, we need to pass add-on data for each data point)
- [ ] Should we make this addon data editable.
- [x] How can we use this data in tooltip. I believe we can achieve this by adding another wildcard placeholder in tooltip to replace any additional data
I tried a few different approaches to pass additional data, but this seems to be a discussion based on requirements. I believe we should either:-
- Assign a JSON field from which we can pull addon data.
- Add a new field in our Chart model to store addon data.
- Add a method to pull addon data for each datapoint and leave it's implementation on user.