0
I am new here in the forum, but I came across a problem, I wanted to know if it is possible to develop a line chart, but mark certain areas, equal to the graph of the normal distribution, I have tried with Charts but I only managed to arrive at a similar result, if you can help from now thank you.
<!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>
<script src="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>