Skip to content

IChartElement

InterfaceChartGuruChartGuru
public interface IChartElement : IChartHost

A chart host that is a UI Toolkit element, such as ChartGuruElement or the Chart Guru 3D element. UXML cannot reference scene objects, so a UIToolkitChartBinder finds the first chart element in its panel, or the one with its element name, and assigns these properties. Implement it on a VisualElement; the binder only finds chart elements in the panel tree.

ChartAsset DefinitionAsset { get; set; }

Shared chart asset. When set, it replaces the element's own definition. UXML: chart.

Returns

ChartGuru.ChartAsset

ChartDataAsset DataAsset { get; set; }

Shared data table bound to the chart, replacing the definition's own table. UXML: data.

Returns

ChartGuru.ChartDataAsset

ChartDataSource DataSource { get; set; }

Live data source bound to the chart, such as a CSV file, a web endpoint or mock data. UXML cannot reference scene objects, so assign it from code or with a UIToolkitChartBinder. Null shows the element's other data.

Returns

ChartGuru.ChartDataSource