Hi Pavithra,
Thanks for the post.
I had already removed all padding and margins I could think of but was still getting space between the Chart and ChartArea. In the example below (also attached) I add a simple chart to a window and set all margins and padding to zero but as you can see some light blue still outlines the chart so I would assume it's margin on the ChartArea or Padding on the Chart but both are set to 0....
I know this shouldn't be a big problem normally but if all we want is the graph and need to rely an it's with for overlaying something proportional on top, then spacing becomes a problem...
In the end, I was able to achieve what I wanted by making the margin negative and removing ElementMargin from ChartDockPanel but I doubt that's the right way to do it...
An alternative I'm considering is to put margins on the overlay but I'm not sure if the chart exposes the size of the spacing between the edge of the chart and start of the series...
Any help would be appreciated.
/SFL
== XAML below ==
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:sync="http://schemas.syncfusion.com/wpf"
Title="Window1" Height="300" Width="300"
Margin="0"
Padding="0"
Background="Yellow"
>
Background="Orange"
>
VerticalAlignment="Stretch"
VerticalContentAlignment="Stretch"
HorizontalAlignment="Stretch"
HorizontalContentAlignment="Stretch"
BorderThickness="0"
Margin="0"
Padding="0"
Background="LightBlue"
sync:ChartType.Spacing ="0"
>
CornerRadius="0"
BorderThickness="0"
BorderBrush="Transparent"
Margin="0"
Padding="0"
Background="Wheat"
>
Window1.xaml_1afc10d8.zip