ASP.NET Core MVC Controls | ComponentOne
Working with Controls / FlexChart / Work with FlexChart / Multiple Axes
In This Topic
    Multiple Axes
    In This Topic

    FlexChart allows you to add secondary axes when you add multiple series to the chart. The scale of a secondary axis represents the values of its associated series. You can even change the ChartType of the associated series to easily identify the values plotted along the secondary axis.

    The image below shows how multiple Y axes appear on the FlexChart.

    The following code example demonstrates how to add multiple Y axes to the FlexChart. This example uses the sample created in the Mixed Charts section.

    HTML
    Copy Code
    <c1-flex-chart binding-x="Name" chart-type="ChartType.Column">
        <c1-items-source source-collection="Model"></c1-items-source>
    
        <c1-flex-chart-series binding="SalesInUSA" name="Sales in USA" chart-type="ChartType.Column" 
                             >
            <c1-flex-chart-axis c1-property="AxisX" format="dd-MMM"></c1-flex-chart-axis>
        </c1-flex-chart-series>
        <c1-flex-chart-series binding="SalesInJapan" name="Sales in Japan" chart-type="ChartType.Line">
    
        </c1-flex-chart-series>
    
    </c1-flex-chart>