Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Web
Mobile
Document Management
Desktop
Reporting
Testing & Mocking
CMS
UI/UX Tools
Debugging
Free Tools
Support and Learning
Productivity and Design Tools
<
telerik:RadHtmlChart
runat
=
"server"
ID
"RadHtmlChart1"
Width
"640px"
Height
"480px"
>
PlotArea
Series
telerik:ScatterLineSeries
DataFieldY
"SellQuantity1"
DataFieldX
"SellDate"
LabelsAppearance
DataFormatString
"{1} cars sold on {0:m}"
</
TooltipsAppearance
Color
"White"
DataFormatString="{1} cars sold on<br/>{0:D}" />
XAxis
BaseUnit
"days"
TitleAppearance
Text
"Sell Date"
"d"
MajorGridLines
"#EFEFEF"
"1"
></
MinorGridLines
"#F7F7F7"
YAxis
"Quantity"
ChartTitle
"Sold Cars per Date"
telerik:RadButton
"RadButton1"
"Change DataFieldY1"
ButtonType
"ToggleButton"
ToggleType
"Radio"
GroupName
"gp1"
OnClick
"RadButton1_Click1"
Checked
"true"
/>
"RadButton2"
"RadButton1_Click2"
protected
void
Page_Load(
object
sender, EventArgs e)
{
RadHtmlChart1.DataSource = GetData();
RadHtmlChart1.DataBind();
}
DataTable GetData()
DataTable dt =
new
DataTable();
dt.Columns.Add(
"ID"
,
typeof
(
int
));
"SellQuantity2"
(DateTime));
dt.Rows.Add(1, 2, 12,
DateTime(2011, 06, 12));
dt.Rows.Add(2, 5, 15,
DateTime(2011, 12, 12));
dt.Rows.Add(3, 6, 16,
DateTime(2012, 06, 17));
dt.Rows.Add(4, 4, 14,
DateTime(2012, 09, 18));
dt.Rows.Add(5, 7, 17,
DateTime(2013, 03, 18));
return
dt;
RadButton1_Click1(
(RadHtmlChart1.PlotArea.Series[0]
as
ScatterLineSeries).DataFieldY =
;
RadButton1_Click2(
Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.