Presenting 2 different Lines Series with different scales?

2 posts, 0 answers
  1. Jay Sanderson
    Jay Sanderson avatar
    9 posts
    Member since:
    May 2010

    Posted 03 May 2011 Link to this post

    Hello All,

    I'm looking to use the chart control to display Closing share price over Volume Traded.

    I followed the example, but had no luck.

    I got it working with the code below.

    If I add CollectionIndex it fails ??

     

     

     

    <telerikChart:RadChart ItemsSource="{Binding StockActivitiesReverse}" Grid.Row="0" Background="Transparent">

     

     

     

     

    <telerikChart:RadChart.SeriesMappings>

     

     

     

     

    <telerik:SeriesMapping>

     

     

     

     

    <telerik:SeriesMapping.SeriesDefinition>

     

     

     

     

    <telerik:LineSeriesDefinition ShowItemLabels="False" ShowPointMarks="False">

     

     

     

     

    </telerik:LineSeriesDefinition>

     

     

     

     

    </telerik:SeriesMapping.SeriesDefinition>

     

     

     

     

     

    <telerik:SeriesMapping.ItemMappings>

     

     

     

     

    <telerik:ItemMapping FieldName="Close" DataPointMember="YValue" />

     

     

     

     

    </telerik:SeriesMapping.ItemMappings>

     

     

     

     

     

    </telerik:SeriesMapping>

     

     

     

     

    <telerik:SeriesMapping>

     

     

     

     

    <telerik:SeriesMapping.SeriesDefinition>

     

     

     

     

    <telerik:BarSeriesDefinition AxisName="AxisY_Volume" />

     

     

     

     

    </telerik:SeriesMapping.SeriesDefinition>

     

     

     

     

    <telerik:SeriesMapping.ItemMappings>

     

     

     

     

    <telerik:ItemMapping FieldName="Volume" DataPointMember="YValue" />

     

     

     

     

    </telerik:SeriesMapping.ItemMappings>

     

     

     

     

    </telerik:SeriesMapping>

     

     

     

     

    </telerikChart:RadChart.SeriesMappings>

     

     

     

     

    <telerikChart:RadChart.DefaultView>

     

     

     

     

    <telerik:ChartDefaultView>

     

     

     

     

    <telerik:ChartDefaultView.ChartLegend>

     

     

     

     

    <telerik:ChartLegend Visibility="Collapsed"/>

     

     

     

     

    </telerik:ChartDefaultView.ChartLegend>

     

     

     

     

    <telerik:ChartDefaultView.ChartArea>

     

     

     

     

    <telerik:ChartArea EnableAnimations="False">

     

     

     

     

    <telerik:ChartArea.AxisX>

     

     

     

     

    <telerik:AxisX AutoRange="True" AxisLabelsVisibility="Collapsed" MajorTicksVisibility="Collapsed" MinorGridLinesVisibility="Collapsed" MajorGridLinesVisibility="Collapsed" />

     

     

     

     

    </telerik:ChartArea.AxisX>

     

     

     

     

    <telerik:ChartArea.AxisY>

     

     

     

     

    <telerik:AxisY />

     

     

     

     

    </telerik:ChartArea.AxisY>

     

     

     

     

    <telerik:ChartArea.AdditionalYAxes>

     

     

     

     

    <telerik:AxisY AxisName="AxisY_Volume" />

     

     

     

     

    </telerik:ChartArea.AdditionalYAxes>

     

     

     

     

    </telerik:ChartArea>

     

     

     

     

    </telerik:ChartDefaultView.ChartArea>

     

     

     

     

    </telerik:ChartDefaultView>

     

     

     

     

    </telerikChart:RadChart.DefaultView>

     

     

     

     

    </telerikChart:RadChart>

     

  2. Vladimir Milev
    Admin
    Vladimir Milev avatar
    1061 posts

    Posted 06 May 2011 Link to this post

    Hello Jay Sanderson,

    I am not exactly sure what problem you are having. Can you please elaborate a bit about your scenario and let us know some details so that we can help you better.

    Kind regards,
    Vladimir Milev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top