Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
630
How to put the LineSeries forward the ColumnSeries
posted

Hello again,

i have a chart with both ColumnSeries and a LineSeries. The LineSeries is always behind the ColumnSeries. How can i put the Line in front of the Columns?

I tried to change the order of the chart.AddSeries() but nothing changed.

Thanks

Johann

Parents
  • 26458
    Verified Answer
    Offline posted

    Hi Johann,

    This sounds familiar, but I'm certain that it was fixed a while ago. The order the series are added to the chart determines the order they are rendered.
    What's the chart framework's build number?

    Can you try this code and see if you're still seeing the problem:

    using MonoTouch.ObjCRuntime;
    using Infragistics;

    NSNumber
    [] data = {
        new NSNumber (4),
        new NSNumber (0),
        new NSNumber (4)
    };
        
    _dsh = new IGCategorySeriesDataSourceHelper (data);

    _chartView = new IGChartView (this.View.Frame);

    IGSeries s1 = _chartView.AddSeries(new Class("IGColumnSeries"), "series", _dsh, "x", "y");

    IGSeries s2 = _chartView.AddSeries(new Class("IGLineSeries"), "series2", _dsh, "x", "y");
    s2.Thickness = 5;

    this.View.AddSubview (_chartView);

     

Reply Children
No Data