Troubleshooting
Problem | Check |
|---|---|
Chart is blank | Confirm the GameObject has ChartGraphic or another host, has a valid size, and has marks from code or a data source. |
No data appears from a source | Confirm the source is enabled on the chart's GameObject, or on an inherited parent when the chart has no own data. Select Source, inspect its published Preview and last error, then check the chart's Marks channel names and Data diagnostics. |
Axes look wrong | Check chart type, bar orientation, domain, scale type, category labels, and whether the chart type hides axes by design. |
Legend is missing | A legend needs series or foreground style keys. Use semantic ForegroundStyle values or set LegendPosition to a visible value. |
Labels overlap | Reduce visible labels, rotate axis labels, shorten category names, use a wider chart, or use label collision settings. |
Live chart allocates or stutters | Keep chart and host instances, use compatible value-only updates or RingBufferChartDataSource, reduce dense labels, and avoid replacing definitions or rebuilding data shape every frame. |
UI Toolkit chart does not update | Confirm the binder's UI Panel and Element Name, the chosen Chart Asset and Data Asset, and the source resolved on its GameObject or parent. A custom source must publish a frame or call PublishValueChange after updating its owned columns; the publication raises FrameChanged. |