HTML Chart group name not showing

2 posts, 0 answers
  1. sanman02150
    sanman02150 avatar
    4 posts
    Member since:
    Sep 2013

    Posted 16 Oct 2013 Link to this post

    I am trying to make a basic chart like

    I am able to get it to mark up the chart with the Sales numbers, but I am not able to get the chart to show "Q1", "Q2", "Q3", etc as the name of the columns.

    What do i have to do to show the column names on the chart?
  2. Danail Vasilev
    Danail Vasilev avatar
    1476 posts

    Posted 17 Oct 2013 Link to this post


    You can use the ClientTemplate functionality of the RadHtmlChart, in order to display the category of SeriesItems in labels/tooltips. For example:
    <telerik:RadHtmlChart runat="server" ID="ColumnChart" Width="800" Height="500">
                    <telerik:AxisItem LabelText="Q1"></telerik:AxisItem>
                    <telerik:AxisItem LabelText="Q2"></telerik:AxisItem>
                    <telerik:AxisItem LabelText="Q3"></telerik:AxisItem>
                <telerik:ColumnSeries Name="Wooden Table">
                    <LabelsAppearance Position="OutsideEnd">
                            Value is #=value#, Category is: #=category#
                            Value is #=value#, Category is: #=category#
                        <telerik:CategorySeriesItem Y="25000"></telerik:CategorySeriesItem>
                        <telerik:CategorySeriesItem Y="12000"></telerik:CategorySeriesItem>
                        <telerik:CategorySeriesItem Y="39000"></telerik:CategorySeriesItem>

    More information on using ClientTemplates is available in Main properties section of ClientTemplate for Series Labels and Tooltips Overview help article.

    Danail Vasilev
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  3. DevCraft R3 2016 release webinar banner
Back to Top