This is a migrated thread and some comments may be shown as answers.

ScatterLine Chart - Bind multiple IEnumerable data to generate multiple scatter line series

1 Answer 104 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Kannan
Top achievements
Rank 1
Kannan asked on 09 May 2016, 07:31 PM

http://demos.telerik.com/aspnet-mvc/scatter-charts/scatter-line

In the below code, they are binding multiple data sets to generate multiple scatter line series.

In a similar fashion how would I be able to generate multiple scatter line series by binding data in MVC

<p>.Series(series => {
            series.ScatterLine(new int[][] {
                    new [] {10, 10}, new [] {15, 20}, new [] {20, 25},
                    new [] {32, 40}, new [] {43, 50}, new [] {55, 60},
                    new [] {60, 70}, new [] {70, 80}, new [] {90, 100}
                })
                .Name("0.8C");
             
            series.ScatterLine(new int[][] {
                    new [] {10, 40}, new [] {17, 50}, new [] {18, 70},
                    new [] {35, 90}, new [] {47, 95}, new [] {60, 100}
                })
                .Name("1.6C");
 
            series.ScatterLine(new int[][] {
                    new [] {10, 70}, new [] {13, 90}, new [] {25, 100}
                })
                .Name("3.1C");
        })</p>

1 Answer, 1 is accepted

Sort by
0
Stamo Gochev
Telerik team
answered on 11 May 2016, 08:01 AM
Hello Kannan,

I have already answered your support ticket regarding the same question, so it will be very helpful if we can continue the conversation in the original ticket only. This will allow our support team to handle the cases more efficiently and thus no duplicates will be created.

I am pasting my answer here for reference purposes only and I expect your responses in the original support ticket:

Hello Kannan,

The scatter line series (and the chart in general) can be bound to only one data source. You can have a look at the following demos, which demonstrate how this can be achieved:

http://demos.telerik.com/aspnet-mvc/scatter-charts/local-data-binding

http://demos.telerik.com/aspnet-mvc/scatter-charts/remote-data-binding

Let me know if you have any additional questions regarding the matter.


Regards,
Stamo Gochev
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Chart
Asked by
Kannan
Top achievements
Rank 1
Answers by
Stamo Gochev
Telerik team
Share this question
or