can we create 3D charts

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

    Posted 24 Jul 2009 Link to this post

    Hi,
    I am creating PIe chart, how can I remove its top, left, rigth, spaces.
    Legend show on bottom.

    I am sending you design code. please tell me how to remove extra spaces arround the chart. and
    <telerik:RadChart ID="chartCaseSummaryProductWise" runat="server" Skin="Office2007" 
            AutoLayout="True" SeriesPalette="customPalette" SeriesOrientation="Vertical" 
            AutoTextWrap="false" AlternateText="status ratio" Height="450px"   
            Width="300px" 
            DefaultType="Pie" PlotArea-Appearance-Border-Visible="false" ChartTitle-Visible="false" 
             PlotArea-DataTable-Appearance-AutoTextWrap="True">  
            <CustomPalettes>  
                <cc1:Palette Name="customPalette">  
                    <Items>  
                        <cc1:PaletteItem MainColor="White" SecondColor="LightCoral">  
                        </cc1:PaletteItem>  
                        <cc1:PaletteItem MainColor="White" SecondColor="#666666">  
                        </cc1:PaletteItem>  
                        <cc1:PaletteItem MainColor="White" SecondColor="Lavender">  
                        </cc1:PaletteItem>  
                        <cc1:PaletteItem MainColor="White" SecondColor="LightBlue">  
                        </cc1:PaletteItem>  
                        <cc1:PaletteItem MainColor="White" SecondColor="Red">  
                        </cc1:PaletteItem>  
                        <cc1:PaletteItem MainColor="White" SecondColor="Yellow">  
                        </cc1:PaletteItem>  
                        <cc1:PaletteItem MainColor="White" SecondColor="Violet">  
                        </cc1:PaletteItem>  
                        <cc1:PaletteItem MainColor="White" SecondColor="PaleTurquoise">  
                        </cc1:PaletteItem>  
                        <cc1:PaletteItem MainColor="White" SecondColor="AntiqueWhite">  
                        </cc1:PaletteItem>  
                        <cc1:PaletteItem MainColor="White" SecondColor="#000066">  
                        </cc1:PaletteItem>  
                        <cc1:PaletteItem MainColor="White" SecondColor="Khaki">  
                        </cc1:PaletteItem>  
                        <cc1:PaletteItem MainColor="White" SecondColor="#990099">  
                        </cc1:PaletteItem>  
                        <cc1:PaletteItem MainColor="White" SecondColor="#FFCC66">  
                        </cc1:PaletteItem>  
                        <cc1:PaletteItem MainColor="White" SecondColor="#CCCC00">  
                        </cc1:PaletteItem>  
                        <cc1:PaletteItem MainColor="White" SecondColor="Purple">  
                        </cc1:PaletteItem>  
                        <cc1:PaletteItem MainColor="White" SecondColor="#00FF00">  
                        </cc1:PaletteItem>  
                        <cc1:PaletteItem MainColor="White" SecondColor="Orange">  
                        </cc1:PaletteItem>  
                        <cc1:PaletteItem MainColor="White" SecondColor="DarkSalmon">  
                        </cc1:PaletteItem>  
                        <cc1:PaletteItem MainColor="White" SecondColor="PaleGoldenRod">  
                        </cc1:PaletteItem>  
                        <cc1:PaletteItem MainColor="White" SecondColor="MediumVioletRed">  
                        </cc1:PaletteItem>  
                        <cc1:PaletteItem MainColor="White" SecondColor="FireBrick">  
                        </cc1:PaletteItem>  
                        <cc1:PaletteItem MainColor="White" SecondColor="#CCCCCC">  
                        </cc1:PaletteItem>  
                    </Items>  
                </cc1:Palette>  
            </CustomPalettes>  
            <Appearance Border-Visible="false"   
            Dimensions-Margins="0%, 0%, 0px, 0px" 
             Dimensions-Paddings="0px, 0px, 0px, 0px">  
            </Appearance>  
            <PlotArea>  
            <Appearance   Dimensions-Margins="10%, 10%, 10px, 10px" 
             Dimensions-Paddings="10px, 10px, 10px, 10px">  
              
            </Appearance>  
            </PlotArea>  
            <Legend Visible="true" Appearance-Border-Visible="false">  
                  
                <Appearance Dimensions-Margins="0%, 0%, 0px, 0px"   
                            Dimensions-Paddings="0px, 0px, 7px, 0px" 
                            Position-AlignedPosition="BottomLeft" 
                            Overflow="Row" 
                            >  
                    <ItemTextAppearance TextProperties-Color="Navy">  
                    </ItemTextAppearance>  
                    <ItemMarkerAppearance Figure="Ractangle" Border-Visible="true" Position-AlignedPosition="TopRight">  
                    </ItemMarkerAppearance>  
                    <Border Visible="False"></Border>  
                </Appearance>  
            </Legend>  
        </telerik:RadChart>  
     
     
     
     
     
    Code :   
     protected void Page_Load(object sender, EventArgs e)  
        {  
            if (!Page.IsPostBack)  
            {  
                BindCaseSummaryProductWise();  
                if (Session["SessionID"] != null)  
                    SessionID = Convert.ToInt32(Session["SessionID"]);  
            }         
        }  
     
        private void BindCaseSummaryProductWise()  
        {  
            try 
            {  
                ChartSeries series = new ChartSeries("CaseProductStatus", ChartSeriesType.Pie);  
                series.DataYColumn = "total_cases";  
                series.DataXColumn = "case_product_name";  
     
                series.Appearance.LegendDisplayMode = ChartSeriesLegendDisplayMode.ItemLabels;              
                //series.DefaultLabelValue = "#%";  
                chartCaseSummaryProductWise.ItemDataBound += new EventHandler<ChartItemDataBoundEventArgs>(chartCaseSummaryProductWise_ItemDataBound);  
                chartCaseSummaryProductWise.Series.Add(series);  
     
                  
                objDashBoardWS = new DashBoardWS();  
                chartCaseSummaryProductWise.DataSource = objDashBoardWS.Get_CaseSummaryChart_ProductWise(SessionID);  
     
                chartCaseSummaryProductWise.DataBind();  
                  
            }  
            catch (Exception ex)  
            {  
                LogMessage(ex, 1);  
                return;  
            }  
        }  
     
        void chartCaseSummaryProductWise_ItemDataBound(object sender, ChartItemDataBoundEventArgs e)  
        {  
            e.SeriesItem.Name = (e.DataItem as DataRowView).Row[0].ToString();  
        }  
     
     
    Can we create 3D charts.?

    thanks with reagrds
  2. Ves
    Admin
    Ves avatar
    2927 posts

    Posted 30 Jul 2009 Link to this post

    Hi Golu,

    I can see you have set the Plot Area Margins to 10%, 10%, 10px, 10px". You might want to further decrease them. In addition, for pie chart there is another property which is taken into account:

    series
    .Appearance.DiameterScale

    Its default value is 0.75, so the pie does not fill the entire PlotArea. You can set it to 1.0 in order to increase the pie size.

    Finally, I am afraid RadChart for ASP.NET AJAX does not support 3D chart types. For real 3D charts you can check RadChart for Silverlight.

    Best regards,
    Ves
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top