Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function drawPlot(new_data,left,right){
- /*var speedData = {
- labels:labelV,
- datasets: [
- {
- backgroundColor: 'rgb(99,99,132)',
- pointBorderColor: 'orange',
- pointBackgroundColor: 'rgba(100,150,0,0)',
- }
- ]
- };
- var chartOptions = {
- tooltips: {
- enabled: true,
- mode: 'label'
- },
- legend: {
- display: true,
- position: 'top',
- labels: {
- boxWidth: 80,
- fontColor: 'black'
- }
- },
- title:{
- display:true,
- text:'Plot'
- },
- scales:{
- xAxes:[{
- ticks:{
- min:left,
- max:right,
- stepSize:1,
- },
- }],
- yAxes:[{
- gridLines:{
- offsetGridLines:true
- }
- }]
- }
- }*/
- lineChart = new Chart(speedCanvas, {
- type: 'line',
- data: {
- labels: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug"],
- datasets: [{
- label: '# of Value',
- data: [12, 19, 3, 5, 2, 3, 10, 29],
- backgroundColor: 'Black',
- borderColor: 'rgba(33, 145, 81, 1)',
- borderWidth: 1
- }]
- },
- options: {
- scales: {
- yAxes: [{
- ticks: {
- beginAtZero:true
- }
- }]
- }
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement