ConstAny 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 changestheme={currentTheme} - accessor, called at resolution timeSee 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>
Provides shared ECharts configuration to all
SolidEChartdescendants.