Hi,
I have multiple data series bound to igDataChart as follows:
@(Html.Infragistics().DataChart(Model.Data) .Axes((axes) => { axes.NumericX("xAxis").Stroke("Black").StrokeThickness(4).MajorStroke("Whitesmoke"); axes.NumericY("yAxis").Stroke("Black").StrokeThickness(4).MajorStroke("Whitesmoke"); }) .Series(series => { series.ScatterLine("scatterSeries1", Model.DataSeries1) .XAxis("xAxis").YAxis("yAxis").MarkerBrush("Black") .XMemberPath(data => data.SpectralPoint) .YMemberPath(data => data.Wavelength) .ShowTooltip(true) .Thickness(5) .TooltipTemplate("tooltipTemplate"); }) .Series(series => { series.ScatterLine("scatterSeries2", Model.DataSeries2) .XAxis("xAxis").YAxis("yAxis").MarkerBrush("Black") .XMemberPath(data => data.SpectralPoint) .YMemberPath(data => data.Wavelength) .ShowTooltip(true) .Thickness(5) .TooltipTemplate("tooltipTemplate"); }) .Series(series => { series.ScatterLine("scatterSeries3", Model.DataSeries3) .XAxis("xAxis").YAxis("yAxis").MarkerBrush("Black") .XMemberPath(data => data.SpectralPoint) .YMemberPath(data => data.Wavelength) .ShowTooltip(true) .Thickness(5) .TooltipTemplate("tooltipTemplate"); }) .DataBind() .Render() )
Is there any way I can use loop to assign data series dynamically instead of assigning them one by one as I have shown above.
Nirav,
Rather than using the MVC Helper, create the igDataChart in JavaScript like what is done in most of the chart samples online:
http://www.igniteui.com/data-chart/overview
How to create igDataChart with asp.net c# not asp.net mvc
Iam running throgh same issues, i.e Whenever new json object is added to the dataSource array then am caling igDataChart() to plot the graphBut the latest value is not rendering on the graphI read in yur reply about setting add/remove to true/falseHow it works in case of igDataChartIf you have any reference code or API please share
Hi again Graham,
I am now running towards version 13.1.20131.2143 but I'm still experiencing the same problem with the code i posted.
Any other things I must do to get it working?
Martin
Hi, if you go to the download section of our site, for your account, I believe you should see a link to the SR download there. If using the CDN, there is a "latest" directory, that you can change to that should point you at the latest versions.