
javascript - Set height of chart in Chart.js - Stack Overflow
Jan 31, 2017 · I want to draw a horizontal bar chart with Chart.js but it keeps scaling the chart instead of using the height I assign the canvas form the script. Is there any way to set the height of the graph f...
Chart.js - Where do I find which components should be registered?
Nov 25, 2020 · Chart.js 3 is tree-shakeable, so it is necessary to import and register the controllers, elements, scales, and plugins you are going to use. I'm wondering where do I find these things for …
How to install and use the Chart.js package locally?
Jul 24, 2023 · I tried to install chart.js using npm on my Raspberry Pi, since for my project I cannot use an online version. Basically, I navigated to my project folder (cd my_project), and then used npm init …
Chart.js - Hover labels to display data for all data points on x-axis ...
Mar 8, 2018 · Chart.js - Hover labels to display data for all data points on x-axis Asked 7 years, 9 months ago Modified 2 years, 6 months ago Viewed 54k times
Error: "category" is not a registered scale - Stack Overflow
May 27, 2021 · import {CategoryScale} from 'chart.js'; Chart.register(CategoryScale); Or you can choose to not use treeshaking and import everything like so:
chart.js - How to set max and min value for Y axis - Stack Overflow
Note this answer is relevant to the 1.x versions of chart.js The scales object in the 2.x versions is quite different. See @OferSegev answer below and the 2.x documentation here.
javascript - Grouped bar charts, in chart.js - Stack Overflow
Jan 27, 2015 · I've seen other javascript charting libraries that supported grouped barcharts, of the sort in the image below. I've not seen this as an explicit option in chart.js's online editor. Is it possible...
Placing Data Labels Outside Pie or Doughnut Chart - Chart.js
Feb 16, 2023 · I am working on a large scale application and it would be very helpful to place the labels on either pie charts or doughnut charts outside of the chart itself. This plugin, outerLabels is exactly w...
javascript - Chart.js: Bar Chart Click Events - Stack Overflow
Now, in the Chart.js document, there is a statement about a different way to register the click event for the bar chart. It is much different than nnnick 's comment on GitHub from 2 years ago. In the Global …
Chart.js - Formatting Y axis - Stack Overflow
Chart.js - Formatting Y axis Asked 12 years ago Modified 2 years, 1 month ago Viewed 148k times