on 05-26-2016 12:54 PM
Hello,
I am facing issues while trying to make color coding for different strokes in waterfall chart.
I havve 2 waterfall charts and all the strokes need different color. I am trying to do this using CSS code.
I am using below code.
.waterfall1 .v-waterfallgroup:nth-child(1) rect{ fill:#000000!important;}
.v-waterfallgroup:nth-child(2) rect{ fill:#366D6D!important;}
.v-waterfallgroup:nth-child(3) rect{ fill:#f00000!important;}
.waterfall2 .v-waterfallgroup:nth-child(1)_c1 rect{ fill:#ffff00!important;}
.v-waterfallgroup:nth-child(2) rect{ fill:#00ff40!important;}
.v-waterfallgroup:nth-child(3) rect{ fill:#8000ff!important;}
Please help.
Best Regards
Bikash
This message was moderated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bikash did you mentioned the classname on charts.
.waterfall1.v-waterfallgroup:nth-child(1) rect{ fill:#000000!important;}
.waterfall1 .v-waterfallgroup:nth-child(2) rect{ fill:#366D6D!important;}
.waterfall1 .v-waterfallgroup:nth-child(3) rect{ fill:#f00000!important;}
.waterfall2.v-waterfallgroup:nth-child(1) rect{ fill:red!important;}
.waterfall2 .v-waterfallgroup:nth-child(2) rect{ fill:orange!important;}
.waterfall2 .v-waterfallgroup:nth-child(3) rect{ fill:green!important;}
This works fine. Thanks,
Nithyanandam
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.