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

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

serialization - Convert Any type in scala to Array[Byte] and back -

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -