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
380
LineChart Series Margins
posted

Hello,

I am using the LineChart from the Silverlight Controls version 10.2.20102.1029.  The series lines will never start at the PrimaryYAxis (left side of chart) and will never go to the end of the right side of the chart.  I have attached an image.

This is not normal for a line chart.  Is there a way to fix this?

Thanks, Mark

Parents
No Data
Reply
  • 26458
    Verified Answer
    Offline posted

    This was how our WPF XamChart was initially implemented, so this became the default behavior for XamWebChart as well. The only work around that I can think of is to set a manual range on your x axis, like this:

    Axis axis = chart.Axes[0];
    int numPoints = chart.Series[0].DataPoints.Count;
    axis.Minimum = 1;
    axis.Maximum = numPoints;
    axis.Unit = 1;
    axis.AutoRange = false;

Children
No Data