Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can the default arc color be set in a c3.js gauge?

Tags:

c3.js

The C3 gauge example here shows an arc where the default color is grey but when the same code is placed in our project, the default arc color is solid black. Is there any way to explicitly set the default arc color?

like image 959
spadelives Avatar asked Oct 13 '15 18:10

spadelives


People also ask

What is c3 and D3?

js is a JavaScript library for manipulating documents based on data. c3. js is a Javascript library which makes it easy to generate D3-based charts (less code to write). highchart is a Javascript charting framework.


1 Answers

Needed to add the following to the page's css file...

.c3-chart-arcs-background{fill:#e0e0e0;stroke:none} 
like image 144
spadelives Avatar answered Oct 30 '22 02:10

spadelives