I understand that's not so elegant, but you could try a workaround like this one:
1. DO NOT enable zooming on the graph
2. Instead, write your own routine to zoom both graphs.
Here you'll find some sample code to zoom the x-axis of a graph; it's easily expandable for panning, for the y-axis and for the other graph:
int CVICALLBACK zoom (int panel, int control, int event,
void *callbackData, int eventData1, int eventData2)
{
int mod, left, right;
double min, max;
switch (event) {
case EVENT_LEFT_CLICK:
case EVENT_RIGHT_CLICK:
GetGlobalMouseState (NULL, NULL, NULL, &left, &right, &mod);
if (mod & VAL_MENUKEY_MODIFIER) {
GetAxisScalingMode (panel, control, VAL_XAXIS, 0, &min, &max);
if (right) {
min *= 1.1;
max /= 1.1;
}
else {
min /= 1.1;
max *= 1.1;
}
SetAxisScalingMode (panel, control, VAL_XAXIS, VAL_MANUAL, min, max);
// Place code here to zoom other graph
}
break;
}
return 0;
}
I tried this solution and it behaves differently from the original zooming: it doesn't respond if you maintain the mouse button pressed and on my machine some clicks are missed... but it works.
Hope this helps
Roberto