Skip to content

Commit

Permalink
pkp/pkp-lib#9753 [main] Adjust chart.js config option to make it comp…
Browse files Browse the repository at this point in the history
…atible with v4
  • Loading branch information
blesildaramirez authored and asmecher committed Aug 21, 2024
1 parent fc67e7e commit cf9b72a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/themes/default/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
// Modify the Chart.js display options used by UsageStats plugin
document.addEventListener('usageStatsChartOptions.pkp', function(e) {
e.chartOptions.elements.line.backgroundColor = 'rgba(0, 122, 178, 0.6)';
e.chartOptions.elements.rectangle.backgroundColor = 'rgba(0, 122, 178, 0.6)';
e.chartOptions.elements.bar.backgroundColor = 'rgba(0, 122, 178, 0.6)';
});

// Toggle display of consent checkboxes in site-wide registration
Expand Down

0 comments on commit cf9b72a

Please sign in to comment.