Hello,
We have recently migrated our application from TeeChart .Net 3.x to TeeChart for .Net Pro.
However now it seems that zooming is not working in some charts. In the old version zooming worked without problems. However, if I now open the Chart editor, Tab General I see that zoom is not "Allowed". I can activate it manually:
However zooming is still not possible.
When I reopen the Chart Editor, I see that the "Allow"-Flag was reset.
What can I do (either manually or programmatically), to allow zooming again?
Best regards
Wallenstein
Zoom out is not working on certain charts
-
- Newbie
- Posts: 5
- Joined: Wed Jan 17, 2018 12:00 am
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: Zoom out is not working on certain charts
Hello!
The Allow property still works programmatically, although it has been deprecated. You can use the Direction property to enable or disable zooming for a particular direction, e.g.Wallenstein wrote: What can I do (either manually or programmatically), to allow zooming again?
Code: Select all
public Form1()
{
InitializeComponent();
InitializeChart();
}
private void InitializeChart()
{
tChart1.Series.Add(typeof(Line)).FillSampleValues();
}
private void button1_Click(object sender, EventArgs e)
{
//tChart1.Zoom.Allow = !tChart1.Zoom.Allow; <-deprecated
tChart1.Zoom.Direction = tChart1.Zoom.Direction == ZoomDirections.Both ? ZoomDirections.None : ZoomDirections.Both;
}
Best Regards,
Christopher Ireland / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |