Skip to content

Can't disable loader property and apply a theme when initializing SciChartSurface #1

@Amalthean

Description

@Amalthean

Unable to reliably disable loader property when initializing SciChartSurface.
Here is an excerpt of the code when trying to initialize the SciChartSurface.

    const theme = { ...new SciChartJsNavyTheme() };

    // ...
    const { sciChartSurface, wasmContext } = await SciChartSurface.create(
      rootElement,
      {
        loader: false,  // without scichart-angular component this method works
        theme,
        disableAspect: true,
      }
    );
   // ...
   sciChartSurface.background = 'transparent'; // this also does not work, I see the `<scichart-fallback>` blink for a short time

What I can see in the browser Elements section is the following:

Image

So it seems that the <scichart-fallback> is activated for a short time.
I also don't see the theme being applied correctly during the initialization phase.

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