on 10-31-2016 6:39 AM
Hello,
I've a simple requirement where, a user checks/unchecks multiple check-boxes and eventually data gets reflected on the chart by using .setDataSelection script.
Issue:-
My chart legends/bars COLOR gets changed while assigning data on the fly.
To explain better please relate below scenario's with attached screenshots.
Scenario: with TWO KF's scenario-two-fks.png
KF's Internal Cost(Labour_1) - Brown (some data)
KF's Outsourced Cost(Labour_2) - Green (no data - blank)
Now, Scenario with THREE KF's (Issue with colors) scenario-three-fks.png
setDataSelection on the fly....
KF's Internal Cost(Labour_1) - Blue (some data)
KF's Internal Cost(Material_1) - Green(some data)
KF's Outsourced Cost(Labour_2) - Yellow (no data - blank)
Possible workaround with limitations ??
set below css to graph, but the challenge is, if i can set css to specific KF's. Not sure if we can do that, as the below code will apply to all KF's.
.v-datapoint[fill="#748cb2"]
Highly appreciate your suggestions.
Regards,
Fahad
Updating the thread with some progress on my end.
My thought so far: It pretty much looks like a BUG to me.
How to fix it?
Use CSS that will over-write the default color code from chart-properties.
Code for LINE chart -
.my_chart g.v-m-main g.v-m-plot g.v-axis1 .v-lines.v-morphable-line:nth-child(1) {Stroke: #5A0000;}
(my_chart = css class (you can change this to anything and call/Set this in your chart properties)
Issue:
Not sure what code I should use to overwrite data-points (like I want then Black)
Any suggestions on that will be highly appreciated, thanks
-Fahad
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.