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