SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, iOS Chart, Android Chart and JavaScript Chart Components
Multiple instances of sci chart any appearance changes reflecting on other instances. When I changed the background of one instance the same is reflected in the other instance. I have updated with createSingle to resolve this issue, But i am getting one alert when using createSingle.
Hi Arun,
Sorry for the long reply. I reproduced the bug. It happened when I applied the theme for more than one SciChartSurface on the same page, like this:
export const drawExample1 = async () => {
const { sciChartSurface, wasmContext } = await SciChartSurface.create(divElementId);
sciChartSurface.applyTheme(new SciChartJSDarkTheme());
...
}
export const drawExample2 = async () => {
const { sciChartSurface, wasmContext } = await SciChartSurface.create(divElementId2);
sciChartSurface.applyTheme(new SciChartJSLightTheme());
...
}
We fixed it in the version 1.2.1431. Please update scichart.js and let us know if it helps. If it does not please provide the example code.
Best regards,
Michael
Hi Arun
Can you share some code that causes this issue?
We did have another customer with the same issue but turned out to be a problem in their code.
Can you share with us the code that you use to initialise the charts? If you can reproduce the issue in a sample and send it to us, we will be able to advise.
Best regards,
Andrew
Please login first to submit.