Change chart axis labels in silverlight -


i have generic chart type contains points list<double>. how can programatically change axis label each point custom label, i.e. use string instead of double value?

for example:

point1 = (1,5) point2 = (2,10) point3 = (3,25) 

instead of x-axis displaying 1,2, , 3, substitute 1 california, 2 arizona, 3 new mexico. thank you.

edit: want make change through c#, not using xaml.

hi maybe helps...

http://expression.microsoft.com/en-us/dd433476

this part interessting you...

 charting : pieseries.itemssource >    < controls : objectcollection >        < local : chartpointdata value ="1"                              label="pete" />        <local:chartpointdata value="3"                              label="david" />        <local:chartpointdata value="9"                              label="justin" />        <local:chartpointdata value="5"                              label="shawn" />        <local:chartpointdata value="5"                              label="john" />    </controls:objectcollection> </charting:pieseries.itemssource> 

let me know if helps...

edit:

the article describes there should class this

    public classchartpointdata    {        public double value { get; set; }        public string label { get; set; }    } 

so not use point class class double , string...


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -