@opendata-ai/openchart-core 7.2.3 → 7.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +60 -11
- package/dist/index.js +440 -132
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +8 -0
- package/src/labels/collision.ts +7 -1
- package/src/labels/index.ts +1 -0
- package/src/layout/__tests__/text-measure.test.ts +7 -8
- package/src/layout/index.ts +2 -0
- package/src/layout/text-measure.ts +331 -38
- package/src/responsive/index.ts +5 -0
- package/src/responsive/metrics.ts +37 -0
- package/src/theme/defaults.ts +2 -1
- package/src/types/index.ts +1 -0
- package/src/types/layout.ts +24 -0
package/dist/index.d.ts
CHANGED
|
@@ -2411,6 +2411,8 @@ interface ResolvedChrome {
|
|
|
2411
2411
|
byline?: ResolvedChromeElement;
|
|
2412
2412
|
footer?: ResolvedChromeElement;
|
|
2413
2413
|
brand?: ResolvedChromeElement;
|
|
2414
|
+
/** Absolute y at which bottom-chrome relative offsets are anchored: area.y + area.height + x-axis extent. */
|
|
2415
|
+
bottomAnchorY?: number;
|
|
2414
2416
|
}
|
|
2415
2417
|
/** A single axis tick with computed position and formatted label. */
|
|
2416
2418
|
interface AxisTick {
|
|
@@ -2471,6 +2473,14 @@ interface AxisLayout {
|
|
|
2471
2473
|
* classic outside-the-area placement.
|
|
2472
2474
|
*/
|
|
2473
2475
|
tickPosition?: 'inline' | 'gutter';
|
|
2476
|
+
/** Extent in px beyond the chart-area edge occupied by tick labels + title. Engine-resolved from the final (post-thinning) tick set. */
|
|
2477
|
+
extent?: number;
|
|
2478
|
+
/** Absolute anchor for the axis title. Replaces renderer-side offset math. */
|
|
2479
|
+
titlePosition?: {
|
|
2480
|
+
x: number;
|
|
2481
|
+
y: number;
|
|
2482
|
+
angle?: number;
|
|
2483
|
+
};
|
|
2474
2484
|
}
|
|
2475
2485
|
/** Accessibility attributes for a mark. */
|
|
2476
2486
|
interface MarkAria {
|
|
@@ -2819,6 +2829,8 @@ interface ResolvedLabel {
|
|
|
2819
2829
|
background?: string;
|
|
2820
2830
|
/** Whether to show the paint-order stroke halo. Default true. */
|
|
2821
2831
|
halo?: boolean;
|
|
2832
|
+
/** Engine-measured text-block bounds. Renderers should use this for background rects instead of re-estimating. */
|
|
2833
|
+
bounds?: Rect;
|
|
2822
2834
|
}
|
|
2823
2835
|
/** A resolved annotation with computed pixel positions. */
|
|
2824
2836
|
interface ResolvedAnnotation {
|
|
@@ -2869,6 +2881,8 @@ interface ResolvedAnnotation {
|
|
|
2869
2881
|
y: number;
|
|
2870
2882
|
style: TextStyle;
|
|
2871
2883
|
};
|
|
2884
|
+
/** Full placed extent: label bounds unioned with subtitle bounds. Collision and placement source of truth. */
|
|
2885
|
+
bounds?: Rect;
|
|
2872
2886
|
}
|
|
2873
2887
|
/** A single entry in a categorical legend. */
|
|
2874
2888
|
interface LegendEntry {
|
|
@@ -2892,6 +2906,15 @@ interface BaseLegendLayout {
|
|
|
2892
2906
|
/** Entry label style. */
|
|
2893
2907
|
labelStyle: TextStyle;
|
|
2894
2908
|
}
|
|
2909
|
+
/** Engine-resolved absolute position for a single legend entry. */
|
|
2910
|
+
interface LegendEntryPosition {
|
|
2911
|
+
x: number;
|
|
2912
|
+
y: number;
|
|
2913
|
+
labelX: number;
|
|
2914
|
+
labelY: number;
|
|
2915
|
+
width: number;
|
|
2916
|
+
row: number;
|
|
2917
|
+
}
|
|
2895
2918
|
/** Categorical legend with discrete swatch entries. */
|
|
2896
2919
|
interface CategoricalLegendLayout extends BaseLegendLayout {
|
|
2897
2920
|
/** Discriminant for legend type. Omitted means categorical (backwards compat). */
|
|
@@ -2906,6 +2929,10 @@ interface CategoricalLegendLayout extends BaseLegendLayout {
|
|
|
2906
2929
|
entryGap: number;
|
|
2907
2930
|
/** Fill color for the rounded chip background behind the colored bar. */
|
|
2908
2931
|
swatchChipFill: string;
|
|
2932
|
+
/** Engine-resolved absolute positions, parallel to `entries`. */
|
|
2933
|
+
entryPositions?: LegendEntryPosition[];
|
|
2934
|
+
/** Row advance used to build entryPositions (single source of truth). */
|
|
2935
|
+
rowHeight?: number;
|
|
2909
2936
|
}
|
|
2910
2937
|
/** A color stop in a gradient legend. */
|
|
2911
2938
|
interface GradientColorStop {
|
|
@@ -3829,21 +3856,27 @@ declare function resolveTheme(userTheme?: ThemeConfig, base?: Theme): ResolvedTh
|
|
|
3829
3856
|
declare function computeChrome(chrome: Chrome | undefined, theme: ResolvedTheme, width: number, measureText?: MeasureTextFn, chromeMode?: ChromeMode, padding?: number, watermark?: boolean, bottomLegendHeight?: number): ResolvedChrome;
|
|
3830
3857
|
|
|
3831
3858
|
/**
|
|
3832
|
-
*
|
|
3859
|
+
* Text measurement for environments without a DOM.
|
|
3833
3860
|
*
|
|
3834
|
-
* Uses
|
|
3835
|
-
*
|
|
3861
|
+
* Uses per-character advance-width tables measured from Inter (the default
|
|
3862
|
+
* chart font) for ~2-3% accuracy on Latin text at weights 400/700.
|
|
3863
|
+
* Other fonts set via theme.fonts.family still get a better-than-flat-ratio
|
|
3864
|
+
* approximation but no accuracy guarantee.
|
|
3836
3865
|
*
|
|
3837
|
-
*
|
|
3838
|
-
*
|
|
3839
|
-
|
|
3866
|
+
* Tables generated by scripts/generate-char-widths.mjs — regenerate, don't
|
|
3867
|
+
* hand-edit.
|
|
3868
|
+
*/
|
|
3869
|
+
|
|
3870
|
+
/**
|
|
3871
|
+
* Estimate the rendered width of a text string.
|
|
3872
|
+
*
|
|
3873
|
+
* Uses per-character advance widths measured from Inter (the default chart
|
|
3874
|
+
* font). Accurate to ~2-3% for Latin text at weights 400/700; other weights
|
|
3875
|
+
* are interpolated from the nearest table.
|
|
3840
3876
|
*/
|
|
3841
3877
|
declare function estimateTextWidth(text: string, fontSize: number, fontWeight?: number): number;
|
|
3842
3878
|
/**
|
|
3843
3879
|
* Width reserved for the "tryOpenData.ai" brand watermark in the bottom-right corner.
|
|
3844
|
-
* Accounts for ~14 chars at font size 12 with mixed weights, plus a gap
|
|
3845
|
-
* so adjacent text doesn't crowd it. Used by chrome and legend layout to avoid
|
|
3846
|
-
* overlapping the brand.
|
|
3847
3880
|
*/
|
|
3848
3881
|
declare const BRAND_RESERVE_WIDTH = 130;
|
|
3849
3882
|
/** Font size of the brand watermark (px). Shared between layout and renderer. */
|
|
@@ -3855,6 +3888,8 @@ declare const BRAND_MIN_WIDTH = 120;
|
|
|
3855
3888
|
* padding, label gaps) to maximize data area on small screens.
|
|
3856
3889
|
*/
|
|
3857
3890
|
declare const COMPACT_WIDTH = 420;
|
|
3891
|
+
declare const heuristicMeasure: MeasureTextFn;
|
|
3892
|
+
declare function resolveMeasurer(measureText?: MeasureTextFn): MeasureTextFn;
|
|
3858
3893
|
|
|
3859
3894
|
/**
|
|
3860
3895
|
* Word-wrap a text string into lines that fit within a max width.
|
|
@@ -3971,13 +4006,25 @@ declare const MAX_LEFT_LABEL_FRACTION_COMPACT = 0.45;
|
|
|
3971
4006
|
declare const MAX_LEFT_LABEL_FRACTION_MEDIUM = 0.55;
|
|
3972
4007
|
/** Max fraction of container width reservable for left category labels (standard). */
|
|
3973
4008
|
declare const MAX_LEFT_LABEL_FRACTION_DEFAULT = 1;
|
|
4009
|
+
declare const X_AXIS_BAND_HEIGHT = 26;
|
|
4010
|
+
declare const X_AXIS_TITLE_BAND = 22;
|
|
4011
|
+
declare const X_AXIS_TITLE_BAND_ROTATED = 20;
|
|
4012
|
+
interface XAxisExtentInput {
|
|
4013
|
+
labels: string[];
|
|
4014
|
+
tickAngle?: number;
|
|
4015
|
+
hasTitle: boolean;
|
|
4016
|
+
tickFontSize: number;
|
|
4017
|
+
tickFontWeight: number;
|
|
4018
|
+
xAxisHeight?: number;
|
|
4019
|
+
measure?: (text: string, fontSize: number, fontWeight: number) => number;
|
|
4020
|
+
}
|
|
4021
|
+
declare function computeXAxisExtentFromLabels(input: XAxisExtentInput): number;
|
|
3974
4022
|
|
|
3975
4023
|
/**
|
|
3976
4024
|
* Label collision detection and resolution.
|
|
3977
4025
|
*
|
|
3978
4026
|
* Greedy algorithm: sort by priority, place in order, try offset
|
|
3979
4027
|
* positions for conflicts, demote to tooltip-only if no position works.
|
|
3980
|
-
* Targeting ~60% of Infrographic quality for Phase 0.
|
|
3981
4028
|
*/
|
|
3982
4029
|
|
|
3983
4030
|
/** Priority levels for label placement. Data labels win over annotations which win over axes. */
|
|
@@ -4006,6 +4053,8 @@ interface LabelCandidate {
|
|
|
4006
4053
|
* Detect AABB (axis-aligned bounding box) overlap between two rectangles.
|
|
4007
4054
|
*/
|
|
4008
4055
|
declare function detectCollision(a: Rect, b: Rect): boolean;
|
|
4056
|
+
/** Compute the area of intersection between two axis-aligned rectangles. Returns 0 if disjoint. */
|
|
4057
|
+
declare function overlapArea(a: Rect, b: Rect): number;
|
|
4009
4058
|
/** An offset position to try when resolving a label collision. */
|
|
4010
4059
|
interface OffsetStrategy {
|
|
4011
4060
|
dx: number;
|
|
@@ -4329,4 +4378,4 @@ interface TileMapBuilderOptions {
|
|
|
4329
4378
|
*/
|
|
4330
4379
|
declare function tileMap(data: Record<string, number | null> | DataRow[], options?: TileMapBuilderOptions): TileMapSpec;
|
|
4331
4380
|
|
|
4332
|
-
export { type A11yMetadata, AXIS_TITLE_GAP, AXIS_TITLE_OFFSET_COMPACT, AXIS_TITLE_OFFSET_DEFAULT, AXIS_TITLE_TRAILING_PAD, type AggregateOp, type AggregateTransform, type AnimationConfig, type AnimationEase, type AnimationPhaseConfig, type AnimationSpec, type AnimationStagger, type Annotation, type AnnotationAnchor, type AnnotationOffset, type AnnotationPosition, type ArcEncoding, type ArcMark, type AreaEncoding, type AreaMark, type AxisConfig, type AxisLabelDensity, type AxisLayout, type AxisTick, BRAND_FONT_SIZE, BRAND_MIN_WIDTH, BRAND_RESERVE_WIDTH, BREAKPOINT_COMPACT_MAX, BREAKPOINT_MEDIUM_MAX, type BarColumnConfig, type BarEncoding, type BarListEncoding, type BarListLayout, type BarListRowMark, type BarListSpec, type BarListSpecWithoutData, type BarTableCell, type BaseLegendLayout, type BinParams, type BinTransform, type Breakpoint, CATEGORICAL_PALETTE, CHART_ENCODING_RULES, CHART_TYPES, COMPACT_WIDTH, type CalculateExpression, type CalculateTransform, type CategoricalLegendLayout, type CategoricalPalette, type CategoryColorsConfig, type CategoryTableCell, type CellStyle, type ChannelRule, type ChartBuilderOptions, type ChartEventHandlers, type ChartLayout, type ChartSpec, type ChartSpecOverride, type ChartSpecWithoutData, type ChartType, type Chrome, type ChromeDefaults, type ChromeKey, type ChromeMode, type ChromeText, type ChromeTextStyle, type CircleEncoding, type ColorBlindnessType, type ColumnConfig, type CompileOptions, type CompileTableOptions, type Condition, type ConditionalValueDef, DEFAULT_THEME, DIVERGING_PALETTES, type DarkMode, type DataRow, type DateGranularity, type Display, type DivergingPalette, EXTENDED_OFFSET_STRATEGIES, type ElementEdit, type ElementRef, type Encoding, type EncodingChannel, type EncodingRule, type EndpointLabelEntry, type EndpointLabelsConfig, type EndpointLabelsLayout, type FieldPredicate, type FieldRef, type FieldType, type FilterPredicate, type FilterTransform, type FlagTableCell, type FoldTransform, GRAPH_ENCODING_RULES, type GradientColorStop, type GradientDef, type GradientLegendLayout, type GradientStop, type GraphChannelRule, type GraphEdge, type GraphEdgeLayout, type GraphEncoding, type GraphEncodingChannel, type GraphLayout, type GraphLayoutConfig, type GraphNode, type GraphNodeLayout, type GraphSpec, type GraphSpecWithoutData, type Gridline, HEIGHT_CRAMPED_MAX, HEIGHT_SHORT_MAX, HPAD_COMPACT_FRACTION, HPAD_COMPACT_MIN, type HeatmapColumnConfig, type HeatmapTableCell, type HeightClass, type ImageColumnConfig, type ImageTableCell, LABEL_GAP_COMPACT, LABEL_GAP_DEFAULT, LABEL_GAP_NARROW_MAX, type LabelCandidate, type LabelConfig, type LabelDensity, type LabelMode, type LabelPriority, type LabelSpec, type LayerSpec, type LayoutStrategy, type LegendConfig, type LegendEntry, type LegendLayout, type LegendPosition, type LineEncoding, type LineMark, type LinearGradient, type LogicalAnd, type LogicalNot, type LogicalOr, type LollipopEncoding, MARK_DISPLAY_NAMES, MARK_ENCODING_RULES, MARK_TYPES, MAX_LEFT_LABEL_FRACTION_COMPACT, MAX_LEFT_LABEL_FRACTION_DEFAULT, MAX_LEFT_LABEL_FRACTION_MEDIUM, MAX_LEFT_LABEL_FRACTION_MEDIUM_MAX, type Margins, type Mark, type MarkAria, type MarkDef, type MarkEvent, type MarkType, type MeasureTextFn, type Metric, NARROW_VIEWPORT_MAX, type NodeOverride, OFFSET_STRATEGIES, type OffsetStrategy, type PaginationState, type Point, type PointEncoding, type PointMark, type RadialGradient, type RangeAnnotation, type Rect, type RectEncoding, type RectMark, type RefLineAnnotation, type RelativeTimeRef, type ResolveConfig, type ResolveMode, type ResolvedAnimation, type ResolvedAnnotation, type ResolvedChrome, type ResolvedChromeElement, type ResolvedColumn, type ResolvedLabel, type ResolvedMetricBar, type ResolvedMetricCell, type ResolvedTheme, type RuleMarkLayout, SEQUENTIAL_PALETTES, type SankeyEncoding, type SankeyLayout, type SankeyLinkColor, type SankeyLinkMark, type SankeyNodeAlign, type SankeyNodeMark, type SankeySpec, type SankeySpecWithoutData, type ScaleConfig, type ScaleType, type SequentialPalette, type SeriesStyle, type SortState, type SparklineColumnConfig, type SparklineData, type SparklineTableCell, type StoredVizSpec, TICK_LABEL_OFFSET, TOP_PAD_EXTRA_NARROW, TOP_PAD_NARROW_MAX, type TableBuilderOptions, type TableCell, type TableCellBase, type TableLayout, type TableRow, type TableSpec, type TableSpecWithoutData, type TextAnnotation, type TextEncoding, type TextMarkLayout, type TextStyle, type TextTableCell, type Theme, type ThemeChromeDefaults, type ThemeColors, type ThemeConfig, type ThemeFontSizes, type ThemeFontWeights, type ThemeFonts, type ThemeSpacing, type TickEncoding, type TickMarkLayout, type TileMapBuilderOptions, type TileMapEncoding, type TileMapLayout, type TileMapPalette, type TileMapSpec, type TileMapSpecWithoutData, type TileMapTileMark, type TimeUnit, type TimeUnitTransform, type TooltipContent, type TooltipField, type Transform, type VizSpec, type WindowFieldDef, type WindowOp, type WindowSortField, type WindowTransform, abbreviateNumber, adaptColorForDarkMode, adaptTheme, areaChart, axisTitleOffset, barChart, buildD3Formatter, buildTemporalFormatter, checkPaletteDistinguishability, columnChart, computeChrome, computeLabelBounds, contrastRatio, dataTable, detectCollision, donutChart, dotChart, elementRef, estimateTextWidth, findAccessibleColor, formatDate, formatNumber, generateAltText, generateAriaLabels, generateDataTable, getAxisTitleOffset, getBreakpoint, getHeightClass, getLayoutStrategy, getRepresentativeColor, inferFieldType, isBarListSpec, isChartSpec, isConditionalDef, isEncodingChannel, isGradientDef, isGraphSpec, isLayerSpec, isRangeAnnotation, isRefLineAnnotation, isSankeySpec, isTableSpec, isTextAnnotation, isTileMapSpec, lineChart, meetsAA, pickLabelColor, pieChart, resolveCollisions, resolveMarkDef, resolveMarkType, resolveTheme, scatterChart, simulateColorBlindness, tileMap, wrapText };
|
|
4381
|
+
export { type A11yMetadata, AXIS_TITLE_GAP, AXIS_TITLE_OFFSET_COMPACT, AXIS_TITLE_OFFSET_DEFAULT, AXIS_TITLE_TRAILING_PAD, type AggregateOp, type AggregateTransform, type AnimationConfig, type AnimationEase, type AnimationPhaseConfig, type AnimationSpec, type AnimationStagger, type Annotation, type AnnotationAnchor, type AnnotationOffset, type AnnotationPosition, type ArcEncoding, type ArcMark, type AreaEncoding, type AreaMark, type AxisConfig, type AxisLabelDensity, type AxisLayout, type AxisTick, BRAND_FONT_SIZE, BRAND_MIN_WIDTH, BRAND_RESERVE_WIDTH, BREAKPOINT_COMPACT_MAX, BREAKPOINT_MEDIUM_MAX, type BarColumnConfig, type BarEncoding, type BarListEncoding, type BarListLayout, type BarListRowMark, type BarListSpec, type BarListSpecWithoutData, type BarTableCell, type BaseLegendLayout, type BinParams, type BinTransform, type Breakpoint, CATEGORICAL_PALETTE, CHART_ENCODING_RULES, CHART_TYPES, COMPACT_WIDTH, type CalculateExpression, type CalculateTransform, type CategoricalLegendLayout, type CategoricalPalette, type CategoryColorsConfig, type CategoryTableCell, type CellStyle, type ChannelRule, type ChartBuilderOptions, type ChartEventHandlers, type ChartLayout, type ChartSpec, type ChartSpecOverride, type ChartSpecWithoutData, type ChartType, type Chrome, type ChromeDefaults, type ChromeKey, type ChromeMode, type ChromeText, type ChromeTextStyle, type CircleEncoding, type ColorBlindnessType, type ColumnConfig, type CompileOptions, type CompileTableOptions, type Condition, type ConditionalValueDef, DEFAULT_THEME, DIVERGING_PALETTES, type DarkMode, type DataRow, type DateGranularity, type Display, type DivergingPalette, EXTENDED_OFFSET_STRATEGIES, type ElementEdit, type ElementRef, type Encoding, type EncodingChannel, type EncodingRule, type EndpointLabelEntry, type EndpointLabelsConfig, type EndpointLabelsLayout, type FieldPredicate, type FieldRef, type FieldType, type FilterPredicate, type FilterTransform, type FlagTableCell, type FoldTransform, GRAPH_ENCODING_RULES, type GradientColorStop, type GradientDef, type GradientLegendLayout, type GradientStop, type GraphChannelRule, type GraphEdge, type GraphEdgeLayout, type GraphEncoding, type GraphEncodingChannel, type GraphLayout, type GraphLayoutConfig, type GraphNode, type GraphNodeLayout, type GraphSpec, type GraphSpecWithoutData, type Gridline, HEIGHT_CRAMPED_MAX, HEIGHT_SHORT_MAX, HPAD_COMPACT_FRACTION, HPAD_COMPACT_MIN, type HeatmapColumnConfig, type HeatmapTableCell, type HeightClass, type ImageColumnConfig, type ImageTableCell, LABEL_GAP_COMPACT, LABEL_GAP_DEFAULT, LABEL_GAP_NARROW_MAX, type LabelCandidate, type LabelConfig, type LabelDensity, type LabelMode, type LabelPriority, type LabelSpec, type LayerSpec, type LayoutStrategy, type LegendConfig, type LegendEntry, type LegendEntryPosition, type LegendLayout, type LegendPosition, type LineEncoding, type LineMark, type LinearGradient, type LogicalAnd, type LogicalNot, type LogicalOr, type LollipopEncoding, MARK_DISPLAY_NAMES, MARK_ENCODING_RULES, MARK_TYPES, MAX_LEFT_LABEL_FRACTION_COMPACT, MAX_LEFT_LABEL_FRACTION_DEFAULT, MAX_LEFT_LABEL_FRACTION_MEDIUM, MAX_LEFT_LABEL_FRACTION_MEDIUM_MAX, type Margins, type Mark, type MarkAria, type MarkDef, type MarkEvent, type MarkType, type MeasureTextFn, type Metric, NARROW_VIEWPORT_MAX, type NodeOverride, OFFSET_STRATEGIES, type OffsetStrategy, type PaginationState, type Point, type PointEncoding, type PointMark, type RadialGradient, type RangeAnnotation, type Rect, type RectEncoding, type RectMark, type RefLineAnnotation, type RelativeTimeRef, type ResolveConfig, type ResolveMode, type ResolvedAnimation, type ResolvedAnnotation, type ResolvedChrome, type ResolvedChromeElement, type ResolvedColumn, type ResolvedLabel, type ResolvedMetricBar, type ResolvedMetricCell, type ResolvedTheme, type RuleMarkLayout, SEQUENTIAL_PALETTES, type SankeyEncoding, type SankeyLayout, type SankeyLinkColor, type SankeyLinkMark, type SankeyNodeAlign, type SankeyNodeMark, type SankeySpec, type SankeySpecWithoutData, type ScaleConfig, type ScaleType, type SequentialPalette, type SeriesStyle, type SortState, type SparklineColumnConfig, type SparklineData, type SparklineTableCell, type StoredVizSpec, TICK_LABEL_OFFSET, TOP_PAD_EXTRA_NARROW, TOP_PAD_NARROW_MAX, type TableBuilderOptions, type TableCell, type TableCellBase, type TableLayout, type TableRow, type TableSpec, type TableSpecWithoutData, type TextAnnotation, type TextEncoding, type TextMarkLayout, type TextStyle, type TextTableCell, type Theme, type ThemeChromeDefaults, type ThemeColors, type ThemeConfig, type ThemeFontSizes, type ThemeFontWeights, type ThemeFonts, type ThemeSpacing, type TickEncoding, type TickMarkLayout, type TileMapBuilderOptions, type TileMapEncoding, type TileMapLayout, type TileMapPalette, type TileMapSpec, type TileMapSpecWithoutData, type TileMapTileMark, type TimeUnit, type TimeUnitTransform, type TooltipContent, type TooltipField, type Transform, type VizSpec, type WindowFieldDef, type WindowOp, type WindowSortField, type WindowTransform, type XAxisExtentInput, X_AXIS_BAND_HEIGHT, X_AXIS_TITLE_BAND, X_AXIS_TITLE_BAND_ROTATED, abbreviateNumber, adaptColorForDarkMode, adaptTheme, areaChart, axisTitleOffset, barChart, buildD3Formatter, buildTemporalFormatter, checkPaletteDistinguishability, columnChart, computeChrome, computeLabelBounds, computeXAxisExtentFromLabels, contrastRatio, dataTable, detectCollision, donutChart, dotChart, elementRef, estimateTextWidth, findAccessibleColor, formatDate, formatNumber, generateAltText, generateAriaLabels, generateDataTable, getAxisTitleOffset, getBreakpoint, getHeightClass, getLayoutStrategy, getRepresentativeColor, heuristicMeasure, inferFieldType, isBarListSpec, isChartSpec, isConditionalDef, isEncodingChannel, isGradientDef, isGraphSpec, isLayerSpec, isRangeAnnotation, isRefLineAnnotation, isSankeySpec, isTableSpec, isTextAnnotation, isTileMapSpec, lineChart, meetsAA, overlapArea, pickLabelColor, pieChart, resolveCollisions, resolveMarkDef, resolveMarkType, resolveMeasurer, resolveTheme, scatterChart, simulateColorBlindness, tileMap, wrapText };
|