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

Radchart label text hidden

5 Answers 107 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Kishor
Top achievements
Rank 2
Kishor asked on 02 Jun 2014, 05:13 AM
hello

Iam using radchart for windows form

as attached in below chart ,the x-axis text is not seen completely

i want to see the complete text

please help

thanks
kishor

5 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 02 Jun 2014, 06:38 AM
Hi Sawan,

SVG itself (which is what RadHtmlChart uses to render) does not support line breaks. As a Suggestion you can  use the tooltip to show the long values and placing a truncated (or otherwise shortened) information in the labels. Please take a look into this page which discuss about adding LineBreaks in SVG.

Thanks ,
Princy.
0
Kishor
Top achievements
Rank 2
answered on 02 Jun 2014, 07:03 AM
hello sir

tooltip will not work for me ,
 because i want to export this chart and print , and text is not shown in print

also iam using Radchart for windows and not asp ajax

thanks
0
Kishor
Top achievements
Rank 2
answered on 02 Jun 2014, 12:54 PM
hello
Iam using radchart for windows form
as attached in below chart ,I want to increase series name font size or make it Bold

please help
thanks
kishor
0
Accepted
Danail Vasilev
Telerik team
answered on 03 Jun 2014, 08:20 AM
Hi Kishor,

In order to display more text in the labels you can set a higher value for the MaxLength property. Regarding changing the legend's font you can use the following property:

ASPX:
<telerik:RadChart ID="RadChart1" runat="server" Height="400px" Width="600px" AutoTextWrap="true">
    <Series>
        <telerik:ChartSeries Type="Bar" Name="Series 1">
            <Items>
                <telerik:ChartSeriesItem YValue="30">
                </telerik:ChartSeriesItem>
                <telerik:ChartSeriesItem YValue="10">
                </telerik:ChartSeriesItem>
                <telerik:ChartSeriesItem YValue="20">
                </telerik:ChartSeriesItem>
            </Items>
        </telerik:ChartSeries>
    </Series>
    <PlotArea>
        <XAxis AutoScale="false">
            <Appearance>
                <LabelAppearance RotationAngle="-30"></LabelAppearance>
                <TextAppearance MaxLength="100"></TextAppearance>
            </Appearance>
            <Items>
                <telerik:ChartAxisItem TextBlock-Text="item 1 more text 1 more text 2 more text 3"></telerik:ChartAxisItem>
                <telerik:ChartAxisItem TextBlock-Text="item 2 more text 1 more text 2 more text 3"></telerik:ChartAxisItem>
                <telerik:ChartAxisItem TextBlock-Text="item 3 more text 1 more text 2 more text 3"></telerik:ChartAxisItem>
            </Items>
        </XAxis>
    </PlotArea>
</telerik:RadChart>
C#:
protected void Page_Load(object sender, EventArgs e)
{
    RadChart1.Legend.Appearance.ItemTextAppearance.TextProperties.Font = new System.Drawing.Font("Arial", 18, System.Drawing.FontStyle.Bold);
}



Regards,
Danail Vasilev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Kishor
Top achievements
Rank 2
answered on 03 Jun 2014, 12:04 PM
Thanks Danail

Problem is solved by the solution provided by you.


Thanks
Kishor
Tags
Chart (Obsolete)
Asked by
Kishor
Top achievements
Rank 2
Answers by
Princy
Top achievements
Rank 2
Kishor
Top achievements
Rank 2
Danail Vasilev
Telerik team
Share this question
or