I have a UltraChart displaying both a ScatterChart and ColumnChart in it.
Both charts display a 24hr period for the xaxis, however the scatter chart is slightly shorter on the x axis.
I assume this is because of the column borders on the columnchart make it appear longer.
Is there any way I can either set the border value to 0 or make the border color transperant on the columnchart?
Best Regards
Can you post a picture and/or a sample? I'm having a difficult time reproducing this. I'm assuming this is a composite chart with a column layer and a line layer. Chart layers don't have borders, so I'm not too sure what to look for here. Thanks.
Hi there, I've uploaded an image of it this time so you can see better.
I have a composite chart with a columnchart and scatterchart added to it.
As you can see, the x index looks ok at the start of the day (ie left hand side of the image), however as the scatterchart progresses it becomes slightly out of sync with the column chart.
By the end of the x axis, both charts are a couple of pixels out of sync.
Hope this explains my problem.
If not than I can send you a sample of my code.
Thanks
Kevin.
This happens because the x axis used for the columns and the x axis used for the scatter points have different scale. Column layers use a string x axis, where all points are equally spaced out and the axis maximum value is the last column index. Scatter layers use a numeric x axis, the scale of which doesn't depend on the number of points, but rather on point values. The max value of numeric axes is typically calculated to maintain a round interval. What you can do is set the manual range on your scatter x axis, like this:axis.RangeMin = 0; //or set it to one, depending on what you want the min value to beaxis.RangeMax = 23; //or whatever the max value isaxis.RangeType = RangeType.Custom;You should get something that looks like the attached picture.
Thanks for that,
Both axis now match perfectly.