Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gauge - change label color #1744

Closed
mwho opened this issue Jun 30, 2016 · 3 comments
Closed

Gauge - change label color #1744

mwho opened this issue Jun 30, 2016 · 3 comments

Comments

@mwho
Copy link

mwho commented Jun 30, 2016

I would like to change the label color as my gauge is set against a black background.

.c3 text {fill: white;}

doesn't work.

Is this possible, and if so how?

@jpchip
Copy link

jpchip commented Oct 13, 2016

This for the main label:

.c3-chart-arc .c3-gauge-value {
    fill: white;
}

and if you also want to change the min and max values:

.c3-chart-arcs .c3-chart-arcs-gauge-min {
    fill: white;
}
.c3-chart-arcs .c3-chart-arcs-gauge-max {
    fill: white;
}

@ashharhasan
Copy link

wow this really works, can you please guide how to change font size ?
color is working but "font-size" property not working

@panthony
Copy link
Contributor

Hi,

The issue queue is to be used for reporting defects and problems with C3.js, in addition to feature requests and ideas.

It is not a catch-all support forum.

For general support enquiries, please use the Google Group at https://groups.google.com/forum/#!forum/c3js.

All questions involving the interplay between C3.js and any other library (such as AngularJS) should be posted there first!

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants