@antv/gpt-vis 0.5.6 → 0.5.8
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/README.ja-JP.md +11 -11
- package/README.md +11 -11
- package/README.zh-CN.md +11 -11
- package/dist/cjs/Bar/index.d.ts +4 -1
- package/dist/cjs/Bar/index.js +7 -2
- package/dist/cjs/Boxplot/index.d.ts +13 -0
- package/dist/cjs/Boxplot/index.js +88 -0
- package/dist/cjs/ChartCodeRender/VisChart.js +1 -1
- package/dist/cjs/ChartCodeRender/styles.d.ts +5 -1
- package/dist/cjs/ChartCodeRender/styles.js +8 -1
- package/dist/cjs/Column/index.d.ts +4 -1
- package/dist/cjs/Column/index.js +8 -2
- package/dist/cjs/DualAxes/util.js +4 -1
- package/dist/cjs/Funnel/index.d.ts +12 -0
- package/dist/cjs/Funnel/index.js +173 -0
- package/dist/cjs/Liquid/index.d.ts +11 -0
- package/dist/cjs/Liquid/index.js +85 -0
- package/dist/cjs/Pie/index.d.ts +3 -1
- package/dist/cjs/Pie/index.js +3 -1
- package/dist/cjs/Sankey/index.d.ts +12 -0
- package/dist/cjs/Sankey/index.js +103 -0
- package/dist/cjs/Scatter/index.js +7 -4
- package/dist/cjs/Table/index.d.ts +9 -0
- package/dist/cjs/Table/index.js +91 -0
- package/dist/cjs/Treemap/index.js +1 -0
- package/dist/cjs/Venn/index.d.ts +32 -0
- package/dist/cjs/Venn/index.js +87 -0
- package/dist/cjs/Violin/index.d.ts +10 -0
- package/dist/cjs/Violin/index.js +185 -0
- package/dist/cjs/export.d.ts +10 -3
- package/dist/cjs/export.js +45 -9
- package/dist/cjs/types/chart.d.ts +20 -13
- package/dist/cjs/types/chart.js +19 -12
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Bar/index.d.ts +4 -1
- package/dist/esm/Bar/index.js +12 -2
- package/dist/esm/Boxplot/index.d.ts +13 -0
- package/dist/esm/Boxplot/index.js +83 -0
- package/dist/esm/ChartCodeRender/VisChart.js +2 -1
- package/dist/esm/ChartCodeRender/styles.d.ts +5 -1
- package/dist/esm/ChartCodeRender/styles.js +5 -2
- package/dist/esm/Column/index.d.ts +4 -1
- package/dist/esm/Column/index.js +13 -2
- package/dist/esm/DualAxes/util.js +4 -1
- package/dist/esm/Funnel/index.d.ts +12 -0
- package/dist/esm/Funnel/index.js +171 -0
- package/dist/esm/Liquid/index.d.ts +11 -0
- package/dist/esm/Liquid/index.js +100 -0
- package/dist/esm/Pie/index.d.ts +3 -1
- package/dist/esm/Pie/index.js +5 -1
- package/dist/esm/Sankey/index.d.ts +12 -0
- package/dist/esm/Sankey/index.js +85 -0
- package/dist/esm/Scatter/index.js +12 -7
- package/dist/esm/Table/index.d.ts +9 -0
- package/dist/esm/Table/index.js +30 -0
- package/dist/esm/Treemap/index.js +1 -0
- package/dist/esm/Venn/index.d.ts +32 -0
- package/dist/esm/Venn/index.js +69 -0
- package/dist/esm/Violin/index.d.ts +10 -0
- package/dist/esm/Violin/index.js +192 -0
- package/dist/esm/export.d.ts +10 -3
- package/dist/esm/export.js +11 -4
- package/dist/esm/types/chart.d.ts +20 -13
- package/dist/esm/types/chart.js +19 -12
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/umd/922.async.js +1 -0
- package/dist/umd/index.min.js +1 -1
- package/package.json +32 -30
- package/dist/umd/962.async.js +0 -1
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
import { Chart } from '@antv/g2';
|
|
8
|
+
import React, { useEffect, useRef } from 'react';
|
|
9
|
+
import { THEME_MAP } from "../theme";
|
|
10
|
+
var defaultConfig = function defaultConfig(props) {
|
|
11
|
+
var _;
|
|
12
|
+
var data = props.data,
|
|
13
|
+
title = props.title,
|
|
14
|
+
axisYTitle = props.axisYTitle,
|
|
15
|
+
axisXTitle = props.axisXTitle,
|
|
16
|
+
_props$theme = props.theme,
|
|
17
|
+
theme = _props$theme === void 0 ? 'default' : _props$theme,
|
|
18
|
+
_props$style = props.style,
|
|
19
|
+
style = _props$style === void 0 ? {} : _props$style;
|
|
20
|
+
var backgroundColor = style.backgroundColor,
|
|
21
|
+
palette = style.palette;
|
|
22
|
+
var hasGroupField = ((_ = (data || [])[0]) === null || _ === void 0 ? void 0 : _.group) !== undefined;
|
|
23
|
+
var encode = {};
|
|
24
|
+
var children = [];
|
|
25
|
+
if (hasGroupField) {
|
|
26
|
+
encode = {
|
|
27
|
+
x: 'category',
|
|
28
|
+
y: 'y',
|
|
29
|
+
color: 'group',
|
|
30
|
+
series: 'group',
|
|
31
|
+
size: 'size'
|
|
32
|
+
};
|
|
33
|
+
children = [_objectSpread({
|
|
34
|
+
type: 'density',
|
|
35
|
+
data: {
|
|
36
|
+
transform: [{
|
|
37
|
+
type: 'kde',
|
|
38
|
+
field: 'value',
|
|
39
|
+
groupBy: ['category', 'group']
|
|
40
|
+
}]
|
|
41
|
+
},
|
|
42
|
+
encode: encode,
|
|
43
|
+
scale: _objectSpread({
|
|
44
|
+
y: {
|
|
45
|
+
nice: true
|
|
46
|
+
}
|
|
47
|
+
}, palette !== null && palette !== void 0 && palette[0] ? {
|
|
48
|
+
color: {
|
|
49
|
+
range: palette
|
|
50
|
+
}
|
|
51
|
+
} : {})
|
|
52
|
+
}, backgroundColor ? {
|
|
53
|
+
viewStyle: {
|
|
54
|
+
viewFill: backgroundColor
|
|
55
|
+
}
|
|
56
|
+
} : {}), _objectSpread(_objectSpread({
|
|
57
|
+
type: 'boxplot',
|
|
58
|
+
encode: {
|
|
59
|
+
x: 'category',
|
|
60
|
+
y: 'value',
|
|
61
|
+
series: 'group',
|
|
62
|
+
color: 'group',
|
|
63
|
+
shape: 'violin'
|
|
64
|
+
},
|
|
65
|
+
style: {
|
|
66
|
+
opacity: 0.5,
|
|
67
|
+
strokeOpacity: 0.5,
|
|
68
|
+
point: false
|
|
69
|
+
}
|
|
70
|
+
}, backgroundColor ? {
|
|
71
|
+
viewStyle: {
|
|
72
|
+
viewFill: backgroundColor
|
|
73
|
+
}
|
|
74
|
+
} : {}), {}, {
|
|
75
|
+
scale: _objectSpread({
|
|
76
|
+
y: {
|
|
77
|
+
nice: true
|
|
78
|
+
}
|
|
79
|
+
}, palette !== null && palette !== void 0 && palette[0] ? {
|
|
80
|
+
color: {
|
|
81
|
+
range: palette
|
|
82
|
+
}
|
|
83
|
+
} : {})
|
|
84
|
+
})];
|
|
85
|
+
} else {
|
|
86
|
+
encode = {
|
|
87
|
+
x: 'category',
|
|
88
|
+
y: 'y',
|
|
89
|
+
color: 'category',
|
|
90
|
+
size: 'size'
|
|
91
|
+
};
|
|
92
|
+
children = [_objectSpread(_objectSpread({
|
|
93
|
+
type: 'density',
|
|
94
|
+
data: {
|
|
95
|
+
transform: [{
|
|
96
|
+
type: 'kde',
|
|
97
|
+
field: 'value',
|
|
98
|
+
groupBy: ['category'],
|
|
99
|
+
size: 20
|
|
100
|
+
}]
|
|
101
|
+
},
|
|
102
|
+
encode: encode,
|
|
103
|
+
scale: {
|
|
104
|
+
y: {
|
|
105
|
+
nice: true
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}, backgroundColor ? {
|
|
109
|
+
viewStyle: {
|
|
110
|
+
viewFill: backgroundColor
|
|
111
|
+
}
|
|
112
|
+
} : {}), {}, {
|
|
113
|
+
tooltip: false
|
|
114
|
+
}), _objectSpread(_objectSpread({
|
|
115
|
+
type: 'boxplot',
|
|
116
|
+
encode: {
|
|
117
|
+
x: 'category',
|
|
118
|
+
y: 'value',
|
|
119
|
+
color: 'category',
|
|
120
|
+
shape: 'violin'
|
|
121
|
+
},
|
|
122
|
+
style: {
|
|
123
|
+
opacity: 0.5,
|
|
124
|
+
strokeOpacity: 0.5,
|
|
125
|
+
point: false
|
|
126
|
+
}
|
|
127
|
+
}, backgroundColor ? {
|
|
128
|
+
viewStyle: {
|
|
129
|
+
viewFill: backgroundColor
|
|
130
|
+
}
|
|
131
|
+
} : {}), {}, {
|
|
132
|
+
scale: _objectSpread({
|
|
133
|
+
y: {
|
|
134
|
+
nice: true
|
|
135
|
+
}
|
|
136
|
+
}, palette !== null && palette !== void 0 && palette[0] ? {
|
|
137
|
+
color: {
|
|
138
|
+
range: palette
|
|
139
|
+
}
|
|
140
|
+
} : {})
|
|
141
|
+
})];
|
|
142
|
+
}
|
|
143
|
+
return _objectSpread({
|
|
144
|
+
type: 'view',
|
|
145
|
+
theme: THEME_MAP[theme],
|
|
146
|
+
title: title,
|
|
147
|
+
autoFit: true,
|
|
148
|
+
data: data,
|
|
149
|
+
axis: {
|
|
150
|
+
y: {
|
|
151
|
+
title: axisYTitle || false
|
|
152
|
+
},
|
|
153
|
+
x: {
|
|
154
|
+
title: axisXTitle || false
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
children: children,
|
|
158
|
+
scale: {
|
|
159
|
+
y: {
|
|
160
|
+
nice: true
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}, backgroundColor ? {
|
|
164
|
+
viewStyle: {
|
|
165
|
+
viewFill: backgroundColor
|
|
166
|
+
}
|
|
167
|
+
} : {});
|
|
168
|
+
};
|
|
169
|
+
var Violin = function Violin(props) {
|
|
170
|
+
var containerRef = useRef(null);
|
|
171
|
+
var chartRef = useRef(null);
|
|
172
|
+
useEffect(function () {
|
|
173
|
+
if (!containerRef.current) return;
|
|
174
|
+
var chart = new Chart({
|
|
175
|
+
container: containerRef.current,
|
|
176
|
+
autoFit: true,
|
|
177
|
+
padding: 'auto'
|
|
178
|
+
});
|
|
179
|
+
var config = defaultConfig(props);
|
|
180
|
+
chart.options(config);
|
|
181
|
+
chart.render();
|
|
182
|
+
chartRef.current = chart;
|
|
183
|
+
return function () {
|
|
184
|
+
chart.destroy();
|
|
185
|
+
chartRef.current = null;
|
|
186
|
+
};
|
|
187
|
+
}, [props]);
|
|
188
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
189
|
+
ref: containerRef
|
|
190
|
+
});
|
|
191
|
+
};
|
|
192
|
+
export default Violin;
|
package/dist/esm/export.d.ts
CHANGED
|
@@ -2,26 +2,33 @@
|
|
|
2
2
|
/********** plot chart **********/
|
|
3
3
|
import { default as Area, type AreaProps } from './Area';
|
|
4
4
|
import { default as Bar, type BarProps } from './Bar';
|
|
5
|
+
import { default as Boxplot, type BoxplotProps } from './Boxplot';
|
|
5
6
|
import { default as Column, type ColumnProps } from './Column';
|
|
6
7
|
import { default as DualAxes, type DualAxesProps } from './DualAxes';
|
|
8
|
+
import { default as Funnel, type FunnelProps } from './Funnel';
|
|
7
9
|
import { default as Histogram, type HistogramProps } from './Histogram';
|
|
8
10
|
import { default as Line, type LineProps } from './Line';
|
|
11
|
+
import { default as Liquid, type LiquidProps } from './Liquid';
|
|
9
12
|
import { default as Pie, type PieProps } from './Pie';
|
|
10
13
|
import { default as Radar, type RadarProps } from './Radar';
|
|
14
|
+
import { default as Sankey, type SankeyProps } from './Sankey';
|
|
11
15
|
import { default as Scatter, type ScatterProps } from './Scatter';
|
|
12
16
|
import { default as Treemap, type TreemapProps } from './Treemap';
|
|
17
|
+
import { default as Venn, type VennProps } from './Venn';
|
|
18
|
+
import { default as Violin, type ViolinProps } from './Violin';
|
|
13
19
|
import { default as WordCloud, type WordCloudProps } from './WordCloud';
|
|
14
20
|
/********** graph chart **********/
|
|
15
21
|
import { default as FishboneDiagram, type FishboneDiagramProps } from './FishboneDiagram';
|
|
16
22
|
import { default as FlowDiagram, type FlowDiagramProps } from './FlowDiagram';
|
|
17
23
|
import { default as MindMap, type MindMapProps } from './MindMap';
|
|
18
24
|
import { default as NetworkGraph, type NetworkGraphProps } from './NetworkGraph';
|
|
19
|
-
|
|
20
|
-
|
|
25
|
+
import { default as OrganizationChart, type OrganizationChartProps } from './OrganizationChart';
|
|
26
|
+
import { default as IndentedTree, type IndentedTreeProps } from './IndentedTree';
|
|
21
27
|
/********** map chart **********/
|
|
22
28
|
export { Map, type MapProps } from './export-map';
|
|
23
29
|
import { PinMap, type PinMapProps, HeatMap, type HeatMapProps, PathMap, type PathMapProps } from './export-map';
|
|
24
30
|
/********** NTV **********/
|
|
31
|
+
import { default as Table, type TableProps } from './Table';
|
|
25
32
|
export { VisText, type VisTextProps } from './Text';
|
|
26
|
-
export { Area, Bar, Column, DualAxes, FishboneDiagram, FlowDiagram, HeatMap, Histogram, Line, MindMap, NetworkGraph, PathMap, Pie, PinMap, Radar, Scatter, Treemap, WordCloud, type AreaProps, type BarProps, type ColumnProps, type DualAxesProps, type FishboneDiagramProps, type FlowDiagramProps, type HeatMapProps, type HistogramProps, type LineProps, type MindMapProps, type NetworkGraphProps, type PathMapProps, type PieProps, type PinMapProps, type RadarProps, type ScatterProps, type TreemapProps, type WordCloudProps, };
|
|
33
|
+
export { Area, Bar, Boxplot, Column, DualAxes, FishboneDiagram, FlowDiagram, Funnel, HeatMap, Histogram, IndentedTree, Line, Liquid, MindMap, NetworkGraph, OrganizationChart, PathMap, Pie, PinMap, Radar, Sankey, Scatter, Treemap, Venn, Violin, Table, WordCloud, type AreaProps, type BarProps, type BoxplotProps, type ColumnProps, type DualAxesProps, type FishboneDiagramProps, type FlowDiagramProps, type FunnelProps, type HeatMapProps, type HistogramProps, type IndentedTreeProps, type LineProps, type LiquidProps, type MindMapProps, type NetworkGraphProps, type OrganizationChartProps, type PathMapProps, type PieProps, type PinMapProps, type RadarProps, type SankeyProps, type ScatterProps, type TreemapProps, type VennProps, type ViolinProps, type TableProps, type WordCloudProps, };
|
|
27
34
|
export declare const DEFAULT_CHART_COMPONENTS: Record<string, React.FC<any>>;
|
package/dist/esm/export.js
CHANGED
|
@@ -9,14 +9,20 @@ import { ChartType } from "./types";
|
|
|
9
9
|
/********** plot chart **********/
|
|
10
10
|
import { default as Area } from "./Area";
|
|
11
11
|
import { default as Bar } from "./Bar";
|
|
12
|
+
import { default as Boxplot } from "./Boxplot";
|
|
12
13
|
import { default as Column } from "./Column";
|
|
13
14
|
import { default as DualAxes } from "./DualAxes";
|
|
15
|
+
import { default as Funnel } from "./Funnel";
|
|
14
16
|
import { default as Histogram } from "./Histogram";
|
|
15
17
|
import { default as Line } from "./Line";
|
|
18
|
+
import { default as Liquid } from "./Liquid";
|
|
16
19
|
import { default as Pie } from "./Pie";
|
|
17
20
|
import { default as Radar } from "./Radar";
|
|
21
|
+
import { default as Sankey } from "./Sankey";
|
|
18
22
|
import { default as Scatter } from "./Scatter";
|
|
19
23
|
import { default as Treemap } from "./Treemap";
|
|
24
|
+
import { default as Venn } from "./Venn";
|
|
25
|
+
import { default as Violin } from "./Violin";
|
|
20
26
|
import { default as WordCloud } from "./WordCloud";
|
|
21
27
|
|
|
22
28
|
/********** graph chart **********/
|
|
@@ -24,14 +30,15 @@ import { default as FishboneDiagram } from "./FishboneDiagram";
|
|
|
24
30
|
import { default as FlowDiagram } from "./FlowDiagram";
|
|
25
31
|
import { default as MindMap } from "./MindMap";
|
|
26
32
|
import { default as NetworkGraph } from "./NetworkGraph";
|
|
27
|
-
|
|
28
|
-
|
|
33
|
+
import { default as OrganizationChart } from "./OrganizationChart";
|
|
34
|
+
import { default as IndentedTree } from "./IndentedTree";
|
|
29
35
|
|
|
30
36
|
/********** map chart **********/
|
|
31
37
|
export { Map } from "./export-map";
|
|
32
38
|
import { PinMap, HeatMap, PathMap } from "./export-map";
|
|
33
39
|
|
|
34
40
|
/********** NTV **********/
|
|
41
|
+
import { default as Table } from "./Table";
|
|
35
42
|
export { VisText } from "./Text";
|
|
36
|
-
export { Area, Bar, Column, DualAxes, FishboneDiagram, FlowDiagram, HeatMap, Histogram, Line, MindMap, NetworkGraph, PathMap, Pie, PinMap, Radar, Scatter, Treemap, WordCloud };
|
|
37
|
-
export var DEFAULT_CHART_COMPONENTS = (_DEFAULT_CHART_COMPON = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_DEFAULT_CHART_COMPON, ChartType.
|
|
43
|
+
export { Area, Bar, Boxplot, Column, DualAxes, FishboneDiagram, FlowDiagram, Funnel, HeatMap, Histogram, IndentedTree, Line, Liquid, MindMap, NetworkGraph, OrganizationChart, PathMap, Pie, PinMap, Radar, Sankey, Scatter, Treemap, Venn, Violin, Table, WordCloud };
|
|
44
|
+
export var DEFAULT_CHART_COMPONENTS = (_DEFAULT_CHART_COMPON = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_DEFAULT_CHART_COMPON, ChartType.Area, Area), ChartType.Bar, Bar), ChartType.Boxplot, Boxplot), ChartType.Column, Column), ChartType.DualAxes, DualAxes), ChartType.FishboneDiagram, FishboneDiagram), ChartType.FlowDiagram, FlowDiagram), ChartType.Funnel, Funnel), ChartType.HeatMap, HeatMap), ChartType.Histogram, Histogram), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_DEFAULT_CHART_COMPON, ChartType.IndentedTree, IndentedTree), ChartType.Line, Line), ChartType.Liquid, Liquid), ChartType.MindMap, MindMap), ChartType.NetworkGraph, NetworkGraph), ChartType.Pie, Pie), ChartType.PinMap, PinMap), ChartType.Radar, Radar), ChartType.Sankey, Sankey), ChartType.Scatter, Scatter), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_DEFAULT_CHART_COMPON, ChartType.Treemap, Treemap), ChartType.Venn, Venn), ChartType.Violin, Violin), ChartType.Table, Table), ChartType.WordCloud, WordCloud), ChartType.OrganizationChart, OrganizationChart));
|
|
@@ -3,27 +3,34 @@ import type { CSSProperties, ReactNode } from 'react';
|
|
|
3
3
|
import type { Map } from './map';
|
|
4
4
|
export type { LarkMapProps };
|
|
5
5
|
export declare enum ChartType {
|
|
6
|
-
Pie = "pie",
|
|
7
|
-
Column = "column",
|
|
8
|
-
Line = "line",
|
|
9
6
|
Area = "area",
|
|
10
|
-
Scatter = "scatter",
|
|
11
|
-
Histogram = "histogram",
|
|
12
|
-
Treemap = "treemap",
|
|
13
7
|
Bar = "bar",
|
|
14
|
-
|
|
8
|
+
Boxplot = "boxplot",
|
|
9
|
+
Column = "column",
|
|
15
10
|
DualAxes = "dual-axes",
|
|
16
|
-
Radar = "radar",
|
|
17
|
-
PinMap = "pin-map",
|
|
18
|
-
PathMap = "path-map",
|
|
19
|
-
HeatMap = "heat-map",
|
|
20
|
-
MindMap = "mind-map",
|
|
21
11
|
FishboneDiagram = "fishbone-diagram",
|
|
22
12
|
FlowDiagram = "flow-diagram",
|
|
13
|
+
Funnel = "funnel",
|
|
14
|
+
HeatMap = "heat-map",
|
|
15
|
+
Histogram = "histogram",
|
|
23
16
|
IndentedTree = "indented-tree",
|
|
17
|
+
Line = "line",
|
|
18
|
+
Liquid = "liquid",
|
|
19
|
+
MindMap = "mind-map",
|
|
24
20
|
NetworkGraph = "network-graph",
|
|
25
21
|
OrganizationChart = "organization-chart",
|
|
26
|
-
|
|
22
|
+
PathMap = "path-map",
|
|
23
|
+
Pie = "pie",
|
|
24
|
+
PinMap = "pin-map",
|
|
25
|
+
Radar = "radar",
|
|
26
|
+
Sankey = "sankey",
|
|
27
|
+
Scatter = "scatter",
|
|
28
|
+
Treemap = "treemap",
|
|
29
|
+
Venn = "venn",
|
|
30
|
+
Violin = "violin",
|
|
31
|
+
Table = "table",
|
|
32
|
+
VisText = "vis-text",
|
|
33
|
+
WordCloud = "word-cloud"
|
|
27
34
|
}
|
|
28
35
|
export type Charts = keyof typeof ChartType;
|
|
29
36
|
export interface BaseChartProps {
|
package/dist/esm/types/chart.js
CHANGED
|
@@ -1,24 +1,31 @@
|
|
|
1
1
|
export var ChartType = /*#__PURE__*/function (ChartType) {
|
|
2
|
-
ChartType["Pie"] = "pie";
|
|
3
|
-
ChartType["Column"] = "column";
|
|
4
|
-
ChartType["Line"] = "line";
|
|
5
2
|
ChartType["Area"] = "area";
|
|
6
|
-
ChartType["Scatter"] = "scatter";
|
|
7
|
-
ChartType["Histogram"] = "histogram";
|
|
8
|
-
ChartType["Treemap"] = "treemap";
|
|
9
3
|
ChartType["Bar"] = "bar";
|
|
10
|
-
ChartType["
|
|
4
|
+
ChartType["Boxplot"] = "boxplot";
|
|
5
|
+
ChartType["Column"] = "column";
|
|
11
6
|
ChartType["DualAxes"] = "dual-axes";
|
|
12
|
-
ChartType["Radar"] = "radar";
|
|
13
|
-
ChartType["PinMap"] = "pin-map";
|
|
14
|
-
ChartType["PathMap"] = "path-map";
|
|
15
|
-
ChartType["HeatMap"] = "heat-map";
|
|
16
|
-
ChartType["MindMap"] = "mind-map";
|
|
17
7
|
ChartType["FishboneDiagram"] = "fishbone-diagram";
|
|
18
8
|
ChartType["FlowDiagram"] = "flow-diagram";
|
|
9
|
+
ChartType["Funnel"] = "funnel";
|
|
10
|
+
ChartType["HeatMap"] = "heat-map";
|
|
11
|
+
ChartType["Histogram"] = "histogram";
|
|
19
12
|
ChartType["IndentedTree"] = "indented-tree";
|
|
13
|
+
ChartType["Line"] = "line";
|
|
14
|
+
ChartType["Liquid"] = "liquid";
|
|
15
|
+
ChartType["MindMap"] = "mind-map";
|
|
20
16
|
ChartType["NetworkGraph"] = "network-graph";
|
|
21
17
|
ChartType["OrganizationChart"] = "organization-chart";
|
|
18
|
+
ChartType["PathMap"] = "path-map";
|
|
19
|
+
ChartType["Pie"] = "pie";
|
|
20
|
+
ChartType["PinMap"] = "pin-map";
|
|
21
|
+
ChartType["Radar"] = "radar";
|
|
22
|
+
ChartType["Sankey"] = "sankey";
|
|
23
|
+
ChartType["Scatter"] = "scatter";
|
|
24
|
+
ChartType["Treemap"] = "treemap";
|
|
25
|
+
ChartType["Venn"] = "venn";
|
|
26
|
+
ChartType["Violin"] = "violin";
|
|
27
|
+
ChartType["Table"] = "table";
|
|
22
28
|
ChartType["VisText"] = "vis-text";
|
|
29
|
+
ChartType["WordCloud"] = "word-cloud";
|
|
23
30
|
return ChartType;
|
|
24
31
|
}({});
|
package/dist/esm/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "0.5.
|
|
1
|
+
declare const _default: "0.5.8";
|
|
2
2
|
export default _default;
|
package/dist/esm/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default '0.5.
|
|
1
|
+
export default '0.5.8';
|