Page 1 of 1

Chart resizing on visible series

Posted: Fri Oct 02, 2009 12:34 am
by 15051059
Hi,

I am wondering if it is possible to resize the margins based on visible series. Suppose I have 2 series: One with Y-value of 24 and the other with Y-value of 1000, and I only want the series with Y-value of 24 to be visible; so the chart's axes will be around the value 24, and not 24 - 1000.


Thanks,
Raymond

Re: Chart resizing on visible series

Posted: Fri Oct 02, 2009 9:55 am
by yeray
Hi Raymond,

If you have a whole series that you don't want to be shown, you can simply deactivate it.
If you want to show both series but defining your axis minimum and maximum, you can use the axis function SetMinMax()

Re: Chart resizing on visible series

Posted: Fri Oct 02, 2009 5:36 pm
by 15051059
The SetMinMax work for line series. However, for bar series, whenever I do SetMinMax, the bar's width becomes a thin line. Is there another way to do it with bar series?

Re: Chart resizing on visible series

Posted: Mon Oct 05, 2009 7:15 am
by yeray
Hi Raymond,

What exact version are you using? Are you using the latest downloadable at customers area?

Re: Chart resizing on visible series

Posted: Mon Oct 05, 2009 5:00 pm
by 15051059
I am using version 8.0.0.6.11825. I believe that is the latest version.

To duplicate:
- Start with empty chart
- Add bar series with just 1 value
- Set minimum to -1 and maximum to 1
At this point, the bar should become a thin vertical line

Re: Chart resizing on visible series

Posted: Tue Oct 06, 2009 9:55 am
by yeray
Hi Raymond,

Yes, I can see now the problem. I understood that you were setting the left axis.
I've found that there is a similar problem in the wish list so I've updated its description to include this specific issue (TV52014436).