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
440
LineChart and ColumnChart data synchronization
posted

Hi,

I created a composite chart which has LineChart and ColumnChart. The X-Axis is a String field.

The line graph data point is not always displaying at the start of the column chart. Is there any way i can make the line graph datapoint display at the starting of the column bar for each series.

See the graph in attached file.

Thanks in Advance.

 

 

 

Parents
No Data
Reply
  • 26458
    Offline posted

    This happens because line charts use a different type of x axis and span the entire width of the chart layer.  You can set the axis margin to make the line align better with the column chart. The margin values will depend on how much data you have, so it's a bit of a trial and error approach.

    LineXAxis.Margin.Far.MarginType = LocationType.Percentage;
    LineXAxis.Margin.Near.MarginType = LocationType.Percentage;
    LineXAxis.Margin.Far.Value=5;
    LineXAxis.Margin.Near.Value=5;

Children