If you know the structure of the generated html, then you can override anything.
div > .chart > span {
color: green;
}
Add an !important if need be.
Hello,
I am trying to change "dinamically" the font color on the side scale of a series in a ChartJS with Laravel Chart but I don't understand how to pass...
I want to do this:
scales: { y: { ticks: { color: '#00ff00', beginAtZero: true } }, x: { ticks: { color: '#ff0000', beginAtZero: true } } }
but inside the dataset creator in my controller:
$toolChart->dataset('H (mm)', 'bar', $strumentiH)->color("rgb(0, 51, 153)")->options(['yAxisID' => 'y-axis-1']);
$toolChart->dataset('V (m/s)', 'line', $strumentiV)->color("rgb(250, 51, 0)")->options(['yAxisID' => 'y-axis-2']);
as I passed the yAxisID to the 2 series.
How can I do that?
Thanks...
Please or to participate in this conversation.