Completed
Last Updated: 18 Feb 2018 07:18 by Kasim
ADMIN
Danail Vasilev
Created on: 25 Jul 2013 17:25
Category: HtmlChart
Type: Feature Request
7
ADD ClientTemplate functionality for the Legend in RadHtmlChart
Currently ClientTemplates are exposed only for the Series labels and tooltips. Improving this functionality will let you feed data for the legend from more than one column of the datasource as well as to format numbers and dates in the legend. The benefit will be essential for Pie and Donut series.

For the time being the following workaround can be used:
JavaScript:

    <script>
        function pageLoad() {
            var chart = $find("<%=RadHtmlChart1.ClientID%>");
            chart._chartObject.options.legend.labels.template = "#=kendo.format(\'{0:d}\',dataItem.SellDate)#";
            chart.repaint();
        }
    </script>

ASPX:

        <telerik:RadHtmlChart runat="server" ID="RadHtmlChart1" Width="640px" Height="480px">
            <PlotArea>
                <Series>
                    <telerik:PieSeries DataFieldY="SellQuantity" NameField="SellDate">
                    </telerik:PieSeries>
                </Series>
            </PlotArea>
        </telerik:RadHtmlChart>
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
3 comments
Kasim
Posted on: 18 Feb 2018 07:18
Is this implementation done? If yes is there any demo using the same available to see / use in actual application?
Jon
Posted on: 10 Jun 2014 07:17
A very important addition.  Just pleased there is a work around :)
Jegan
Posted on: 04 Dec 2013 13:34
sdfsdfs