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

2 posts, 0 answers
  1. Kannan
    Kannan avatar
    1 posts
    Member since:
    Jan 2013

    Posted 09 May Link to this post

    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>

  2. Stamo Gochev
    Admin
    Stamo Gochev avatar
    157 posts

    Posted 11 May Link to this post

    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
  3. UI for ASP.NET MVC is VS 2017 Ready
Back to Top