- Home
- /
- Design
- /
- DMBComponentBuilder
- /
- ChartJs
ChartJs - Live Examples
Normal state
Realistic data example
Organization consolidation
Empty state
No chart data
The component still renders a stable canvas when the ChartJSCore model has no labels or datasets.Invalid state
Missing chart model
A null chart definition renders the canvas wrapper without emitting Chart.js initialization code.Razor usage
ChartJsBuilder.cshtml
@Html.ChartJs(chart)
.SetCanvasId("project-sync-chart")
.SetWidth("100%")
.SetHeight("100px")
.Render()
Session Consent : Consent to use session for this website