Silverlight / WPF - Show Graph with out x and y axis for column series

Asked By gopal krish on 12-Jun-12 02:48 AM
hi..

i need to Show Graph with out x and y axis?

i am using column series bar chart..
in that i m passing a integer value to show the bar. but i need to show the bar only and i dont want to show the x and y axis..

is it possible?

need ur suggestions..

regards
gopal.s
[)ia6l0 iii replied to gopal krish on 12-Jun-12 11:10 PM
I hope you are using the one from codeplex. 

Set the MajorTickMarkStyle to a staticresource where the targettype is a line and the visible property is marked "collapsed". That should do. 
<Style x:Key="tickmarkstyle" TargetType="Line">
            <Setter Property="Visibility" Value="Collapsed" />
</Style> 

And set this new static resource in the categoryaxis property. Do these for both the axes.
<chartns:CategoryAxis MajorTickMarkStyle="{StaticResource tickmarkstyle}" Orientation="Y"  />
<chartns:CategoryAxis MajorTickMarkStyle="{StaticResource tickmarkstyle}" Orientation="X"  />


Or you could do this inline.
<chartns:CategoryAxis.MajorTickMarkStyle>
                        <Style TargetType="Line">
                          <Setter Property="Visibility" Value="Collapsed" /> 
                        </Style>
</chartns:CategoryAxis.MajorTickMarkStyle>


Hope this helps.