Skip to content

ChartTypeExtensions

ClassChartGuruChartGuru
public static class ChartTypeExtensions

Extension methods for ChartType enum providing centralized chart type categorization.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.