Skip to content

IChartDataSource

InterfaceChartGuruChartGuru
public interface IChartDataSource

Minimal contract shared by every ChartGuru data source - the MonoBehaviour ChartGuru.ChartDataSourceBase (scene-authored) and the new ChartDataSourceAsset (ScriptableObject, project-authored, UXML-bindable).

Host components ([ChartGuru.ChartGraphic](/tools/chartguru/api/chartguru-chartgraphic/), ChartGuruElement, ...) hold a reference of this type and call `ChartGuru.IChartDataSource.ApplyData` whenever they want the source to refresh the chart they target. The contract stays intentionally small; concrete sources decide how they resolve their target chart and what data to push.

void ApplyData()

Apply the configured data to the source’s target chart.