Skip to content

Unable to sync zooming of multiple charts.Is there any choice to sync zoom of charts in React native. #132

Description

@sumaammu1808

syncExtremes=(e)=> {
var self = this;
var thisChart = self.chart;
var thisChart = this.chart;
if (e.trigger !== 'syncExtremes') { // Prevent feedback loop
Highcharts.each(Highcharts.charts, function (chart) {
if (chart!=thisChart) {
if (chart.xAxis[0].setExtremes) { // It is null while updating
chart.xAxis[0].setExtremes(e.min, e.max, undefined, false, { trigger: 'syncExtremes' });
}
}
});
}
}

in chart cofiguration i have kept like this,but syncExtremes is not at all called here.Please guide me am i missing anything.

xAxis: {
type: 'datetime',
events: {
setExtremes: syncExtremes,
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions