Chart/types.ts

router · frontend/src/components/Chart/types.ts · typescript · Apache-2.0
ui

types.ts from weave-os/router

// Source: https://github.com/weave-os/router | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
import { TOOLTIP_DATA_KEY } from "./constants";

/** Allowable types for chart data keys. */
export type ChartDataKeyType = number | string;

/** Allowable types for chart data values. */
export type ChartDataValueType = [number, number] | [string, string] | number | string;

/**
 * Represents a fixed value for a chart's axis domain.
 */
type ChartAxisDomainItem<TValue> = "auto" | "dataMax" | "dataMin" | TValue;

/**
 * Function to get the domain for an axis. This function is called with the min and max data values
 * passed by the chart, and should return the domain to use for the axis.


... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key