ASP.NET MVC Controls | ComponentOne
Working with Controls / FlexChart / Work with FlexChart / Mixed Charts
In This Topic
    Mixed Charts
    In This Topic

    You can add multiple series to your charts and set a different ChartType for all the series. Such charts are helpful in analyzing complex chart data on a single canvas. The same data can be used with different visualizations or related data can be displayed together to convey trends.

    The following image shows a FlexChart with multiple series.

    Showing multple charts in FlexChart

    The following code example demonstrates how to add multiple chart series with different ChartTypes to the FlexChart.

    Copy Code
    @*Initialize FlexChart*@
    .Bind("Date", Model)
    //Add Series to the chart
    .Series(sers =>
          //Add the first series
         .Name("Sales in USA")
          //Add the second series
         .Name("Sales in Japan")
          //Add the third series
         .Name("Sales in China")