McLovin
McLovin

Reputation: 1591

Android - Using AChartEngine, is it possible to zoom in to a specific point upon displaying the graph?

I have a bar graph with 100+ bars and want to zoom in to a specific range upon displaying the graph. For example, when the graph is displayed on the screen I want only the bars 44-49 to be showing. It is important that the users will be able to zoom out to see all 100+ bars as well.

GraphicalView.zoomIn() would work if it allowed me to specify a point to zoom in to.

Thanks!

Upvotes: 1

Views: 978

Answers (1)

Dan D.
Dan D.

Reputation: 32391

You can set the visible range on the X axis:

renderer.setXAxisMin(44);
renderer.setXAxisMax(49);

Upvotes: 2

Related Questions