Chartjs-tsgauge icon indicating copy to clipboard operation
Chartjs-tsgauge copied to clipboard

Make label take the color of the backgroung color automatically selected

Open dahider2 opened this issue 4 years ago • 0 comments

Hi,

Is it possible to let the label take automatically the color generated by the gaugeData value?

like this: var ctx = document.getElementById("gauge-chart").getContext("2d"); new Chart(ctx, { type: "tsgauge", data: { datasets: [{ backgroundColor: ["red", "orange", "lightgreen"], borderWidth: 0, gaugeData: { value: 40, valueColor: "auto" }, gaugeLimits: [ 0, 50, 80, 100 ] }] }, options: { events: [], showMarkers: true } });

Thank you.

dahider2 avatar May 29 '20 17:05 dahider2