UNPKG

@nova-ui/charts

Version:

Nova Charts is a library created to provide potential consumers with solutions for various data visualizations that conform with the Nova Design Language. It's designed to solve common patterns identified by UX designers, but also be very flexible so that

55 lines (54 loc) 1.75 kB
import { IAllAround } from "../core/grid/types"; export declare const GAUGE_QUANTITY_SERIES_ID = "quantity"; export declare const GAUGE_REMAINDER_SERIES_ID = "remainder"; export declare const GAUGE_THRESHOLD_MARKERS_SERIES_ID = "threshold-markers"; /** * The visualization modes for a gauge */ export declare enum GaugeMode { Donut = "donut", Horizontal = "horizontal", Vertical = "vertical" } /** * Standard thicknesses for the linear gauge */ export declare enum StandardLinearGaugeThickness { Small = 10, Large = 15 } /** * Standard values for gauge threshold marker radii */ export declare enum StandardGaugeThresholdMarkerRadius { Small = 3, Large = 4 } /** * Standard values for gauge threshold marker radii */ export declare enum StandardGaugeThresholdId { Warning = "warning", Critical = "critical" } /** * Standard gauge colors */ export declare enum StandardGaugeColor { /** Standard color for the part of the gauge that's not filled in */ Remainder = "var(--nui-color-semantic-unknown-bg-hover)", /** Standard color for the value part of the gauge when the value represents an ok status */ Ok = "var(--nui-color-chart-one)", /** Standard color for the value part of the gauge when the value has a warning status */ Warning = "var(--nui-color-semantic-warning)", /** Standard color for the value part of the gauge when the value has a critical status */ Critical = "var(--nui-color-semantic-critical)" } /** * Default donut gauge margin for label clearance */ export declare const DONUT_GAUGE_LABEL_CLEARANCE_DEFAULT = 30; /** * Default linear gauge margins for label clearance */ export declare const LINEAR_GAUGE_LABEL_CLEARANCE_DEFAULTS: IAllAround<number>;