About 600 results
Open links in new tab
  1. Doughnut and Pie Charts | Chart.js

    Oct 13, 2025 · Pie and doughnut charts are probably the most commonly used charts. They are divided into segments, the arc of each segment shows the proportional value of each piece of …

  2. Doughnut - Chart.js

    Oct 13, 2025 · const config = { type: 'doughnut', data: data, options: { responsive: true, plugins: { legend: { position: 'top', }, title: { display: true, text: 'Chart.js Doughnut Chart' } } }, };

  3. Basic | chartjs-plugin-annotation

    Dec 13, 2024 · const annotation = { type: 'doughnutLabel', content: ( {chart}) => ['Average', average (chart).toFixed (2), 'on last ' + chart.data.labels.length + ' months' ], font: [ {size: 60}, …

  4. Responsive Charts | Chart.js

    Oct 13, 2025 · Chart.js provides a few options to enable responsiveness and control the resize behavior of charts by detecting when the canvas display size changes and update the render …

  5. Doughnut Label Annotations | chartjs-plugin-annotation

    Oct 16, 2024 · Doughnut Label Annotations Doughnut label annotations are used to add contents (text, image, canvas) in the middle area of the doughnut charts.

  6. Step-by-step guide | Chart.js

    Oct 13, 2025 · By default, Chart.js charts have the aspect ratio of either 1 (for all radial charts, e.g., a doughnut chart) or 2 (for all the rest). Let’s modify the aspect ratio for our chart:

  7. Getting Started | chartjs-plugin-annotation

    Oct 16, 2024 · Annotations work with line, bar, scatter and bubble charts that use linear, logarithmic, time, or category scales. Furthermore you can use a doughnut label annotation …

  8. HTML Legend - Chart.js

    Oct 13, 2025 · This example shows how to create a custom HTML legend using a plugin and connect it to the chart in lieu of the default on-canvas legend. For an html legend to work you …

  9. Doughnut Empty State - Chart.js

    Oct 13, 2025 · Doughnut Empty State Randomize config plugin data const config = { type: 'doughnut', data: data, options: { plugins: { emptyDoughnut: { color: 'rgba (255, 128, 0, 0.5)', …

  10. Legend | Chart.js

    Oct 13, 2025 · The doughnut, pie, and polar area charts override the legend defaults. To change the overrides for those chart types, the options are defined in …