Skip to content

Commit

Permalink
fix color of datalabels on pie charts
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnarTumi committed Nov 1, 2024
1 parent 86a4a99 commit 9303cd8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wagtailcharts/static/wagtailcharts/js/wagtailcharts.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Chart.defaults.set('plugins.datalabels', {
color: '#000000',
});

var formatValue = function (val, precision = 1, override) {
if (("" + val).indexOf("%") >= 0) {
return val;
Expand Down

0 comments on commit 9303cd8

Please sign in to comment.