Hello,
I'm attempting to get the x-axis value from the Shared Template section of a HTML chart so that I can pass that value to a JS function for creating the tooltip display. Is there any way of getting this value? You can see the HTML markup below.
<telerik:RadHtmlChart ID="lcPayrollBiWeekly" runat="server" CssClass="FieldLabel" EnableViewState="false"> <ClientEvents OnSeriesHover="seriesHover" /> <ChartTitle Text="Bi-Weekly Payroll Comparison" > <Appearance BackgroundColor="White" Position="Top" /> </ChartTitle> <Legend> <Appearance BackgroundColor="White" Position="Bottom" /> </Legend> <PlotArea> <CommonTooltipsAppearance Shared="true"> <SharedTemplate> # for (var i = 0; i < points.length; i++) { # <div>#= formatLabel(points[i].value, points[i].value.x, points[i].series.name) #</div> # } # </SharedTemplate> </CommonTooltipsAppearance> <Appearance FillStyle-BackgroundColor="White"/> <YAxis> <LabelsAppearance DataFormatString="{0:C}" RotationAngle="0" /> <TitleAppearance Text ="Amount" /> <MinorGridLines Visible="false" /> </YAxis> <XAxis> <LabelsAppearance RotationAngle="0" /> <TitleAppearance Text="Payroll Period" /> <MinorGridLines Visible="false" /> </XAxis> </PlotArea></telerik:RadHtmlChart>
Thanks,
Johnathan