Chartjs-tsgauge
Chartjs-tsgauge copied to clipboard
Make label take the color of the backgroung color automatically selected
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.