score:3
Accepted answer
in version 3 the legend has moved to the plugin section in the options so if you put it like this it will hide the legend:
options: {
plugins: {
legend: {
display: false
}
}
}
Source: stackoverflow.com
Related Query
- How to remove the Legend of chart from angular Chart.js
- chart js how to fill legend box with colour
- How can I remove extra whitespace from the bottom of a line chart in chart.js?
- How to remove rectangle box next to the legend text in Chart.js
- Chart.js Radar Chart How to Remove Outer Labels
- Chart js: how can I align the legend and the title
- ChartJs - Pie Chart - how to remove labels that are on the pie chart
- In Stacked horizontal bar chart how to remove the vertical line in Chart.js?
- Angular chart how to show the legend data value by default along with legend name
- How to remove border from stacked column chart in Chartkick - Chart.js
- How to remove Chart.js legend
- How to Remove Unnecessary Spaces around a semi-Doughnut Chart.js Chart
- How to Remove axis Lines from chart in chart js
- How do I remove cartesian axes from chart js?
- how to add percentage value to legend field in pie chart using chart.js
- how to add legend in pie chart
- How to remove or color line/grid in polar chart area using Chart.js?
- Chart.js how to remove final label on chart
- How can I re-distribute values within a charts.js pie chart when a legend item is turned off/on?
- How do I remove the ticks or inner circles of my polar area chart Chart.js
- how to increase space between legend and chart in chartjs (ng2charts ) using angular
- How can i give the full Legend a background color in chart js?
- How to remove all gridlines and ticks all lines in lines chart in javascript taken from cdn)
- ChartJS Pie Chart How default just show 2 legend datas
- How to show/hide animation when legend clicked chart js
- ChartJs 2 How to remove numbers from the doughnut chart on loading
- How to remove a label in top of bar in chartjs chart
- How to print a chart rendered by code
- How to remove the extra Y axis from a bar chart in chart.js
- How can I reduce the spacing between my legend and chart proper in my Chart.JS bar chart, and increase it in the graph area?
More Query from same tag
- Click on interactive chart.js bar chart and get value for labels and groups in JS
- Conditional in ChartJS axes tick callback function isn't returning the expected labels
- chart.js change size of label of radar chart
- Display PHP Array in Chart.js tooltip
- how to modify horizontal bar chart using chart js
- Charts.js how to have 2 different size y-axis
- chartjs tooltip is cut off when out of canvas
- Creating mixed Bar Chart with ReactJS using recharts or react-chartjs-2
- Dynamic js chart display problems
- Hide label on slice of Doghnut/Pie Chart Angular ng2-charts
- Draw two plots using chartjs over one another with transparency
- y axis Formatting with Metric prefix 1000=> 1k Chart.js
- Chart.js group data by month\year
- Vue.js chart not working?
- ChartJS tooltip when having multiple lines on a time graph
- Data Labels are getting cut off on the top
- ChartJS rotate label value vertical
- chart.js on animation end callback
- yAxis labels are being cut off in ngEchars (Echarts)
- Can I bind an onclick event and edit a point in chartjs
- Chartjs - keeping 2 graphs aligned side by side
- JavaScript & HTML - reusing data from fetch()
- ChartJs bar chart bar value displaying lower then Y axis value in pdf?
- How to get onClick Event for a Label in ChartJS and React?
- TypeError: Cannot read property 'defaults' of undefined when using the react wrapper of chartjs
- How can I show "No Data" message in Pie Chart when there is no data using VueJS?
- What can I do to ensure that my charts diagram reload every time I choose it from my dropdown?
- How do I loop under Chart js in JavaScript for multiple axis?
- Create a chart on a dynamically created canvas in Angular-chart.js
- Getting charts.js to read from Google Sheet JSON data