I'm new here in the forum, but I had a problem, I wanted to know if it's possible to develop a line chart, but it marks certain areas, just like the normal distribution chart ,IalreadytriedwiththechartsbutIonlymanagedtoarriveataresultalittlebitlikethis,ifyoucanhelpwithitalready.yHwy2.png">
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Highcharts Example</title>
<style type="text/css">
</style>
</head>
<body>
<script src="javascript/highcharts.js"></script>
<script src="javascript/exporting.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.6.0/Chart.js"></script><scriptsrc="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.6.0/Chart.min.js"></script>
<canvas id="myChart"></canvas>
<script type="text/javascript">
const CHART = document.getElementById('myChart').getContext('2d');
var data = [1,2,3,4,5,6];
console.log(CHART);
let lineChart = new Chart(CHART, {
type:'line',
data: {
//nomes
labels:["","","","","desvioPadrao1","media","desviopadrao2","","","",""],
datasets:[{
label:"meu grafico",
fill:false,
backgroundColor:"rgba(72,192,192,0.4)",
borderColor:"rgba(93,95,92,1)",
borderCapStyle:'butt',
borderDash:[],
borderDashOffset:0.0,
borderJoinStyle:'miter',
fill:1,
data:[0.1,0.5,1,2,5,10,5,2,1,0.5,0.1],
},
{
label:"meu grafico",
backgroundColor:"rgba(00,02,192,0.4)",
borderColor:"rgba(93,95,92,1)",
data:[0,0,0,0,5,10,5,2,0,0,0],
}]
},
options: {
scales: {
yAxes: [{
ticks: {
beginAtZero:true,
max: 10+2
}
}],
xAxes:[{
ticks:{
scaleLabel: {
display:true
}
}
}]
}
}
});
</script>
</body>
</html>