chartjs-plugin-datalabels
chartjs-plugin-datalabels copied to clipboard
Chart.js plugin to display labels on data elements
Using: ``` ├── @sveltejs/[email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] └── [email protected] ``` Importing and registering: ``` import { Chart as ChartJS, Title, Tooltip, Legend, ArcElement,...
Hey I'm trying to make these data labels(stacked bar) with label annotation (image and text) please check the below image  please give me any suggestions for this problem this...
Hello! I'm using this plugin to show data labels on a scatter graph. Here is a fully working example on Codepen: https://codepen.io/LondonAppDev/pen/oNyReVr I want to implement a "bring to the...
[email protected] [email protected] ```js config = { type: 'bar', /* ... */ options: { /* ... */ datalabels: { clamp: true, anchor: 'end', align: 'end' } } } ``` If the...
I'm loading an Adobe (Typekit) font using the code below in a basic bar chart but it is rendering narrower than it should: when hovering over the bar and triggering...
Hi, I am using this plugin to show the labels of the datasets inside the bars. Hence, I customize the formatter. The example values from the documentation (https://v2_1_0--chartjs-plugin-datalabels.netlify.app/guide/formatting.html#custom-labels): ``` context.dataset.data[context.dataIndex].label;...
Hello, I'm trying to make it work with Chart.js server side, node.js 19 and chartjs-plugin-datalabels version 2.2.0 Chart.js 4.4.1 or 4.4.0 - same error here is the log: ``` someProject\node_modules\chartjs-plugin-datalabels\dist\chartjs-plugin-datalabels.js:121...
When you decide to show data labels and also decide to use min and/or max values for the x-axis there is an error in the display.
Is it possible to know if a datalabel will be/has been clipped? would be awesome to have [css text-overflow style](https://developer.mozilla.org/en-US/docs/Web/CSS/text-overflow) control over how clipping behaves
Just curious if it's possible to have a line or arrow from the label to the data point? I'm using it here: https://www.gamingonlinux.com/steam-tracker/ and so far have enlarged the data...