skip to Main Content

Chart.js canvas, how can I swap data without the previous data affecting my hover events? – Photoshop

Using chart.js I have built some bar graphs. I swap out the data to show different graphs on clicks. Loading the page shows everything fine. <div id="chart-container"> <button class="dataSelector" onclick="dataSwap('webDevData')">WebDev Tools</button> <button class="dataSelector" onclick="dataSwap('graphicsData')">Graphic Design Tools</button> <div class="chart-window"> <canvas id="myChart"></canvas>…

VIEW QUESTION
Back To Top
Search