This project is read-only.

changing axes titels dynamycally

Aug 15, 2012 at 9:59 AM
Edited Aug 16, 2012 at 1:53 PM

Hi, 

I'm quit new to this great library, and i have a simple Q that i cant seem to find an answer for in the discussion board history, which makes me feel it is even more simple than what i think... :)

Im have a general porpuse plotter in my gui tool, which the user can choose which graph he would like to plot on. I want to change the axis labels accordingly. It seems i can only set in advance the axes titels by hard coding them into the xaml. 

is there a simple way to do that?

thanks, 

Ido

 

Edit: same to the title, and infect all strings in  a graph. can those be changed dynamically during runtime?

Nov 6, 2012 at 9:27 AM

Isn't there anyone who fixed this problem? I tried it myself, but did not come to any conclusion yet...

Nov 6, 2012 at 9:54 AM
Edited Nov 6, 2012 at 9:55 AM

yea, it's easy :)

just name your axe in the xaml, and then in the code use the name to change the titels:

in the xaml: 

<d3:ChartPlotter>
	<d3:HorizontalAxisTitle Name="plotterXtitle" />
 </d3:ChartPlotter>

and in the code:

plotterXtitle.Content = "Time(sec)";

 

 

 

 

 

Nov 6, 2012 at 9:57 AM

Of course EASY :D Very Easy... That's the problem with all this programming... The last thing I thought about is the easy way... 

Thank you very much!!!!

May 10, 2016 at 12:14 AM
And how would you do it if you created the axis in code?
plotter. Child(Axis)
There is no Axis.Title reference to add the name of it.

Thanks