GithubHelp home page GithubHelp logo

Zoom reset button about achartengine HOT 5 CLOSED

cleanness avatar cleanness commented on June 19, 2024
Zoom reset button

from achartengine.

Comments (5)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 19, 2024
Fixed in svn rev. r100.

Original comment by [email protected] on 26 Nov 2010 at 4:37

  • Changed state: Fixed

from achartengine.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 19, 2024
Well, it is working, but when I press the Zoom to fit button, the graph shifts 
up. When I have values starting with 0, the 0 values are precisely on the 
bottom of the graph. After zoom fit, it is a little bit higher.. See also the 
test code from http://code.google.com/p/achartengine/issues/detail?id=25#c2

Original comment by [email protected] on 29 Nov 2010 at 9:00

from achartengine.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 19, 2024
In addition, It automatically detects the values, which is okay, but when you 
only set the Zoom Enabled on the X-axis, the Y-axis should stay the same. Now 
they are also resizing..

Original comment by [email protected] on 30 Nov 2010 at 12:11

from achartengine.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 19, 2024
Fixed in svn rev. r101.

Original comment by [email protected] on 3 Dec 2010 at 11:28

from achartengine.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 19, 2024
I hope I'm not irritating you, but I was wondering about something.
In this issue, the function is described as a Zoom reset button, the 
implementation speaks of an ZoomFit option. But the function actually is a 
ZoomReset (If I see this right).
I have the following situation:
- I define the X and Y-axis Min/max to display the area I want to display. 
(i.e. last 30 days)
- I define the Pan limits to the start/end of the data (for i.e. the whole year)
- I enable only X-axis panning/zooming.

Now you see the last 30 days first, but are able to scroll to the left to see 
older data. This works fine. Now to the current issue, there are 3 
possibilities for the reset/fit button:
1. When nog x/y-axis set, zoom to display everything (which is the same as the 
initial screen)
2. Reset the zoom, to the initial stage, according to X/Y-axis min/max (if set)
3. Fit the zoom, to display all the data, including everything hidden in the 
beginning.

Option 1/2 is implemented is r101, but I'm wondering if option 3 isn't a more 
preferred option, if panning is enabled. For my particular situation, it would 
be, so I've added  initialRange = panLimits; to XYMultipleSeriesRenderer.java 
after line 565 (setPanLimits(double[] panLimits) function), so the initial 
range is overwritten when the setPanLimits is called after the setX/Y min/max 
function..

I was wondering what your opinion about this was.


Original comment by [email protected] on 3 Dec 2010 at 1:52

from achartengine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.