- Welcome, Guest. Please Login or Register
MindFusion  
  Version 2 of our Xamarin Calendar component adds Resource view and support for Universal Windows Platform. Now beta testing spreadsheet component for Java Swing.  
  HomeHelpSearchLoginRegister   
     
     
   
 
Page Index Toggle Pages: 1 Send Topic Print  
How to highlight a 3DChart bar from code?
Read 901 times

abrechts   Offline
YaBB Newbies
*
Posts: 14
I Love MindFusion!


   
     
 
How to highlight a 3DChart bar from code?
Aug 15th, 2016 at 2:01pm
 
Is there a way to highlight a specific 3D chart bar from code (having meshselection=true), as opposed to clicking on it?
 
 
 
IP Logged    
 
     

Slavcho   Offline
God Member
*****
Posts: 975
Gender: male
tech.support


   
     
 
Re: How to highlight a 3DChart bar from code?
Reply #1 - Aug 16th, 2016 at 12:25pm
 
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:
chart.Series[0].Brushes[5] = myHighlightBrush;
chart.UpdateChart(); 



Regards,
Slavcho
Mindfusion
 
 
 
IP Logged    
 
     

abrechts   Offline
YaBB Newbies
*
Posts: 14
I Love MindFusion!


   
     
 
Re: How to highlight a 3DChart bar from code?
Reply #2 - Aug 16th, 2016 at 4:37pm
 
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?
 
 
 
IP Logged    
 
     

Slavcho   Offline
God Member
*****
Posts: 975
Gender: male
tech.support


   
     
 
Re: How to highlight a 3DChart bar from code?
Reply #3 - Aug 17th, 2016 at 9:59am
 
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.
 
 
 
IP Logged    
 
     

abrechts   Offline
YaBB Newbies
*
Posts: 14
I Love MindFusion!


   
     
 
Re: How to highlight a 3DChart bar from code?
Reply #4 - Aug 17th, 2016 at 10:56am
 
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 ...)
 
 
 
IP Logged    
 
     
Page Index Toggle Pages: 1 Send Topic Print