All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
public
partial
class
_Default : System.Web.UI.Page
{
protected
void
Page_Load(
object
sender, EventArgs e)
ChartSeries series1 =
new
ChartSeries();
if
(!IsPostBack)
ChartSeries series =
ChartSeries() { Type = ChartSeriesType.Pie };
series.Appearance.LegendDisplayMode = ChartSeriesLegendDisplayMode.ItemLabels;
series.Items.Add(
ChartSeriesItem(20) { Name =
"Test 1"
});
ChartSeriesItem(40) { Name =
"Test 2"
ChartSeriesItem(60) { Name =
"Test 3"
radChart.Series.Add(series);
radChart.BeforeLayout +=
this
.radChart_BeforeLayout;
}
private
radChart_BeforeLayout(
var style =
FillStyle();
style.MainColor = Color.Red;
style.FillType = FillType.Solid;
radChart.Legend.AddCustomItemToLegend(
"Custom"
, style, DefaultFigures.Cross);