Page 1 of 1

Problem with Ploting Barserie and LineSeries

Posted: Mon Feb 13, 2012 4:41 pm
by 16560701
Hi.

I am ploting a histogram using Barseries to see if the data is normal distributet. I also want to plot a Gause curve using LineSeries.

Despite that the data for both series are correctly calculated in the plot the LineSerie is not plotet correctly. I can see the same problem even if I use PointSeries (instead of Lineseries).

In attached picture (Histogram1.jpg) the Pointseries should start at 13 and goes to 16.5. But as you can see the points are ploted in the range of 13.8 to 14.08. I have activated the labels showing the X-Value and you can clearly see that the point are not plotet at the correct x position. If I look at the data in the Edit Chart window, I can see that values are correct.
Histogram1.jpg
Histogram1.jpg (90.11 KiB) Viewed 5242 times
If I deactivate the BarSeries (in the Edit Chart window) then the PointSerie looks correct (see Histogram2.jpg).
Histogram2.jpg
Histogram2.jpg (90.77 KiB) Viewed 5242 times
Do you have any idea how I can solve this problem?

BR
emwamin

Re: Problem with Ploting Barserie and LineSeries

Posted: Tue Feb 14, 2012 10:14 am
by yeray
Hi,

It will probably something related to how the values are being added to the chart. Are you using the AddXY for both the Bar and the Point series? Note that adding the values without "X", (Add, AddY functions), the XValues will actually be 0, 1, 2,...
If you still have problems with it, please try to arrange a simple example project we can run as-is to reproduce the problem here.

Re: Problem with Ploting Barserie and LineSeries

Posted: Wed Feb 15, 2012 10:59 am
by 16560701
Hi.

You were right. I changed the method to AddXY() and it works now.

Many Thanks
emwamin