This is a migrated thread and some comments may be shown as answers.

Help with pie chart please.

3 Answers 93 Views
Chart (HTML5)
This is a migrated thread and some comments may be shown as answers.
Uttam Dhakal
Top achievements
Rank 1
Uttam Dhakal asked on 06 Nov 2012, 02:53 PM
I am building a pie chart totally programatically and displaying in a panel.
My page has a fixed width and the panel have 400px fixed width. rest other are for other elements displayed.
My chart appears very small since i have the label name pretty long. i cant change the label name but i can align it to bottom so that chart appears throughout the whole areas and my labels appear at the bottom.
Is there any way it can be done through Server side code only.
Please refer to the attached picture about the char sturucture

3 Answers, 1 is accepted

Sort by
0
Brian
Top achievements
Rank 1
answered on 06 Nov 2012, 04:11 PM
Inside your Pie Chart tags, add a legend tag, as follows:

<telerik:RadHTMLChart runat="server" ID="myPieChart">
    <Legend>
        <Appearance Position="Bottom" />
    </Legend>

</telerik:RadHtmlChart>
0
Uttam Dhakal
Top achievements
Rank 1
answered on 06 Nov 2012, 04:26 PM
I don't have pie chart tags,
i am dynamically creating pie chart from server side.
how to set that in server side code...
0
Accepted
Brian
Top achievements
Rank 1
answered on 06 Nov 2012, 04:39 PM
Have you tried:

myPieChart.Legend.Appearance.Position = Telerik.Web.UI.HtmlChart.ChartLegendPosition.Bottom

where "myPieChart" is your actual chart id?
Tags
Chart (HTML5)
Asked by
Uttam Dhakal
Top achievements
Rank 1
Answers by
Brian
Top achievements
Rank 1
Uttam Dhakal
Top achievements
Rank 1
Share this question
or