score:3
Accepted answer
You are using chart js v2 syntax on v1.
for v1
var barChartData = {
labels: ["January", "February", "March", "April", "May", "June", "July"],
datasets: [{
label: 'Dataset 1',
borderWidth: 1,
data: ["1","1","1","1","1","1","1"]
},
{
label: 'Dataset 2',
borderWidth: 1,
data: ["1","1","1","1","1","1","1"]
}]
};
window.onload = function() {
var ctx = document.getElementById("zeitsteuerungChart").getContext("2d");
var myBar = new Chart(ctx).Bar(barChartData, options);
};
you can view chart options (chart js v1) here or complete options here
Source: stackoverflow.com
Related Query
- Chart.js Show labels on Pie chart
- chart.js: Show labels outside pie chart
- Chart.js how to show cursor pointer for labels & legends in line chart
- show label in tooltip but not in x axis for chartjs line chart
- chartjs show dot point on hover over line chart
- Chart JS Show HTML in Tooltip
- chart js tooltip how to control the data that show
- How to show percentage (%) in chart js
- Show X axis on top and bottom in line chart rendered with Chart.js 2.4.0
- Chart looks only grey, does not show the color - Chartjs,discordjs
- Chart JS show multiple data points for the same label
- Show data dynamically in line chart - ChartJS
- Chartjs - show elements in all datasets on hover using bar chart
- Remove the label and show only value in tooltips of a bar chart
- Chart Js Show the old data on mouse hover
- ChartJS: Show all labels of a mixed chart in the tooltip
- Show all values in Chart js y axis
- PrimeNg bar chart how to show a label for the y-axis
- Show "No Data" message for Pie chart with no data
- Show data on top of bar chart in Chart.js v 2.7.1
- Show labels on each sector to polar chart using angular js chart
- How to show data values in top of bar chart and line chart in chart.js 3
- Chart.js - How to show loading animation before plotting chart
- Show point values in Radar Chart using chart.js
- Chart js doesn't show chart
- ChartJS (React) Line Chart - How to show single tooltip with data and labels from 3 (multiple) dataset?
- Angular chart how to show the legend data value by default along with legend name
- How to show percentage (%) using chartjs-plugin-labels ( Pie chart ) in angular 2/8
- How to show gradient vertically on chart js grouped bar chart?
- How to show different product name for every bar in chart js
More Query from same tag
- connect filter to multiple charts asp.net core mvc
- Chart.js - loading multiple charts with draggable datapoints into a single HTML Page
- Chart.js V2 formatting / styling labels
- React chart.js dynamic data update not rendering
- Draw chart.js with data from server
- How to pass a nested function to an HTML button and Dropdown menu
- Multi Line Chart.js with two Y-Axes
- Using Chart.js on Angular 4
- chartjs - How to use differente color if value is lower than previous value?
- How to skip labels of a line in multiline graph in chartjs?
- Add new line in es6 inside a doughnut chart
- return percentage in chart.js (v2+) legend
- how to remove odd number from yaxes in chartjs using angular?
- How to update a react-chartjs-2 plot using useState()
- chartjs is issue with large amount data
- Using Chart.js on Laravel 5.3
- How to plot multiple value for one X-axis chart.js
- Series Details Not Showing in Angular Chart with Charts.js
- How to implement chart.js in Angular2
- Show value on Mixed chart, Charts.js
- Chart JS - Disable lines and Uncheck legends by default
- chart.js update is not a function
- How would i print out HTML Chart.Js Legends using the global parameters
- yAxes not working with min max option
- How to align labels at same side chartjs React
- How to use chart.js to plot line chart with x axis as time stamp in seconds
- chartJS pie chart not updating after axios GET
- data in charts of charts.js is changing when I click in the line chart
- How to change the color of y axis labels in different color in Chart.js
- How to set Custom tooltip event with Chartjs version 2.X