Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
225
Passing a Sorted List as a Series to be rendered in an IG Chart
posted

Hello:

I am trying to pass an ordered list of tuples (ordered by date), where item one is a date, and item two is two doubles - one represents volume and one represents rate.

I am trying to create a spline in the MVC ignitui framework. And my problem is that I am having trouble passing the data into the view.

HistICSPTEData = MarketRatesModel.GetHistICSPTE(m.hubPair.Origin.Name, m.hubPair.Destination.Name, m.eqpTyp, m.alpha, m.useOtrData, m.fuel);

                    TranscoreData = MarketRatesModel.GetTranscore(m.hubPair.Origin.Name, m.hubPair.Destination.Name, m.eqpTyp, m.alpha, m.useOtrData);

                    RatemateData = MarketRatesModel.GetRatemate(m.hubPair.Origin.Name, m.hubPair.Destination.Name, m.eqpTyp, m.alpha, m.useOtrData, m.fuel);

right now this code lives in the actionResult Index() but the action result return is return(m), but I cannot specify the above code as m.

 bigger picture, what I am trying to do is turn an mvc windows datavisualization chart into an infragistics chart. But at the same time I want to keep the user iteraction, i.e., I want the user to specifiy the paraemters in same way. All I want to change is the way the data is viewed.


if I can get HistICSPTEdata, TranscoreData, and RatemateData into the view and rendered in a spline series with infragistics, I'll be happy. But I am having trouble.



Basically what this does, is it passes a bunch of parameters into a function that runs a query in another class. The query returns an ordered list.

Visual studio returns that it is a Tuple<SortedList<DateTime, MarketRatesModel.RateWithVolume>, double>

Once the user specifies all of the information that gets passed into the methods that run the query, data is returned properly, but I have no idea how to pass that into the view.

I’ve done two MVC chart examples that Infragistics posted, but I am having trouble passing a sorted list of tuples where datetime return date and time and Rate with volume return, ‘rate’ and ‘volume.’

 

Thanks for the help

Michael Rosenberg

 

Thanks

Parents
  • 11095
    Offline posted

    Hello Michael,

    Thank you for contacting Infragistics!

    I am afraid that I don't understand your issue.
    Could you please share a sample project demonstrating it, it will be of help.
    Thanks in advance!

Reply Children