IChartElement
public interface IChartElement : IChartHostA 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.
Properties
Section titled “Properties”
DefinitionAsset
Section titled “DefinitionAsset”ChartAsset DefinitionAsset { get; set; }Shared chart asset. When set, it replaces the element's own definition. UXML: chart.
Returns
ChartGuru.ChartAsset
DataAsset
Section titled “DataAsset”ChartDataAsset DataAsset { get; set; }Shared data table bound to the chart, replacing the definition's own table. UXML: data.
Returns
ChartGuru.ChartDataAsset
DataSource
Section titled “DataSource”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