Moving from C1Chart To FlexChart

Posted by: steven.evans on 13 July 2022, 12:50 pm EST

  • Posted 13 July 2022, 12:50 pm EST - Updated 3 October 2022, 10:22 pm EST

    Hi,

    I am looking to move from using C1Chart to FlexChart. Currently we have a 2d chart, data points can be joined with lines or not and marked with a symbol or not. Additionally we allow the use of 2 y-axis Y1 and Y2.

    using FlexChart

    What chart type should I use?

    How can I have 2 Axies?

  • Posted 14 July 2022, 5:01 am EST

    Hi Steven,

    You can set ChatType for each series accordingly and you need to set AxisY for both Series to achieve your requirement as:

    
                var series1 = new Series();
                series1.Name = series1.Binding = "Sales";            
                series1.ChartType = C1.Chart.ChartType.SplineSymbols;
                series1.AxisY = new Axis() { Position = C1.Chart.Position.Left, Title = "Sales", AxisLine = true,Min=0 };
                series1.SymbolMarker = C1.Chart.SymbolMarker.DiagCross;
                series1.Style.StrokeWidth = 1;
                series1.SymbolStyle.StrokeWidth = 3;
                flexChart.Series.Add(series1);
    
                var series2 = new Series();
                series2.Name = series2.Binding = "Damage";
                series2.ChartType = C1.Chart.ChartType.Spline;
                series2.AxisY = new Axis() { Position = C1.Chart.Position.Right, Title="Damage", Min = 0,};
                flexChart.Series.Add(series2);
    
    

    Please refer the attached sample for the same:

    FlexchartWinDemo.zip

    Best Regards,

    Nitin

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels