Posted on Feb 1, 2012 (permalink)
@(Html.Telerik().Chart<ElectricitySource>()
.Name(
"pieChart"
)
.Theme(Html.GetCurrentTheme())
.Title(
"Break-up of Spain Electricity Production for 2008"
.Legend(legend => legend
.Position(ChartLegendPosition.Bottom)
//.Visible(false)
.Series(series => {
series.Pie(
"Percentage"
,
"Source"
.Border(5,
"#ff0000"
, ChartDashType.Solid)
.Labels(labels => labels.Visible((
bool
)ViewBag.showLabels).Template(
"<#= category #>"
.Align((ChartPieLabelsAlign)ViewBag.align)
.Position((ChartPieLabelsPosition)ViewBag.position))
.StartAngle((
int
)ViewBag.startAngle).Padding((
)ViewBag.padding);
})
.DataBinding(dataBinding => dataBinding
.Ajax().Select(
"_SpainElectricity"
"Chart"
//.Tooltip(tooltip => tooltip.Visible(true).Template("<#= value #>%"))
.HtmlAttributes(
new
{ style =
"width: 500px; height: 400px;"
Reply
Posted on Feb 2, 2012 (permalink)
Thank you for contacting us. I confirm that this is a bug and I am glad to inform you that this bug is now fixed. The fix will be included in the next official release of Telerik Components for ASP.NET MVC. I have update your telerik point.
Back to Top
[ ASP.NET MVC Chart Features | Documentation | Demos | Telerik TV ]
UI controls for ASP.NET AJAX, MVC, WPF,Silverlight, Windows 8 and Windows Phone
Cross-platform Mobile Development Toolwith cloud-based architecture
Everything you need to build sites andmobile apps with JavaScript and HTML5
One easy tool for Functional, Performance,Load and Mobile software testing
Everything for your online business - contentmanagement, ecommerce, emarketing
Simple and intuitive project managementand collaboration software