Reputation: 1591
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
Reputation: 32391
You can set the visible range on the X axis:
renderer.setXAxisMin(44);
renderer.setXAxisMax(49);
Upvotes: 2