This question is locked. New answers and comments are not allowed.
Please see the attached image. Bubble chart to the left and line to the right. The bubble chart has an offset from the y-axis to the zero value on the x-axis and it looks out of place. Here's the XAML:
Code behind:
Also is there a way to only show axis title and hide all values and ticklines (major and minor)??? I can't figure it out.
<telerik:RadChart x:Name="Bubble" Width="160" Height="160" VerticalAlignment="Center" Margin="20,0,0,0" Visibility="Collapsed"> |
<telerik:RadChart.SeriesMappings> |
<telerik:SeriesMapping> |
<telerik:SeriesMapping.SeriesDefinition> |
<telerik:LineSeriesDefinition/> |
</telerik:SeriesMapping.SeriesDefinition> |
<telerik:SeriesMapping.ItemMappings> |
<telerik:ItemMapping DataPointMember="XValue" FieldName="value_0.value"/> |
<telerik:ItemMapping DataPointMember="YValue" FieldName="value_1.value"/> |
</telerik:SeriesMapping.ItemMappings> |
</telerik:SeriesMapping> |
</telerik:RadChart.SeriesMappings> |
</telerik:RadChart> |
Code behind:
Bubble.DefaultView.ChartArea.AxisX.AutoRange = False |
Bubble.DefaultView.ChartArea.AxisX.MaxValue = 6 |
Bubble.DefaultView.ChartArea.AxisX.MinValue = 0 |
Bubble.DefaultView.ChartArea.AxisX.AddRange(0, 6, 1) |
Bubble.DefaultView.ChartArea.AxisX.MajorGridLinesVisibility = Visibility.Visible |
Bubble.DefaultView.ChartArea.AxisY.AutoRange = False |
Bubble.DefaultView.ChartArea.AxisY.MaxValue = 6 |
Bubble.DefaultView.ChartArea.AxisY.MinValue = 0 |
Bubble.DefaultView.ChartArea.AxisY.AddRange(0, 6, 1) |
Bubble.DefaultView.ChartArea.AxisY.StripLinesVisibility = Visibility.Collapsed |
Bubble.DefaultView.ChartArea.AxisY.MinorTicksVisibility = Visibility.Collapsed |
Bubble.DefaultView.ChartArea.AxisY.MajorGridLinesVisibility = Visibility.Visible |
Bubble.DefaultView.ChartArea.PlotAreaStyle = LayoutRoot.Resources("ClipPanelStyle") |
Bubble.DefaultView.ChartArea.Legend.Visibility = Visibility.Collapsed |
Bubble.DefaultView.ChartArea.EnableAnimations = False |
Bubble.DefaultView.ChartArea.EnableStripLinesAnimation = False |
Bubble.Background = Nothing |
Bubble.ItemsSource = ds_chart |
Also is there a way to only show axis title and hide all values and ticklines (major and minor)??? I can't figure it out.