Page 1 of 1

data displayed in chart

Posted: Wed Mar 12, 2014 4:13 am
by 17365127
Hi, I'm using Xamarin to build an android project.
I have a candle chart with 1000 candles, and I set the scale to 60 by following code.

Code: Select all

mainChart.Axes.Bottom.SetMinMax (candle1.Count - 60, candle1.Count);

The chart ZoomStyles is set to InChart.
When I scroll the chart, I can't scroll to the first candle, but only about the last 120 candles can be scrolled.
How can I scroll to the previous candles?

Please help!

Re: data displayed in chart

Posted: Wed Mar 12, 2014 10:22 am
by narcis
Hi benlu,

I'm afraid you are not going to be able to use SetMinMax with ZoomStyles.InChart as internally it changes SetMinMax to accommodate the chart for zooming and scrolling. It should work with ZoomStyles.FullChart. If you attach a simple example project we can run "as-is" to reproduce your problem here we will have a look to see if the behaviour can be improved.

Thanks in advance.