Page 1 of 1

Wpf chart zooming

Posted: Mon Jan 28, 2013 12:52 pm
by 15662757
How to zoom the chart with mouse right click in wpf?

Re: Wpf chart zooming

Posted: Mon Jan 28, 2013 4:29 pm
by 10050769
Hello asupriya,

Is not possible in this moment. There is a known bug for us with number [TW16015460]. We will try to fix it to upcoming versions of TeeChartWPF.

Thanks,

Re: Wpf chart zooming

Posted: Wed Jan 30, 2013 7:34 am
by 13051032
Amazing ... how can such a fundamental part of this library be having such a serious bug?

Anyways, if we need to implement it for WPF chart, how can we do it programatically? Please provide some sample code.

Thanks

Re: Wpf chart zooming

Posted: Wed Jan 30, 2013 2:33 pm
by 10050769
Hello asupriya,
Amazing ... how can such a fundamental part of this library be having such a serious bug?
I have increased the severity of bug number [TW16015460] because we will try to fix it to upcoming version of TeeChartWPF.
Anyways, if we need to implement it for WPF chart, how can we do it programatically? Please provide some sample code.
If you want use zoom with right button, you need do the same as you do in Winforms as do in next lines of code:

Code: Select all

 private void InitializeChart()
        {
            Steema.TeeChart.WPF.Styles.Bar bar1 = new Steema.TeeChart.WPF.Styles.Bar(tChart1.Chart);
            bar1.FillSampleValues();
            tChart1.Zoom.MouseButton = MouseButton.Right;
   }
Thanks,