-
Notifications
You must be signed in to change notification settings - Fork 11.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[New Chart Type] Heatmap #4627
Comments
There is currently a Chart.js heatmap plugin that is available: https://github.com/tmroyal/Chart.HeatMap |
I think this would better live in an external repository so that the core doesn't get larger |
Closing as this has been implemented in an external library and should not be included in the core. |
@panzarino, the plugin https://github.com/tmroyal/Chart.HeatMap does not work with the current version of Chart.js |
@andreladocruz Maybe try contacting @tmroyal to see if he is willing to update it. Someone else could also make a new plugin, but at this time there are no plans for adding this chart type to the core library. |
Well, lets see if @tmroyal has to say about this. I'll inspect his code and see if I can upgrade it. :) |
Did you manage to update the Chart.HeatMap plugin to work with the current version of Chart.js. Or anyone know about an alternative plugin/heatmap? |
The Chart.Heatmap plugin it's outdated, it does not work with the current version of Chart.js |
Is there any other library which support the HeatMap charts or is there any update upon @tmroyal library.? |
I just wanted to post for anyone following this issue, since finding out that How toGrid StructureFor each of the graph's 7
This fills the stacked bars so that all the data points are the same size - and form a grid. Then you can color them and edit the tooltips to make it appear like a heat map. ColoringExample function includes a
Then you can just generate an array of colors for each TooltipsHere is what I am passing to the Chart's
Where This basically gets and concatenates the values for the Hopefully, that helps someone! Good luck 👍 |
Clever. Can you create a fiddle of this example? |
this library should be simple for angular users(tested in ang5): |
Hi @FinnLawrence , |
@FinnLawrence |
I thought about the same - I need a kind of headmap... or grouped scatter plot. I thought about using the Bubble chart. Perhaps I´ll find an easy way to replace the circles with squares... |
You might be interested in these: |
YES Matrix seems to be exactly the one. |
@tmroyal here, the author of the chart.js plugin available at https://github.com/tmroyal/Chart.HeatMap/. As is probably apparent, I've abandoned the plugin, and it probably should not be used. @benmccann above has some good suggestions that I would recommend adopting if you need this kind of chart type for chart.js. |
This one is really cool, but doesn't accept x and y as strings, only numbers. That's a bummer |
What do you mean? Aren't |
sure, but why cant be strings?
You can have situations where "A" - "B" = V. Where X and Y até strings.
Em 4/07/2020, 07:35, em 07:35, "Marko Bonaći" <notifications@github.com> escreveu:
…> > https://github.com/kurkle/chartjs-chart-matrix
>
> This one is really cool, but doesn't accept x and y as strings, only
numbers. That's a bummer
What do you mean? Aren't `x` and `y` square coordinates?
--
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
#4627 (comment)
|
Yeah but what about categories? |
It does, you need to use category scales for those. |
Thanks @kurkle, although i already made the heatmap with plotly but still this looks good! |
Is chartjs-chart-matrix the recommended chart type to plot spectrograms? |
The examples below seem to blow the argument that adding heatmaps would make the library too large out of the water. |
Update for anyone using this awesome example: https://www.chartjs.org/docs/latest/configuration/tooltip.html#label-callback |
Just to ask you guys to add the type heatmap to the graphs.
The bubble one is not the same thing.
Thanks
The text was updated successfully, but these errors were encountered: