@amad3v/solid-echarts - v1.0.2
    Preparing search index...

    Variable SolidEChartProviderConst

    SolidEChartProvider: ParentComponent<SolidEChartConfig> = ...

    Provides shared ECharts configuration to all SolidEChart descendants.

    Any prop passed to the provider becomes the inherited default for every SolidEChart in its subtree. Per-chart props always win over provider values.

    Providers can be nested, an inner provider only overrides the props it explicitly receives, inheriting everything else from the outer one.

    All props accept both static values and reactive accessors (signals):

    • theme="dark" - static, always 'dark'
    • theme={currentTheme()} - reactive, updates when the signal changes
    • theme={currentTheme} - accessor, called at resolution time

    See SolidEChartConfig for the full prop reference.

    // Set shared defaults for a dashboard
    <SolidEChartProvider theme="dark" renderer="canvas" group="dashboard">
    <SolidEChart option={chartA} />
    <SolidEChart option={chartB} />
    <SolidEChart option={chartC} theme="default" /> // overrides provider theme
    </SolidEChartProvider>
    // Reactive theme toggling across all charts at once
    const [theme, setTheme] = createSignal<string>('default');

    <SolidEChartProvider theme={theme}>
    <SolidEChart option={chartA} />
    <SolidEChart option={chartB} />
    </SolidEChartProvider>

    <button onClick={() => setTheme(t => t === 'default' ? 'dark' : 'default')}>
    Toggle theme
    </button>