hide axis scale line and show major tick label & hide Legend marker figure

Thread is closed for posting
2 posts, 0 answers
  1. shaji
    shaji avatar
    5 posts
    Member since:
    Dec 2008

    Posted 07 Feb 2011 Link to this post

    Hi,

    1. I can hide Axis Scale visibility by setting  property. Visible="False"   but i need to hide only axis scale and minor ticks  not the Axis Major ticks and label.   How this can i handle this rad chart ? 

    2.   Another thing  I need to show only the legend marker text  and i wanted to hide Legend Marker Figure  only,   Is it possible in Radchart ?



  2. Evgenia
    Admin
    Evgenia avatar
    1437 posts

    Posted 09 Feb 2011 Link to this post

    Hello shaji,

    1. You can make Axis Scale invisible by setting it's Color to Transparent. To see that the change is affected you can turn off the Visibility of RadChart's border and set MainColor for the PlotArea to White. Here is how these changes could be achieved:
    <PlotArea Appearance-FillStyle-FillType="Solid" Appearance-FillStyle-MainColor="White"
                  Appearance-Border-Visible="false">
                  <XAxis>
                      <Appearance Color="Transparent">
                      </Appearance>
                  </XAxis>
                  <YAxis>
                      <Appearance Color="Transparent" MinorTick-Visible="false" />
                  </YAxis>
              </PlotArea>

    2. You can hide the Legend Items Marker by subscribing to BeroreLayout event of the Chart and by looping through the Legend Items set the Marker Visibility to false.
    protected void RadChart1_BeforeLayout(object sender, EventArgs e)
       {
           for (int i = 0; i < RadChart1.Legend.Items.Count; i++)
           {
                 
               RadChart1.Legend.Items[i].Marker.Visible = false;
           }
       }

    Kind regards,
    Evgenia
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Back to Top