score:3
Accepted answer
You can update like as follows
chart.config.data.labels = newLabels // you can pass the new labels
chart.update()
score:0
Try it also
chart.data.labels = newLabels
chart.update()
Source: stackoverflow.com
Related Query
- Modify the labels in chart.js when I update the chart
- Angular-Charts bar chart does not update when I change the data, series, labels
- Moving vertical line when hovering over the chart using chart.js
- Dynamically update the options of a chart in chartjs using Javascript
- Making the labels responsive in chart js
- How to align Chart.JS line chart labels to the center
- How to display the labels in doughnut chart using ng2 charts?
- ChartJS: Show all labels of a mixed chart in the tooltip
- Chart.js update function (chart,labels,data) will not update the chart
- Can I use a gradient in Chart.js without accessing the chart context when the chart is created?
- Annotation events not update the chart
- ChartJs - Pie Chart - how to remove labels that are on the pie chart
- Chartjs 3.5.0 - Radar Chart - Converting the labels to images
- ChartJS: Remove padding to the right of chart caused by tick labels
- How to draw outer labels for polar chart using ng2-charts and chart.js at fixed positions outside the rings?
- how to show labels in laravel charts when the name of the label is on another table?
- Pie chart isn't loading, but the labels are
- how can i modify scale labels in angular chart js?
- How do I customize y-axis labels and randomly pick the value from the data range for x-axis in Chart js
- Maximum call stack error when attempting to update Chart in Vue js
- ChartJS bar chart - trigger hover even when the cursor is outside of the bar
- chart.js: How do I make the radar chart axis labels bigger?
- Chart.JS: How can I only display data labels when the bar width is big enough for the text?
- Unexpected error when attempting to update chart data in Chart.js, in a Vue app
- Update the chart data from an array stored in a variable on button click
- Chart.js 3.5: linear gradient doesn't apply properly when multiple bars in the same chart
- How to clear/destroy Chart.js canvas when the chart is represented as a react JSX element
- Chart.JS: How can I only display data labels when the doughnut size is big enough for the text?
- Chart disappears, when pressing the submit button
- How to show the chartjs bar chart data values labels as text?
More Query from same tag
- How do I recursively aggregate values inside of a loop of JavaScript objects?
- Angular2 ng2-chart customizations?
- Add line from point to x-axis and bold label of him
- Generating different chart results on fly causes flickering
- Chartjs Bar Chart showing old data when hovering when use of ajax
- HTML file won't generate anything on webpage using Chart.js
- Time chart labels with some X axis labels using Chart js v3
- Charts .js update when array changes
- Chart JS not working with Dynamic Data
- ChartJS yAxis showing not coherent data
- Javascript - How to Transform MiB to GB
- How to decrease the barthickness in ng2-charts?
- How can I change the starting point of horizontal bars in Charts.js
- warning in chartjs/react-chartjs options assignment if setting type:'time'
- Chartjs time plot xAxis shows year 1970
- Chart.js - Is it possible to have two y axis with positive values one above the other?
- ChartJS for 1 and 0 values display true or false
- Transform JSON data for ChartJS
- How to get access to Chart instance related to current tooltip callback in Chart.js
- Average 2 Keys in ChartJS
- Chart.js canvas : can't center it
- Re-creating this graph in ChartJS
- Setting min and max values chart.js
- How to get the setState reassigned in react
- How do I manipulate a specific tooltip value of a Chart.js pie chart?
- How to zoom Y axis on time series or X-Y chartjs graph
- Angular using PrimeNG charjs problem with font colors
- show name on yaxis in chart.js
- Show image instead a point in a ChartJS scatter plot
- Chart.js - Increase spacing between bottom legend and chart