changing axes titels dynamycally

Aug 15, 2012 at 8:59 AM
Edited Aug 16, 2012 at 12:53 PM


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?




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

Nov 6, 2012 at 8: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 8:54 AM
Edited Nov 6, 2012 at 8: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:HorizontalAxisTitle Name="plotterXtitle" />

and in the code:

plotterXtitle.Content = "Time(sec)";






Nov 6, 2012 at 8: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 9, 2016 at 11:14 PM
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.