I am fairly new to mvc and ignite, and I am trying to implement a stacked column chart in my mvc ingite UI project.
all of the samples of a stacked chart that I have found use a javascript function to build the chart, but I would like to do it directly in the cshtml code.
the functions I have seen all use series.type to set the type to stacked, but I have been unable to find an equivalent variable outside of the javascript
here is my code
@(Html.Infragistics().DataChart(Model.orders.AsQueryable()).ID("test").Height("300px").Axes(a => { a.CategoryX("Label").Label(cl => cl.dayName); a.NumericY("Amount").MinimumValue(0).MaximumValue(500000); }).Series(s => { s.Column("Delivery").XAxis("Label").YAxis("Amount").ValueMemberPath(vv => vv.pickupAmount); s.Column("Amounts").XAxis("Label").YAxis("Amount").ValueMemberPath(cc => cc.deliveryAmount); }).DataBind().Render())
Thanks in advance!
Hi,
Did you upgrade from a previous version or install afresh? Stacked series are new in 13.1. When building the series collection, you should see methods on the builder that start with Stacked* for building the stacked series from the MVC wrapper.
-Graham
Hi Donald Piccirillo,
Thank you for your patience.
I'm attaching a MVC3 project with sample which conatins test data and renders stacked chart
In order to run the sample you need to add Infragistics.Web.Mvc.dll into the bin folder of the project, as well as into the Index.cshtml the reference to the igLoader and the css and js paths inside the editors shoudl be set according to your working enviroment
Thanks,
Todor Paskalev
Infragistics
Hi Donald Piccirlio,
If you have any further issues, please contact us.
Todor Paskalev,
Infragistics.