Set chart.js defaulFontColor

This commit is contained in:
Paul Laros
2022-02-04 21:44:45 +01:00
parent 44c93e575d
commit 9ddc8869e2
+1
View File
@@ -1,5 +1,6 @@
// Usage: https://www.chartjs.org/ // Usage: https://www.chartjs.org/
import Chart from "chart.js"; import Chart from "chart.js";
Chart.defaults.global.defaultFontColor = window.theme["gray-600"];
Chart.defaults.global.defaultFontFamily = "'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif"; Chart.defaults.global.defaultFontFamily = "'Inter', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif";
window.Chart = Chart; window.Chart = Chart;