javascript - Chartjs - how to make line position to vertical center and how to display dotted sharp in the backround? -


i ask how configure chart using chartjs library result similar on image below in right way? tried find option in documentation http://www.chartjs.org/docs/#line-chart-chart-options, without luck.

enter image description here

many advice.

chart.js version 2+

use borderdash property in scales.x|yaxes.gridlines configuration object.

example :


var options = {     scales: {                 xaxes: [{                    gridlines: {                       display: true,                       linewidth: 1,                       borderdash: [1, 2],                       color: "black"                     }                 }],                 yaxes: [{                    gridlines: {                       display: true,                       linewidth: 1,                       borderdash: [1, 2],                       color: "black"                     }                 }],             } } 

Comments

Popular posts from this blog

many to many - Django Rest Framework ManyToMany filter multiple values -

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

Java Entity Manager - JSON reader was expecting a value but found 'db' -