Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sumaammu1808 opened this issue Apr 25, 2023 · 0 comments

Comments

@sumaammu1808
Copy link

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,
}

@sumaammu1808 sumaammu1808 changed the title Unable to sync zooming of multiple charts. Unable to sync zooming of multiple charts.Is there any choice to sync zoom of charts in React native. Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant