Class ServiceCollectionExtensions
DI helpers for the BlazOrbit.Charts package. Hosts must call
AddBlazOrbitCharts(IServiceCollection) alongside the main
AddBlazOrbit() registration to wire up the JS interop required by
chart components.
Stylesheet: the chart-family CSS bundle
(_content/BlazOrbit.Charts/css/blazorbit-charts.css) is auto-
injected into <head> by the JS module on first import - no
manual <link> in index.html / App.razor is
required. Add one explicitly only if you need precise ordering against
theme overrides; the auto-inject detects an existing link and skips.
public static class ServiceCollectionExtensions
- Inheritance
-
objectServiceCollectionExtensions
Methods
AddBlazOrbitCharts(IServiceCollection)
Registers the IChartJsInterop implementation used by every BOBCharts component. Idempotent - repeated calls add nothing.
public static IServiceCollection AddBlazOrbitCharts(this IServiceCollection services)
Parameters
servicesIServiceCollectionDI container to mutate.
Returns
- IServiceCollection
The same
servicesfor chaining.