score:4
Accepted answer
Chart.js does not draw any data labels (values) itself by default. You most probably have activated (imported) a plugin such as chartjs-plugin-datalabels that draws these values:
<script src="https://cdn.jsdelivr.net/npm/chartjs-plugin-datalabels"></script>
Simply remove the script
tag from your code. To disable a global plugin for a specific chart instance only, the plugin options must be set to false
.
In the case of chartjs-plugin-datalabels
, this would be done as follows:
options: {
plugins: {
datalabels: {
display: false
}
},
}
Source: stackoverflow.com
Related Query
- How to hide value in Chart JS bar
- Chart.Js how to hide datapoints with "0" value in Stacked Bar Chart
- How to hide the y axis and x axis line and label in my bar chart for chart.js
- PrimeNg bar chart how do I hide the bar labels?
- how to pass the value of input to my bar chart
- how can i show labels and value in both on bar chart
- How can I get my Chart.JS bar chart to stack two data values together on each bar, and print a calculated value on each bar?
- How to show symbols after the label and before the numeric value using chart.js Bar chart in Angular
- How to set minimal value for bar chart in Chart.js? (ver. 2.0.2)
- How to sort stacked bar chart on certain value of bar in charts.js
- how to show data value on bar chart body rather than using tooltip?
- How can i get the Chart JS Bar Graph Bar Label and Value on click?
- How to set percentage value by default on each bars in horizontal bar chart js
- chart js 2 how to set bar width
- Chart.js Bar Chart - how to chart bars from 0
- How do you hide the title of a chart tooltip?
- How to put rounded corners on a Chart.js Bar chart
- chartjs : how to set custom scale in bar chart
- How to add second Y-axis for Bar and Line chart in Chart.js?
- How to create stacked bar chart using react-chartjs-2?
- How do I draw a vertical line on a horizontal bar chart with ChartJS?
- Chart.js bar chart : Grid color and hide label
- Hide empty bars in Grouped Stacked Bar Chart - chart.js
- How to display value of only one datapoint in line chart
- How to display inline values in a stacked bar chart with Chart.js?
- How to hide section in a Chart.js Pie Chart
- Remove the label and show only value in tooltips of a bar chart
- How to create single value Doughnut or Pie chart using Chart.js?
- How to have solid colored bars in angular-chart bar chart
- how to make a chart.js bar chart scrollable
More Query from same tag
- Hiding labels on y axis in Chart.js
- How to set the xAxes min and max values of time cartesian chart in Chart.js
- Resetting transform: rotate() by removing and appending canvas not showing data after appending and redrawing chart
- Draw a horizontal bar chart from right to left
- Plotting Dashed Vertical and Horizontal lines on line graph for single point
- I´m unable to map elements of an array
- Different gridline steps on chart js line chart
- Chartjs: Make some ticks (Sunday, Saturday) red
- Can not read property 'Concat' of Undefined
- Error Message when using ChartJS with React
- charts.js from session var, flicker effect
- Parsing JSON data into specific format for chart.js
- Show label for every data point in line chart
- Ticks callback not displaying strings containing decimal
- charts.js and timestamp as readable date
- How to sum/divide array values in chart.js?
- charts.js straight lines - i cant find a solution
- Declare data value dynamicaly to chart js
- Reduce spacing between bars in horizontal bar chart (chart.js)
- Angular 2 ng2-charts doughnut text in the middle disappears on mouse hover
- Chart js nested pie label colors in legend
- Customizing Chart.js
- Chart.js max legend height
- Chart.js : How I change the x axes ticks labels alignment in any sizes?
- vue-chart.js / vuex: Chart not updating when vuex state changes
- How to trigger ChartJS legend onClick with out interrupting its normal working
- Smaller scale for volume dataset in Chart JS
- Chart.js barchart custom on hover method
- Animate datasets separately
- Loading json file to chartjs