score:1
Accepted answer
i was able to figure this out, instead of displaying the whole value, which in the current case was an object, i had to use formatter with a callback function fetching value of x, in the plugins option.
options: {
plugins: {
datalabels: {
formatter: ( val ) => {
return val.x
},
}
}
}
Source: stackoverflow.com
Related Query
- Datalabels plugin chartjs showing '[object]' instead of value
- ChartJS 3+ x-axis only showing full moment object instead of just month
- chartjs plugin datalabels does not show value on charts
- How to properly use the chartjs datalabels plugin
- Can't apply options of datalabels chartjs plugin in Vue
- JSON cyclic object value when posting data in ChartJS
- add a unit to label with chartjs plugin datalabels
- ChartJS with React: Only one value showing on time chart
- ChartJS Datalabels plugin and negative numbers
- chartjs datalabels not showing anything with django template
- ChartJS Stacked Bar Chart: Showing value in opposite directions
- Chartjs Bar Chart showing old data when hovering
- Truncating canvas labels in ChartJS while keeping the full label value in the tooltips
- ChartJs title not showing
- Show bar with zero value in ChartJs v2
- chartjs datalabels change font and color of text displaying inside pie chart
- ChartJS Line Graph - Multiple Lines, Show one Value on Tooltip
- chartjs + Angular6 is not showing charts or any error
- angular 5 chart.js datalabels plugin
- ChartJs bar chart - keep bars left instead of equally spread across the width
- ChartJs canvas showing previous graph when changing Graph types
- How to access labels array using chart plugin (Chart.pluginService.register) in Chartjs 2.x?
- Line chart is showing under bar in combochart in chartjs
- ChartJS bar not showing up for simple data points
- How do I fix over limit y axis value in ChartJS
- chartjs - Drawing vertical line on integer x axis value
- Map event position to y axis value in chartjs line chart
- how to change Y axis value dynamically based on user input in Chartjs for Line chart?
- Last value not showing in bar graph of charts.js-library
- Grouping the object by key for Chartjs bar chart
More Query from same tag
- Render pie chart datasets out of 100% -- Chart.JS
- Chart JS not showing all data
- ChartJS bubble plot categorical y-labels with numbers in string plot issue
- Vertical spacing in horizontal ChartJS Bar Graph
- Change Axis Line color in Chart created using chart.js
- Chartjs 2 - Stacked bar and unstacked line on same chart with same y axis
- after div display set to block nothing shows
- How do I set a bar chart to default to a suggested maximum in chart.js v1.01?
- I am getting TS2339: Property 'chart' does not exist on type 'Window'?
- How can i give the full Legend a background color in chart js?
- ChartJs Skip few category, possible?
- How to fix [<br /> when trying to enter data through php in data (chart.js)
- Unwanted line chart ''shadow" using chart.js
- How to create Waterfall model chart using QuickChart?
- yAxes not working with min max option
- charts.js not updating after ajax request
- Chart.js turn labels into links
- Can't pass data to chart.js graph
- Why Chart.js v2 time based data not aligning with X axis correctly?
- Chart.js responsive option - Chart not filling container
- How to fetch data from DB on Chart.js using Laravel?
- moment.js is not loading before chart.js in Firefox extension
- Chartjs with zoom plugin zooms too much with wheel just with single turn
- Chart.js dynamically upating data using variable
- Replace a Canvas Pie Chart Onclick
- Erro Nova ChartJs SQL Generator when using PostgreSQL
- Customize legend AngularJS
- Chartjs scaleLabel position
- How to invert scale display on radar chart (chart.js)
- How put dataset labels into multiTooltipTemplate?