javascript - How do I use ChartJS with a background color in the space between two line charts? -


i create chart similar following chartjs. it's 2 line charts space between 2 lines filled in.

enter image description here

the x axis time of each sample, y axis min & max temperature recorded @ time.

the area between min/max bit needs filled in, outside min/max lines should remain unfilled.

is possible chartjs?

thanks shawty

did know abut hicgcharts

$(function () {      $('#container').highcharts({          chart: {              type: 'area'          },          title: {              text: 'temp'          },          xaxis: {              categories: ['1pm', '2pm', '3pm', '4pm', '5pm']          },          credits: {              enabled: false          },          colors: [ '#910000', '#00ffff'],          series: [{              name: 'max temp',              data: [5, 3, 4, 7, 2]          }, {              name: 'min temp',              data: [2, 2, 3, 2, 1]          }]      });  });
<script src="https://code.jquery.com/jquery-3.1.0.min.js"></script>  <script src="https://code.highcharts.com/highcharts.js"></script>  <script src="https://code.highcharts.com/modules/exporting.js"></script>    <div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -