@lobehub/charts 5.4.0 → 5.5.1
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/es/BenchmarkColumnChart/index.d.ts +140 -0
- package/es/BenchmarkColumnChart/index.js +686 -0
- package/es/BenchmarkColumnChart/index.mdx +66 -0
- package/es/BenchmarkColumnChart/styles.d.ts +16 -0
- package/es/BenchmarkColumnChart/styles.js +23 -0
- package/es/BenchmarkRankingChart/index.d.ts +87 -0
- package/es/BenchmarkRankingChart/index.js +448 -0
- package/es/BenchmarkRankingChart/index.mdx +59 -0
- package/es/BenchmarkRankingChart/styles.d.ts +33 -0
- package/es/BenchmarkRankingChart/styles.js +41 -0
- package/es/common/ChartTooltip/ChartTooltipFrame.js +1 -1
- package/es/common/ChartTooltip/ChartTooltipRow.js +3 -1
- package/es/common/ChartTooltip/index.js +2 -0
- package/es/common/benchmark/index.d.ts +2 -0
- package/es/common/benchmark/index.js +1 -0
- package/es/common/benchmark/types.d.ts +117 -0
- package/es/common/benchmark/types.js +1 -0
- package/es/common/benchmark/utils.d.ts +56 -0
- package/es/common/benchmark/utils.js +159 -0
- package/es/index.d.ts +3 -0
- package/es/index.js +2 -0
- package/package.json +1 -2
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { type BenchmarkBaseProps, type NormalizedBenchmarkItem } from "../common/benchmark";
|
|
3
|
+
export interface BenchmarkColumnChartProps extends BenchmarkBaseProps {
|
|
4
|
+
animationDuration?: number;
|
|
5
|
+
/**
|
|
6
|
+
* Auto-compute Y min
|
|
7
|
+
* @default false
|
|
8
|
+
*/
|
|
9
|
+
autoMinValue?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Gap between bar categories
|
|
12
|
+
* @default '10%'
|
|
13
|
+
*/
|
|
14
|
+
barCategoryGap?: string | number;
|
|
15
|
+
/**
|
|
16
|
+
* Display name for the bar series in legend / tooltip.
|
|
17
|
+
* Pass `false` or `''` to hide from the legend (tooltip still uses a fallback).
|
|
18
|
+
* @default 'Score'
|
|
19
|
+
*/
|
|
20
|
+
barName?: string | false;
|
|
21
|
+
/**
|
|
22
|
+
* Rounded top corners radius
|
|
23
|
+
* @default 0
|
|
24
|
+
*/
|
|
25
|
+
barRadius?: number;
|
|
26
|
+
/**
|
|
27
|
+
* Fallback colors when items omit per-item color
|
|
28
|
+
*/
|
|
29
|
+
colors?: string[];
|
|
30
|
+
/**
|
|
31
|
+
* Rotate X-axis labels
|
|
32
|
+
* @default -66
|
|
33
|
+
*/
|
|
34
|
+
labelAngle?: number;
|
|
35
|
+
/**
|
|
36
|
+
* X-axis label font size
|
|
37
|
+
* @default 11
|
|
38
|
+
*/
|
|
39
|
+
labelFontSize?: number;
|
|
40
|
+
/**
|
|
41
|
+
* Height reserved for icons + X-axis labels (via XAxis height)
|
|
42
|
+
* @default auto from label length / angle
|
|
43
|
+
*/
|
|
44
|
+
labelHeight?: number;
|
|
45
|
+
/**
|
|
46
|
+
* Color of the overlay line
|
|
47
|
+
* @default theme.gold
|
|
48
|
+
*/
|
|
49
|
+
lineColor?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Secondary line-series field
|
|
52
|
+
* @default 'line'
|
|
53
|
+
*/
|
|
54
|
+
lineKey?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Display name for the line series in legend / tooltip.
|
|
57
|
+
* Pass `false` or `''` to hide from the legend (tooltip still uses a fallback).
|
|
58
|
+
* @default 'Overall'
|
|
59
|
+
*/
|
|
60
|
+
lineName?: string | false;
|
|
61
|
+
/**
|
|
62
|
+
* Override Y domain max
|
|
63
|
+
*/
|
|
64
|
+
maxValue?: number;
|
|
65
|
+
/**
|
|
66
|
+
* Override Y domain min
|
|
67
|
+
* @default 0
|
|
68
|
+
*/
|
|
69
|
+
minValue?: number;
|
|
70
|
+
/**
|
|
71
|
+
* Minimum chart width; enables horizontal scroll when container is narrower
|
|
72
|
+
*/
|
|
73
|
+
minWidth?: number;
|
|
74
|
+
/**
|
|
75
|
+
* Custom rank renderer. Default is `#${rank}`.
|
|
76
|
+
*/
|
|
77
|
+
renderRank?: (item: NormalizedBenchmarkItem) => ReactNode;
|
|
78
|
+
/**
|
|
79
|
+
* Show AccuracyBar-style error bars
|
|
80
|
+
* @default true
|
|
81
|
+
*/
|
|
82
|
+
showErrorBars?: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* Show dashed horizontal grid lines
|
|
85
|
+
* @default true
|
|
86
|
+
*/
|
|
87
|
+
showGridLines?: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* Show legend when a line series is present
|
|
90
|
+
* @default true
|
|
91
|
+
*/
|
|
92
|
+
showLegend?: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* Show overlay line series when data includes line values
|
|
95
|
+
* @default true
|
|
96
|
+
*/
|
|
97
|
+
showLine?: boolean;
|
|
98
|
+
/**
|
|
99
|
+
* Show numeric labels above line points
|
|
100
|
+
* @default true
|
|
101
|
+
*/
|
|
102
|
+
showLineLabel?: boolean;
|
|
103
|
+
/**
|
|
104
|
+
* Show rank under each column (bottom of X-axis labels)
|
|
105
|
+
* @default false
|
|
106
|
+
*/
|
|
107
|
+
showRank?: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* Show tooltip
|
|
110
|
+
* @default true
|
|
111
|
+
*/
|
|
112
|
+
showTooltip?: boolean;
|
|
113
|
+
/**
|
|
114
|
+
* Show numeric labels on bars
|
|
115
|
+
* @default true
|
|
116
|
+
*/
|
|
117
|
+
showValueLabel?: boolean;
|
|
118
|
+
/**
|
|
119
|
+
* Show X axis line (category labels stay visible)
|
|
120
|
+
* @default false
|
|
121
|
+
*/
|
|
122
|
+
showXAxis?: boolean;
|
|
123
|
+
/**
|
|
124
|
+
* Show Y axis line + value ticks
|
|
125
|
+
* @default false
|
|
126
|
+
*/
|
|
127
|
+
showYAxis?: boolean;
|
|
128
|
+
/**
|
|
129
|
+
* Annotation shown near the unranked separator.
|
|
130
|
+
* Pass `false` or `''` to hide.
|
|
131
|
+
*/
|
|
132
|
+
unrankedLabel?: string | false;
|
|
133
|
+
/**
|
|
134
|
+
* Font size for numeric labels on bars
|
|
135
|
+
* @default 12
|
|
136
|
+
*/
|
|
137
|
+
valueLabelFontSize?: number;
|
|
138
|
+
}
|
|
139
|
+
declare const BenchmarkColumnChart: import("react").ForwardRefExoticComponent<BenchmarkColumnChartProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
140
|
+
export default BenchmarkColumnChart;
|