                 fromChart.on('dataZoom', function (params) {
                        toChart.dispatchAction({
                            type: 'dataZoom',
                            dataZoomIndex: params.batch[0].dataZoomIndex,
                            start: params.batch[0].start,
                            end: params.batch[0].end
                        }, true);
                    });
                });
            });
        }

    });
    </script>
    </body>
</html>