Jump to content
JChartFX Community
  • 0

How to Apply Css for colors in 3d Bar chart Using Conditional Attributes.


Akash Rathore
 Share

Question

 I have the Bar chart with conditions (<50= red,>=50 and <80 = yellow, >=80 = Green). It is showing chart on passing values 50,61,81 as below:

 Error Image

 

 

 

 

 

 

 

 

 

 

 

 

 

 

But I need the Chart as Below : 

 

Correct Image 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

You can see the example at  http://jsfiddle.net/MK5j6/2/

Please Help....

Thanks In Advance.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

There is a bug but you can work around it by passing the color to the conditional attributes, e.g.

conditional1.setColor("#00FF00");

conditional2.setColor("#FFFF00");

conditional3.setColor("#FF0000");

We will actually use the color from the CSS (for the 3D planes) so it is not necessary that the colors you supply match the CSS but they should be different for each conditional (there might be optimizations where we ignore the change if we think the colors are the same). 

Regards,

JuanC 

post-2107-13939743475129_thumb.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...