chartts js 2 y axes label
var canvas = document.getElementById('chart');
new Chart(canvas, {
type: 'line',
data: {
labels: ['1', '2', '3', '4', '5'],
datasets: [{
label: 'A',
yAxisID: 'A',
data: [100, 96, 84, 76, 69]
}, {
label: 'B',
yAxisID: 'B',
data: [1, 1, 1, 1, 0]
}]
},
options: {
scales: {
yAxes: [{
id: 'A',
type: 'linear',
position: 'left',
}, {
id: 'B',
type: 'linear',
position: 'right',
ticks: {
max: 1,
min: 0
}
}]
}
}
});
Also in JavaScript:
- get hours javascript
- get serialize data javascript
- A fatal JavaScript error has occurred. Should we send an error report
- compare two dates using moment
- javascript object notation
- js index to index
- react native margin
- FizzBuzz
- node js find directory change directory
- emergency food meme
- c# newtonsoft serialize dictionary to json
- ultimate course replace switch with object
- javascript find smallest number in an array
- check if object is empty javascript
- react client real ip address
- sequelize get data
- how to copy text from input through button click js
- not equal to in js
- expressjs cheat sheet
- javascript backslash
- $.extend jquery
- JS get min date
- set value of attribute using each and keyup jquery
- if both td data are same then merze how in javascript