mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-29 14:12:28 +02:00
Compare commits
2 Commits
4210b2eabc
...
fd66a7cb20
Author | SHA1 | Date | |
---|---|---|---|
|
fd66a7cb20 | ||
|
c0f0f8db73 |
@ -147,6 +147,8 @@
|
||||
});
|
||||
|
||||
// Initialize empty Pie chart
|
||||
const elementBody = document.querySelector('body');
|
||||
const elementBodyCss = getComputedStyle(elementBody);
|
||||
const ctx = document.getElementById('pieChart').getContext('2d');
|
||||
const pieChart = new Chart(ctx, {
|
||||
type: 'pie',
|
||||
@ -180,6 +182,8 @@
|
||||
}
|
||||
});
|
||||
|
||||
Chart.defaults.color = elementBodyCss.color;
|
||||
|
||||
// AJAX call to dynamically update the chart
|
||||
$.ajax({
|
||||
url: '{% url "mumble:release_pie_chart_data" %}', // Your Django view URL that returns chart data
|
||||
|
Loading…
x
Reference in New Issue
Block a user