~set color for chart labels to black

This commit is contained in:
Julian Hinxlage 2019-05-28 15:22:39 +02:00
parent 1ae6204a40
commit 3e42b63290
2 changed files with 4 additions and 3 deletions

View File

@ -6,7 +6,7 @@
<!--Cards-->
<!--Analyse-Cards-->
<div id="analysis" class="row container">
<div id="analysis" class="row container black-text">
<!--Übersicht-->
<div class="col s12 m12">
<div id="overview" class="card white">
@ -16,7 +16,7 @@
<div class="card-content">
<div>
<canvas id="overview_chart" width="1000" height="400"></canvas>
<canvas class="black-text" id="overview_chart" width="1000" height="400"></canvas>
</div>
</div>
</div>

View File

@ -1,3 +1,5 @@
Chart.defaults.global.defaultFontColor = "black";
$(document).ready(function () {
let dataset = $('#dataset');
request('files').then(results => {
@ -33,7 +35,6 @@ function updateCache() {
}
}
function updateAll(uuid) {
updateWeekOverviewChart(uuid);
updateShoppingTimesChart(uuid);