### Example usage
```javascript
-var myBarChart = new Chart(ctx).Bar({
- data: data,
+var myBarChart = new Chart(ctx,{
+ type: 'bar',
+ data: data,
options: options
});
```
},
scales: {
- // The bar chart officially supports only 1 x-axis but uses an array to keep the API consistent. Use a scatter chart if you need multiple x axes.
+ // The bar chart officially supports only 1 x-axis but uses an array to keep the API consistent. Use a scatter chart if you need multiple x axes.
xAxes: [{
// String - type of axis to use. Should not be changed from 'dataset'.
scaleType: "dataset", // scatter should not use a dataset axis
```javascript
new Chart(ctx).Bar({
- data: data,
+ data: data,
options: {
barShowStroke: false
}