This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//set up series | |
var series = plotArea.Series; | |
var barSeries = new ColumnSeries(); | |
barSeries.Name = "Week 1"; | |
barSeries.Items.AddRange(new List<SeriesItem> | |
{ | |
new SeriesItem(35), | |
new SeriesItem(52), | |
new SeriesItem(18), | |
new SeriesItem(39), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//set up y-axis | |
var yAxis = plotArea.YAxis; | |
yAxis.Color = Color.Black; | |
yAxis.MajorTickSize = 1; | |
yAxis.MajorTickType = TickType.Outside; | |
yAxis.MinorTickSize = 1; | |
yAxis.MinorTickType = TickType.Outside; | |
yAxis.MaxValue = 100; | |
yAxis.MinValue = 0; | |
yAxis.Step = 25; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//set up x-axis | |
var xAxis = plotArea.XAxis; | |
xAxis.AxisCrossingValue = 0; | |
xAxis.Color = Color.Black; | |
xAxis.MajorTickType = TickType.Outside; | |
xAxis.MinorTickType = TickType.None; | |
xAxis.Reversed = false; | |
var axisItemCollection = xAxis.Items; | |
axisItemCollection.AddRange(new List<AxisItem>() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//set up plot area | |
var plotArea = myChart.PlotArea; | |
plotArea.Appearance.FillStyle.BackgroundColor = Color.YellowGreen; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//set up chart legend | |
var legend = myChart.Legend; | |
legend.Appearance.BackgroundColor = Color.White; | |
legend.Appearance.Position = ChartLegendPosition.Bottom; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//set up chart title | |
var chartTitle = myChart.ChartTitle; | |
chartTitle.Text = "Server CPU Load by Days"; | |
chartTitle.Appearance.Align = ChartTitleAlign.Center; | |
chartTitle.Appearance.BackgroundColor = Color.White; | |
chartTitle.Appearance.Position = ChartTitlePosition.Top; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
myChart.Appearance.FillStyle.BackgroundColor = Color.LightGray; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected void Page_Load(object sender, EventArgs e) | |
{ | |
if (!IsPostBack) | |
{ | |
LoadChart(); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<telerik:RadHtmlChart ID="myChart" runat="server"></telerik:RadHtmlChart> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$scope.onSeriesClick = function(e){ | |
var categorySelected = e.category; | |
if(categorySelected === "MSIE") | |
{ | |
$scope.chartDataSource.data($scope.msieData); | |
} | |
else if(categorySelected === "Firefox") | |
{ | |
$scope.chartDataSource.data($scope.ffData); | |
} |