This is a migrated thread and some comments may be shown as answers.
hide axis scale line and show major tick label & hide Legend marker figure
1 Answer 56 Views
This is a migrated thread and some comments may be shown as answers.
shaji
Top achievements
Rank 1
shaji asked on 07 Feb 2011, 06:52 AM
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 ?



1 Answer, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 09 Feb 2011, 10:22 AM
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.
Asked by
shaji
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Share this question
or