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
590
Problems with multiple series
posted

I am working on a prototype that involves charting.

I have a lseries for a line chart that is displayed correctly.

I am trying to have another series for different set of data points to appear as markers on the same x and Y..

here is what I am using:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

<

 

 

igCA:XamChart x:Name

="ctlChart">

 

 

 

<igCA:XamChart.Axes

>

 

 

 

<igCA:Axis AxisType="PrimaryX" AutoRange="False" Minimum="1" Maximum="20" Unit

="1"/>

 

 

 

<igCA:Axis AxisType="PrimaryY" AutoRange="False" Minimum="12" Maximum="36" Unit

="1"/>

 

 

 

</igCA:XamChart.Axes

>

 

 

 

 

<igCA:XamChart.Series

>

 

 

 

<igCA:Series ChartType="Line" Fill="#FFD21717" Label

="3rd">

 

 

 

<igCA:Series.DataPoints

>

 

 

 

<igCA:DataPoint Value="14.52095" Label

="2"/>

 

 

 

<igCA:DataPoint Value="14.12223" Label

="3"/>

 

 

 

<igCA:DataPoint Value="13.83877" Label

="4"/>

 

 

 

<igCA:DataPoint Value="13.656" Label

="5"/>

 

 

 

<igCA:DataPoint Value="13.55435" Label

="6"/>

 

 

 

<igCA:DataPoint Value="13.52874" Label

="7"/>

 

 

 

<igCA:DataPoint Value="13.58604" Label

="8"/>

 

 

 

<igCA:DataPoint Value="13.73182" Label

="9"/>

 

 

 

<igCA:DataPoint Value="13.96673" Label

="10"/>

 

 

 

<igCA:DataPoint Value="14.28678" Label

="11"/>

 

 

 

<igCA:DataPoint Value="14.68398" Label

="12"/>

 

 

 

<igCA:DataPoint Value="15.14683" Label

="13"/>

 

 

 

<igCA:DataPoint Value="15.93155" Label

="14"/>

 

 

 

<igCA:DataPoint Value="16.48892" Label

="15"/>

 

 

 

<igCA:DataPoint Value="17.05015" Label

="16"/>

 

 

 

<igCA:DataPoint Value="17.59356" Label

="17"/>

 

 

 

<igCA:DataPoint Value="18.09626" Label

="18"/>

 

 

 

<igCA:DataPoint Value="18.53287" Label

="19"/>

 

 

 

<igCA:DataPoint Value="18.80010" Label

="20"/>

 

 

 

</igCA:Series.DataPoints

>

 

 

 

 

</igCA:Series

>

 

 

 

<igCA:Series ChartType

="Area">

 

 

 

<igCA:Series.Marker

>

 

 

 

<igCA:Marker

 

 

MarkerSize

="2"

 

 

Type

="Star5"

 

 

Fill

="Red" />

 

 

 

</igCA:Series.Marker

>

 

 

 

<igCA:Series.DataPoints

>

 

 

 

<igCA:DataPoint Label="6" Value

="18">

 

 

 

<igCA:DataPoint.ChartParameters

>

 

 

 

<igCA:ChartParameter Type="ValueX"

/>

 

 

 

</igCA:DataPoint.ChartParameters

>

 

 

 

</igCA:DataPoint

>

 

 

 

</igCA:Series.DataPoints

>

 

 

 

</igCA:Series

>

 

 

 

</igCA:XamChart.Series

>

 

 

 

 

<igCA:XamChart.Caption

>

 

 

 

<igCA:Caption FontFamily="Arial" FontSize="40" FontStretch="Expanded" FontWeight="Bold" Text

="Boys Growth Chart" />

 

 

 

</igCA:XamChart.Caption

>

 

 

 

</igCA:XamChart

>

On my second series my datapoint is Label="6" Value

="18" and type is AxisX, but it is not respecting the axis label.

1. What is the right way to accomplish this?

2. How do I set the label for the xAxis going right and YAxis going up?

Thanks!

 

Parents
No Data
Reply
  • 28496
    Offline posted

    you are doing things the right way.  however, since the x-axis can only use the labels from one series, it uses the last series in the list.  since your AreaSeries contains only one DataPoint, there are no labels printed on the x-axis.

    for question number 2, this is the default behavior, so you don't have to do anything.  unless i misunderstand the question.

Children
No Data