Skip to content

Tag: chart.js

How to remove Label from charts.js

I am using charts.js to create a charts for my website. I am unable the remove the legend from the chart. I did not found the solution. This is the first time I am using charts.js library. code: }); Thanks in advance. Answer Here is the documentation https://www.chartjs.org/docs/latest/configuration/legend.ht…

Json file data to Chart.JS

I’m trying to add multiple datasets from a json file to a linechart in chart.JS. Here’s my JS code: Here’s my HTML: All other neccessary HTML code is added to make the file valid. There is something wrong with this code i just can’t figure out, I’m able to use the charts to input…

Chart.js timeline [Group for single bar]

I would like to create a time line like this: [1]: https://i.stack.imgur.com/RQ819.png But I don’t understand how to put green into the top bar and yellow into the bottom bar. This is what I got so far but I don’t find anything how to make group only for one bar. Answer You need to define a separa…

Passing Response data to chartjs

I want to pass this json response data to a chartjs horizontal bar using angular this is the response : I tried this using x axes and z axes of the horizontal bar of chart js using this code But it seems it doesont work because i alwyas have duplication with different colors like this: i want to regroupe each