<%@ Page Language="C#" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
<title>Telerik ASP.NET Example</title>
</head>
<body>
<form id="form1" runat="server">
<telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
<telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
<div class="demo-container size-wide">
<telerik:RadHtmlChart runat="server" ID="RadHtmlChart1" DataSourceID="SqlDataSource1">
<PlotArea>
<Series>
<telerik:BarSeries DataFieldY="Price">
<LabelsAppearance>
<ClientTemplate>#=dataItem.ProductName# ($#=dataItem.Price#)</ClientTemplate>
</LabelsAppearance>
<TooltipsAppearance Color="White">
<ClientTemplate>#=dataItem.ProductName#<br />#=dataItem.Manufacturer#</ClientTemplate>
</TooltipsAppearance>
</telerik:BarSeries>
</Series>
<XAxis DataLabelsField="ProductName">
</XAxis>
<YAxis>
<LabelsAppearance>
<ClientTemplate>#=value# \n #if (value < 1000) {# low #} else if(value == 1000) {# good #} else {# high #}# \n price</ClientTemplate>
</LabelsAppearance>
</YAxis>
</PlotArea>
<Legend>
<Appearance>
<ClientTemplate>Products by Price \n (#= series.data.length # items) </ClientTemplate>
</Appearance>
</Legend>
</telerik:RadHtmlChart>
</div>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:TelerikConnectionString %>"
SelectCommand="SELECT [ProductName], [Manufacturer], [Price] FROM [Products]"></asp:SqlDataSource>
</form>
</body>
</html>