antoniolago / react-gauge-component

React gauge component for data visualization.
https://antoniolago.github.io/react-gauge-component/
MIT License
132 stars 19 forks source link

Change the default/empty arc color from rgb(92,92,92) #39

Closed antoniolago closed 2 weeks ago

antoniolago commented 6 months ago

Discussed in https://github.com/antoniolago/react-gauge-component/discussions/26

Originally posted by **buildpath-ian** November 6, 2023 How can I modify the color of the dark grey default arc ?
notwatermango commented 4 months ago

I've been looking for this too, need at least a light mode grafana color.

LucasPupat commented 3 months ago

In a global CSS file or a parent div (for doughnut gauge):

.doughnut > :last-child > path {
    fill: #f00 !important;
}
antoniolago commented 2 weeks ago

Implemented a property to handle this on v1.2.3 (#56).

Please try arc.emptyColor property.