Pre loader

Tag: FlipCoordinates

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

1 vote


I would like to implement a simple FastColumnRenderableSeries with an HorizontalLineAnnotation. But I would like it to be sideways.

Here is my current code:

        g = new FastColumnRenderableSeries();
          colums = new UniformXyDataSeries<double>();>          
          using (m_sciChartSurface.SuspendUpdates())
          g.DataSeries = colums;
          m_xAxis = new NumericAxis();
          m_yAxis = new NumericAxis();
          m_sciChartSurface.XAxis = m_xAxis;
          m_sciChartSurface.YAxis = m_yAxis;
          m_xAxis.Visibility = System.Windows.Visibility.Hidden;
          m_yAxis.AutoRange = AutoRange.Never;
          m_yAxis.VisibleRange = new DoubleRange(-3, 2);
          HorizontalLineAnnotation hla = new HorizontalLineAnnotation();
          hla.Y1 = 1;           
          hla.StrokeThickness = 5;
          hla.Stroke = Brushes.Red;  
              m_xAxis.AxisAlignment = AxisAlignment.Left;
              m_xAxis.FlipCoordinates = true;
              m_yAxis.AxisAlignment = AxisAlignment.Top;
              m_yAxis.FlipCoordinates = true;

However, the HorizontalLineAnnotation behaves strangely.

Anny suggestions?

Thank you.

Showing 1 result