Skip to content

Commit

Permalink
update chart fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cihan emre kisakurek committed Oct 25, 2024
1 parent c58da39 commit 759eb5a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion resources/views/livewire/compositechart.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@
bar_chart = new Chart(ctx, bar_chart_config);
var chart_data = JSON.parse(event.detail.chart_data);
// chart.data.labels = chart_data.labels;
bar_chart.data.datasets[0].data = chart_data.data;
chart_data.dataset.forEach(function (value, i) {
// console.log('%d: %s', i, value);
bar_chart.data.datasets[i].data = value;
});
// chart.update();
bar_chart.update('none');
});
Expand Down

0 comments on commit 759eb5a

Please sign in to comment.