holgerbrandl / kravis

A {K}otlin g{ra}mmar for data {vis}ualization
BSD 2-Clause "Simplified" License
183 stars 12 forks source link

How to plot a chart with Zoom/Pan capability? #24

Closed wangtieqiao closed 3 years ago

wangtieqiao commented 4 years ago

I got the chart rendered in a Swing Popup window, but not sure how to be able pan/zoom the chart, any example?

Thanks

holgerbrandl commented 3 years ago

kravis does not allow to zoom or pan because plots are rendered as static images. However, you can set the pan/zoom parameters with GGPlot.coordCartesian.