From: Jukka Kurkela Date: Mon, 31 Aug 2020 11:57:06 +0000 (+0300) Subject: Color the scales of multi-axis scatter sample (#7741) X-Git-Tag: v3.0.0-beta.2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a32e672fb2a0fc6d2d451a7fcd73cad62da4d584;p=thirdparty%2FChart.js.git Color the scales of multi-axis scatter sample (#7741) --- diff --git a/samples/charts/scatter/multi-axis.html b/samples/charts/scatter/multi-axis.html index 936b5ac97..853ab3529 100644 --- a/samples/charts/scatter/multi-axis.html +++ b/samples/charts/scatter/multi-axis.html @@ -101,7 +101,13 @@ y: { type: 'linear', // only linear but allow scale type registration. This allows extensions to exist solely for log scale for instance display: true, - position: 'left' + position: 'left', + + ticks: { + font: { + color: window.chartColors.red + } + } }, y2: { type: 'linear', // only linear but allow scale type registration. This allows extensions to exist solely for log scale for instance @@ -109,7 +115,12 @@ position: 'right', reverse: true, - // grid line settings + ticks: { + font: { + color: window.chartColors.blue + } + }, + gridLines: { drawOnChartArea: false, // only want the grid lines for one axis to show up }