C1 Community
ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Does ComponentOne have Strippers???

rated by 0 users
This post has 1 Reply | 2 Followers

Not Ranked
Posts 5
dhaessel1 Posted: Thu, Apr 9 2009 1:07 PM

In Syncfusion, they define something called strippers which are lines of interest.  You specify one or more X Values and it will draw a line at that position and allow annotations on the line.

 Lets say you are plotting A vs. B and you want to draw a line at specified points on a given axis.  Lets say the rating of A is 100 (rating being defined as the maximum value it can be operated at safely) and you want a line drawn at A so you can see if any points are operating outside of the maximum rating.

 So at 100, I want to draw a line and put annotation like "Maximum Rating" and draw accross the chart.

 How does one do this in ComponentOne?

Top 10 Contributor
Posts 1,005
C1_AlexT replied on Fri, Apr 10 2009 3:29 AM

Hello,

I suppose you can do that using auxiliary series. e.g.

<c1chart:C1Chart Name="c1Chart1" ChartType="Line">
  <c1chart:C1Chart.Data>
    <c1chart:ChartData>
      <c1chart:XYDataSeries XValues="1 2 3 4 5" Values="20 88 105 90 25" />

      <!-- Line -->
      <c1chart:XYDataSeries XValues="1 5" Values="100 100"
        ConnectionStroke="Red" ConnectionStrokeThickness="3" />

      <!-- Label at the center  of line -->
      <c1chart:XYDataSeries XValues="3" Values="100" >
        <c1chart:XYDataSeries.PointLabelTemplate>
          <DataTemplate>
            <TextBlock Text="Maximum" c1chart:PlotElement.LabelAlignment="TopCenter" />
          </DataTemplate>
        </c1chart:XYDataSeries.PointLabelTemplate>
      </c1chart:XYDataSeries>

    </c1chart:ChartData>
  </c1chart:C1Chart.Data>
</c1chart:C1Chart>

--
Best regards,
Alex

Page 1 of 1 (2 items) | RSS
Contact ComponentOne: 1.800.858.2739 ©1987-2010 ComponentOne LLC All Rights Reserved.