Category "chart.js"

How to use chart.js in blazor?

I am trying to follow this example from mariusmuntean/ChartJs.Blazor : https://github.com/mariusmuntean/ChartJs.Blazor The code runs but I am getting this error

How do I import a csv into chart.js?

I have been looking for this solution but can't seem to find it . Does chart.js support this ? I have attempted to parse in the data with papaparse, but due to

How do I customize y-axis labels on a Chart.js line chart?

I have the following chart and would like to manually set the Y axis labels. Instead of using 1,2,3,4,5, I want One, Two, Three, Four, Five. Is there a way to d

chart.js v3 - data decimation not working with zoom plugin

In chart.js v3 data decimation doesn't work when zooming in via the zoom plugin. Initially at 100%, data decimation works, but if I zoom in it's no longer worki

How can I datalabels and Sum display in the same time on a stacked bar

I try to have in the same time datalabels and the sum display in my stacked bar chart. I use chartjs-plugin-datalabels.js to display datalabels or sum. Above

Chart.JS Alternate background color for xAxis

Good evening, There's any way to alternate the chart's backgroud color for each dataSet of a result? That's how I wish it. enter image description here

React-chartjs-2 update height dynamically

I am using react-chartjs-2 library. I have used HorizantalBar which will receive data through props dynamically from parent component. I have wrapped Horizantal

Chartjs error : time scale: "time.format" is deprecated. Please use "time.parser" instead

I am using Chartjs for my project. Different versions I am using are: ChartJS 2.9.3, Chartjs-plugin-streaming 1.8.0, moment.js 2.24.0,chartjs-adapter-moment 0.1

ChartJS do not render any legend if the label is falsy

I am using ChartJS 2.4 and I want to predefine lots of settings in the datasets already. But use an empty data array and an undefined label. Now I want to stop

Dashed line for missing data in Chart.JS (spanGaps style)

I have a chart with data points that are null. Chart.js does the correct thing and skips those data points but I would like to have a 'dashed' line fill in the

chart.js Failed to create chart: can't acquire context from the given item

I never got into node so I am pretty sure I am doing something massively wrong here since I cannot find any info at all by googling. I have a django site and

Chartjs bar chart blurry when height is set

I am using chartjs 2.7.3 and I have a problem when setting the size of the div that encloses canvas the image is blurry and letters are not visible like the scr

How to change axis font in PrimeFaces and Chart.js

I am using PrimeFaces 7, and I am trying to use barchart from Chart.js as follows: Code: <p:barChart widgetVar="cfg" model="#{dashboardBean.barModel}" styl

How to custom legend with react-chartjs-2

I'm trying to create a custom legend template in chartjs v3.3.0 like the image below. I can't seem to find any documentation in v3.3.0 for this option. Is it ev

Display all labels in Chart.js

I have a problem with the graphics of CHART.JS. When I put the time interval of 2 years, some labels of the months overlap. I want all the labels to appear, the