D3 InjectedPlotter - Unable to Zoom

Jan 10, 2013 at 9:59 AM

I am having a Graph with x co-ordinates and two Y axis ( Y and Y1). Depending upon x axis I am plotting the graph for both Y axis.

To be very clear Y and Y1 will be having two different graph's Y will be show in meter and Y1 will in Kilo meter.
I am able to plot the graph,

Problem I am facing while zoom in and out, Y co-ordinates is dynamically zooming, it will change its size depending upon x axis.

but Y1 co-ordinates was static, it is not zooming according to X axis

Please do me the favor.

Jan 23, 2013 at 6:51 AM


Injected plotters will have both x axis and y axis,

First step define

do someting like this

get xmin and xmax from zoomed injected plotter(injectedPlotter1) and chage the viewport of other injected plotter(injectedPlotter2) with zoomed injected plotter.