Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to highlight a 3DChart bar from code? (Read 4746 times)
abrechts
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 14
Joined: May 30th, 2016
How to highlight a 3DChart bar from code?
Aug 15th, 2016 at 1:01pm
Print Post  
Is there a way to highlight a specific 3D chart bar from code (having meshselection=true), as opposed to clicking on it?
  
Back to top
 
IP Logged
 
Slavcho
God Member
*****
Offline


tech.support

Posts: 3147
Joined: Oct 19th, 2005
Re: How to highlight a 3DChart bar from code?
Reply #1 - Aug 16th, 2016 at 11:25am
Print Post  
Hi,

There is no higher-level public API provided for highlighting. All that the click highlight does is to apply MeshSelectionBrush to the clicked bar anyway, so you could do the same for respective Brush in the series, e.g.

Code
Select All
chart.Series[0].Brushes[5] = myHighlightBrush;
chart.UpdateChart(); 



Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
abrechts
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 14
Joined: May 30th, 2016
Re: How to highlight a 3DChart bar from code?
Reply #2 - Aug 16th, 2016 at 3:37pm
Print Post  
I don't seem to be able to find any public 'Brushes' property of BarSeries. if you meant the 'Fills' property instead, wouldn't this paint *all* bars of the series?
  
Back to top
 
IP Logged
 
Slavcho
God Member
*****
Offline


tech.support

Posts: 3147
Joined: Oct 19th, 2005
Re: How to highlight a 3DChart bar from code?
Reply #3 - Aug 17th, 2016 at 8:59am
Print Post  
Right, I meant Fills. The chart will recycle the brushes there when there are more bars than brushes, so that might not be convenient indeed if you aren't already assigning as many Fills as there are bars. We'll add some highlight API for next release.
  
Back to top
 
IP Logged
 
abrechts
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 14
Joined: May 30th, 2016
Re: How to highlight a 3DChart bar from code?
Reply #4 - Aug 17th, 2016 at 9:56am
Print Post  
Thanks for planning to implement this.

(PS: The xml files for the dll's were missing in the last NuGet release, would be great to have them back in the next one ...)
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint