Chart resizing on visible series

TeeChart for ActiveX, COM and ASP
Post Reply
Raymond
Newbie
Newbie
Posts: 27
Joined: Tue Dec 02, 2008 12:00 am

Chart resizing on visible series

Post by Raymond » Fri Oct 02, 2009 12:34 am

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

Yeray
Site Admin
Site Admin
Posts: 9602
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Chart resizing on visible series

Post by Yeray » Fri Oct 02, 2009 9:55 am

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()
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Raymond
Newbie
Newbie
Posts: 27
Joined: Tue Dec 02, 2008 12:00 am

Re: Chart resizing on visible series

Post by Raymond » Fri Oct 02, 2009 5:36 pm

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?

Yeray
Site Admin
Site Admin
Posts: 9602
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Chart resizing on visible series

Post by Yeray » Mon Oct 05, 2009 7:15 am

Hi Raymond,

What exact version are you using? Are you using the latest downloadable at customers area?
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Raymond
Newbie
Newbie
Posts: 27
Joined: Tue Dec 02, 2008 12:00 am

Re: Chart resizing on visible series

Post by Raymond » Mon Oct 05, 2009 5:00 pm

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

Yeray
Site Admin
Site Admin
Posts: 9602
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Chart resizing on visible series

Post by Yeray » Tue Oct 06, 2009 9:55 am

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).
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply