ChartTypeExtensions
public static class ChartTypeExtensionsExtension methods for ChartType enum providing centralized chart type categorization.
Methods
Section titled “Methods”
IsPieOrDonut(ChartType)
Section titled “IsPieOrDonut(ChartType)”public static bool IsPieOrDonut(this ChartType chartType)Returns true if the chart type is pie, donut, or their mini variants.
Parameters
| Name | Type | Description |
|---|---|---|
chartType |
ChartGuru.ChartType |
Returns
System.Boolean — No return description is available.
IsDonut(ChartType)
Section titled “IsDonut(ChartType)”public static bool IsDonut(this ChartType chartType)Returns true if the chart type is a donut variant (has inner radius).
Parameters
| Name | Type | Description |
|---|---|---|
chartType |
ChartGuru.ChartType |
Returns
System.Boolean — No return description is available.
IsPie(ChartType)
Section titled “IsPie(ChartType)”public static bool IsPie(this ChartType chartType)Returns true if the chart type is a pie variant (no inner radius).
Parameters
| Name | Type | Description |
|---|---|---|
chartType |
ChartGuru.ChartType |
Returns
System.Boolean — No return description is available.
IsCompact(ChartType)
Section titled “IsCompact(ChartType)”public static bool IsCompact(this ChartType chartType)Returns true if the chart type is a compact/mini variant for inline display.
Parameters
| Name | Type | Description |
|---|---|---|
chartType |
ChartGuru.ChartType |
Returns
System.Boolean — No return description is available.
IsBar(ChartType)
Section titled “IsBar(ChartType)”public static bool IsBar(this ChartType chartType)Returns true if the chart type is a bar variant. Orientation is not part of
the chart-type axis any more — query ChartGuru.Chart.IsHorizontalBar on
the chart instance to distinguish vertical vs horizontal layouts.
Parameters
| Name | Type | Description |
|---|---|---|
chartType |
ChartGuru.ChartType |
Returns
System.Boolean — No return description is available.
IsLine(ChartType)
Section titled “IsLine(ChartType)”public static bool IsLine(this ChartType chartType)Returns true if the chart type is a line-based chart.
Parameters
| Name | Type | Description |
|---|---|---|
chartType |
ChartGuru.ChartType |
Returns
System.Boolean — No return description is available.
IsRadial(ChartType)
Section titled “IsRadial(ChartType)”public static bool IsRadial(this ChartType chartType)Returns true if the chart type uses radial/circular layout.
Parameters
| Name | Type | Description |
|---|---|---|
chartType |
ChartGuru.ChartType |
Returns
System.Boolean — No return description is available.
ShouldHideAxes(ChartType)
Section titled “ShouldHideAxes(ChartType)”public static bool ShouldHideAxes(this ChartType chartType)Returns true if the chart type should not display axes. 3D chart types manage their own axes via the Chart3DComponent and are never hidden here.
Parameters
| Name | Type | Description |
|---|---|---|
chartType |
ChartGuru.ChartType |
Returns
System.Boolean — No return description is available.
Is3D(ChartType)
Section titled “Is3D(ChartType)”public static bool Is3D(this ChartType chartType)Returns true if this chart type is rendered by the ChartGuru.3D add-on in a world-space MeshRenderer host rather than the 2D GL pipeline.
Parameters
| Name | Type | Description |
|---|---|---|
chartType |
ChartGuru.ChartType |
Returns
System.Boolean — No return description is available.
Flatten(ChartType)
Section titled “Flatten(ChartType)”public static ChartType Flatten(this ChartType chartType)Returns the 2D counterpart of a 3D chart type (used by 2D↔3D morph recipes). Returns the input for types that have no 2D equivalent.
Parameters
| Name | Type | Description |
|---|---|---|
chartType |
ChartGuru.ChartType |
Returns
ChartGuru.ChartType — No return description is available.
Extrude(ChartType)
Section titled “Extrude(ChartType)”public static ChartType Extrude(this ChartType chartType)Returns the 3D counterpart of a 2D chart type (used by 2D↔3D morph recipes). Returns the input for types that have no 3D equivalent.
Parameters
| Name | Type | Description |
|---|---|---|
chartType |
ChartGuru.ChartType |
Returns
ChartGuru.ChartType — No return description is available.
IsTiny(ChartType)
Section titled “IsTiny(ChartType)”public static bool IsTiny(this ChartType chartType)Returns true if the chart type is a “tiny” variant designed for inline / sparkline
rendering. Historically duplicated as IsTinyChartType in both
ChartComponent and ChartGraphic; centralized here so all three
components (Scene, uGUI, UI Toolkit) agree.
Parameters
| Name | Type | Description |
|---|---|---|
chartType |
ChartGuru.ChartType |
Returns
System.Boolean — No return description is available.