Chartjs-How to make one datefilter for multiple charts on one webpage?

0👍

I solved it! It doesn’t need any special code.
Just call the other charts to the html part. No need to iterate the breadcrumbs part on html.

<div class="card-body">
  <div class="chart-area">
      <canvas id="acceleroxChart"></canvas>
  </div>
</div> <!--end of area chart-->
<br>
<h2>Chart2</h2>
<br>
<div class="card-body">
  <div class="chart-area">
      <canvas id="theotherchartname"></canvas>
  </div>
</div>
.........and so on....

You can still use the the same structure code as the js file above for the other charts sensor, just change the data you need.

Leave a comment