Jump to content
Software FX Community

General Conditional Attributes question - do they override all point settings


mark042

Recommended Posts

Can anyone help? I am using the conditional attributes to do some formatting depending on value ranges. 

 Do I have to set ALL properties of the conditional attribute in order for it to work properly, or just those I want changing?

The reason I ask is that I am getting unexpected results where the conditional attribute appears to take on the properties of the first point covered by it, and replicate them to all other points it covers. For example, if I don't set the colour of the conditional attribute I expected it not to affect the colours of the points it applies to, but that is not the case.....all the colours in my chart become the colours of the first point.

To me the effect I am seeing almost negates the usefulness of the conditional attribute because I would need to set each point individually in the above example (i.e. conditional attribute for each point because each point is a different colour), so why would I not just do that manually using the point attributes instead having tested the point value???

 

 

Link to comment
Share on other sites

Ha - I am replying to my own question....well this part of the forum doesn't seem too well trodden anyway! I got round this issue by doing the tests explicitly on the values I was plotting and then programmatically setting the attributes of each point independently (well done ChartFX for having independent control on points!). Would liked to have used the conditional attributes, but it seemed that the explicit colours I set on the datapoints were being affected whereas I wanted the series-wide conditional attribute to leave those alone. Perhaps a future version could have an extra possible value for each property of the condition, which means "don't touch this" e.g. condition.color = "don't touch the existing values"?

 

 

 

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
Reply to this topic...

×   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.

×
×
  • Create New...