@gravity-ui/chartkit 4.0.0-beta.3 → 4.0.0-beta.5
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/build/plugins/d3/index.d.ts +1 -0
- package/build/plugins/d3/index.js +1 -0
- package/build/plugins/d3/renderer/D3Widget.d.ts +1 -1
- package/build/plugins/highcharts/index.d.ts +1 -0
- package/build/plugins/highcharts/index.js +1 -0
- package/build/plugins/highcharts/renderer/HighchartsWidget.d.ts +2 -2
- package/build/plugins/highcharts/renderer/components/HighchartsComponent.js +0 -2
- package/build/plugins/highcharts/renderer/components/HighchartsReact.js +1 -0
- package/build/plugins/indicator/index.d.ts +1 -0
- package/build/plugins/indicator/index.js +1 -0
- package/build/plugins/indicator/renderer/IndicatorWidget.d.ts +1 -1
- package/build/plugins/yagr/index.d.ts +1 -0
- package/build/plugins/yagr/index.js +1 -0
- package/build/types/index.d.ts +1 -0
- package/build/types/index.js +1 -1
- package/package.json +30 -4
- package/build/plugins/highcharts/mocks/area-range.d.ts +0 -2
- package/build/plugins/highcharts/mocks/area-range.js +0 -61
- package/build/plugins/highcharts/mocks/area-stacked.d.ts +0 -2
- package/build/plugins/highcharts/mocks/area-stacked.js +0 -256
- package/build/plugins/highcharts/mocks/column-hor-stacked.d.ts +0 -2
- package/build/plugins/highcharts/mocks/column-hor-stacked.js +0 -199
- package/build/plugins/highcharts/mocks/column-ver-stacked.d.ts +0 -2
- package/build/plugins/highcharts/mocks/column-ver-stacked.js +0 -197
- package/build/plugins/highcharts/mocks/column-ver.d.ts +0 -2
- package/build/plugins/highcharts/mocks/column-ver.js +0 -73
- package/build/plugins/highcharts/mocks/combo-chart-with-same-legend-titles.d.ts +0 -2
- package/build/plugins/highcharts/mocks/combo-chart-with-same-legend-titles.js +0 -444
- package/build/plugins/highcharts/mocks/complex.d.ts +0 -2
- package/build/plugins/highcharts/mocks/complex.js +0 -323
- package/build/plugins/highcharts/mocks/custom-error-render.d.ts +0 -3
- package/build/plugins/highcharts/mocks/custom-error-render.js +0 -69
- package/build/plugins/highcharts/mocks/holidays.d.ts +0 -7070
- package/build/plugins/highcharts/mocks/holidays.js +0 -7065
- package/build/plugins/highcharts/mocks/line.d.ts +0 -2
- package/build/plugins/highcharts/mocks/line.js +0 -134
- package/build/plugins/highcharts/mocks/no-data.d.ts +0 -3
- package/build/plugins/highcharts/mocks/no-data.js +0 -69
- package/build/plugins/highcharts/mocks/pie-with-totals.d.ts +0 -2
- package/build/plugins/highcharts/mocks/pie-with-totals.js +0 -43
- package/build/plugins/highcharts/mocks/pie.d.ts +0 -2
- package/build/plugins/highcharts/mocks/pie.js +0 -37
- package/build/plugins/highcharts/renderer/helpers/init-highcharts-modules.d.ts +0 -1
- package/build/plugins/highcharts/renderer/helpers/init-highcharts-modules.js +0 -49
- package/build/plugins/index.d.ts +0 -7
- package/build/plugins/index.js +0 -6
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
export const data = {
|
|
2
|
-
data: {
|
|
3
|
-
graphs: [
|
|
4
|
-
{
|
|
5
|
-
title: 'Profit',
|
|
6
|
-
tooltip: {
|
|
7
|
-
chartKitFormatting: true,
|
|
8
|
-
chartKitPrecision: 2,
|
|
9
|
-
},
|
|
10
|
-
data: [
|
|
11
|
-
{
|
|
12
|
-
y: 18451.2728,
|
|
13
|
-
dataLabels: {
|
|
14
|
-
enabled: false,
|
|
15
|
-
},
|
|
16
|
-
label: '',
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
y: 122490.80080000011,
|
|
20
|
-
dataLabels: {
|
|
21
|
-
enabled: false,
|
|
22
|
-
},
|
|
23
|
-
label: '',
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
y: 145454.9480999999,
|
|
27
|
-
dataLabels: {
|
|
28
|
-
enabled: false,
|
|
29
|
-
},
|
|
30
|
-
label: '',
|
|
31
|
-
},
|
|
32
|
-
],
|
|
33
|
-
legendTitle: 'Profit',
|
|
34
|
-
colorKey: 'Profit',
|
|
35
|
-
colorGuid: null,
|
|
36
|
-
connectNulls: false,
|
|
37
|
-
yAxis: 0,
|
|
38
|
-
colorValue: 'Profit',
|
|
39
|
-
color: '#4DA2F1',
|
|
40
|
-
dashStyle: 'Solid',
|
|
41
|
-
name: 'Profit',
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
title: 'Sales',
|
|
45
|
-
tooltip: {
|
|
46
|
-
chartKitFormatting: true,
|
|
47
|
-
chartKitPrecision: 2,
|
|
48
|
-
},
|
|
49
|
-
data: [
|
|
50
|
-
{
|
|
51
|
-
y: 741999.7952999998,
|
|
52
|
-
dataLabels: {
|
|
53
|
-
enabled: false,
|
|
54
|
-
},
|
|
55
|
-
label: '',
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
y: 719047.0320000029,
|
|
59
|
-
dataLabels: {
|
|
60
|
-
enabled: false,
|
|
61
|
-
},
|
|
62
|
-
label: '',
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
y: 836154.0329999966,
|
|
66
|
-
dataLabels: {
|
|
67
|
-
enabled: false,
|
|
68
|
-
},
|
|
69
|
-
label: '',
|
|
70
|
-
},
|
|
71
|
-
],
|
|
72
|
-
legendTitle: 'Sales',
|
|
73
|
-
colorKey: 'Sales',
|
|
74
|
-
colorGuid: null,
|
|
75
|
-
connectNulls: false,
|
|
76
|
-
yAxis: 0,
|
|
77
|
-
colorValue: 'Sales',
|
|
78
|
-
color: '#FF3D64',
|
|
79
|
-
dashStyle: 'Solid',
|
|
80
|
-
name: 'Sales',
|
|
81
|
-
},
|
|
82
|
-
],
|
|
83
|
-
categories: ['Furniture', 'Office Supplies', 'Technology'],
|
|
84
|
-
},
|
|
85
|
-
config: {
|
|
86
|
-
precision: 2,
|
|
87
|
-
hideHolidaysBands: true,
|
|
88
|
-
enableSum: true,
|
|
89
|
-
hideHolidays: false,
|
|
90
|
-
normalizeDiv: false,
|
|
91
|
-
normalizeSub: false,
|
|
92
|
-
manageTooltipConfig: (config) => {
|
|
93
|
-
config.lines.forEach((line, index) => {
|
|
94
|
-
line.commentText = `Some comment ${index + 1}`;
|
|
95
|
-
});
|
|
96
|
-
return config;
|
|
97
|
-
},
|
|
98
|
-
},
|
|
99
|
-
libraryConfig: {
|
|
100
|
-
chart: {
|
|
101
|
-
type: 'line',
|
|
102
|
-
zoomType: 'xy',
|
|
103
|
-
},
|
|
104
|
-
legend: {
|
|
105
|
-
symbolWidth: 38,
|
|
106
|
-
},
|
|
107
|
-
xAxis: {
|
|
108
|
-
endOnTick: false,
|
|
109
|
-
},
|
|
110
|
-
yAxis: {
|
|
111
|
-
opposite: false,
|
|
112
|
-
labels: {
|
|
113
|
-
y: 3,
|
|
114
|
-
},
|
|
115
|
-
type: 'linear',
|
|
116
|
-
},
|
|
117
|
-
tooltip: {},
|
|
118
|
-
plotOptions: {
|
|
119
|
-
series: {
|
|
120
|
-
dataGrouping: {
|
|
121
|
-
enabled: false,
|
|
122
|
-
},
|
|
123
|
-
dataLabels: {
|
|
124
|
-
allowOverlap: false,
|
|
125
|
-
},
|
|
126
|
-
},
|
|
127
|
-
},
|
|
128
|
-
axesFormatting: {
|
|
129
|
-
xAxis: [],
|
|
130
|
-
yAxis: [],
|
|
131
|
-
},
|
|
132
|
-
enableSum: true,
|
|
133
|
-
},
|
|
134
|
-
};
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
const baseData = {
|
|
2
|
-
config: {
|
|
3
|
-
hideHolidays: false,
|
|
4
|
-
normalizeDiv: false,
|
|
5
|
-
normalizeSub: false,
|
|
6
|
-
},
|
|
7
|
-
libraryConfig: {
|
|
8
|
-
chart: {
|
|
9
|
-
type: 'arearange',
|
|
10
|
-
},
|
|
11
|
-
title: {
|
|
12
|
-
text: 'Temperature variation by day',
|
|
13
|
-
},
|
|
14
|
-
xAxis: {
|
|
15
|
-
type: 'datetime',
|
|
16
|
-
},
|
|
17
|
-
tooltip: {
|
|
18
|
-
valueSuffix: '°C',
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
};
|
|
22
|
-
export const noData = Object.assign(Object.assign({}, baseData), { data: {
|
|
23
|
-
graphs: [
|
|
24
|
-
{
|
|
25
|
-
name: 'Temperatures',
|
|
26
|
-
data: [],
|
|
27
|
-
},
|
|
28
|
-
],
|
|
29
|
-
} });
|
|
30
|
-
export const filledData = Object.assign(Object.assign({}, baseData), { data: {
|
|
31
|
-
graphs: [
|
|
32
|
-
{
|
|
33
|
-
name: 'Temperatures',
|
|
34
|
-
data: [
|
|
35
|
-
[1246406400000, 10.4, 17],
|
|
36
|
-
[1246492800000, 10.3, 28.6],
|
|
37
|
-
[1246579200000, 14.8, 18.4],
|
|
38
|
-
[1246665600000, 11.5, 25.8],
|
|
39
|
-
[1246752000000, 11.1, 24.4],
|
|
40
|
-
[1246838400000, 17.7, 19.6],
|
|
41
|
-
[1246924800000, 15.1, 18.1],
|
|
42
|
-
[1247011200000, 15.1, 27.2],
|
|
43
|
-
[1247097600000, 17, 17.5],
|
|
44
|
-
[1247184000000, 12.6, 18.5],
|
|
45
|
-
[1247270400000, 12.2, 26],
|
|
46
|
-
[1247356800000, 15.9, 22.9],
|
|
47
|
-
[1247443200000, 17.1, 18.1],
|
|
48
|
-
[1247529600000, 13.3, 24.2],
|
|
49
|
-
[1247616000000, 17, 28.1],
|
|
50
|
-
[1247702400000, 16.2, 22.6],
|
|
51
|
-
[1247788800000, 10.6, 19],
|
|
52
|
-
[1247875200000, 11.3, 19.7],
|
|
53
|
-
[1247961600000, 14.1, 24.6],
|
|
54
|
-
[1248048000000, 14.2, 22.5],
|
|
55
|
-
[1248134400000, 14.1, 28.5],
|
|
56
|
-
[1248220800000, 14, 27],
|
|
57
|
-
[1248307200000, 10.2, 20.6],
|
|
58
|
-
[1248393600000, 13.1, 29.9],
|
|
59
|
-
[1248480000000, 13.7, 21.1],
|
|
60
|
-
[1248566400000, 15, 28.6],
|
|
61
|
-
[1248652800000, 12, 17.5],
|
|
62
|
-
[1248739200000, 17.8, 24.4],
|
|
63
|
-
[1248825600000, 11.7, 25.9],
|
|
64
|
-
[1248912000000, 13.6, 25.6],
|
|
65
|
-
[1248998400000, 17.3, 22.2],
|
|
66
|
-
],
|
|
67
|
-
},
|
|
68
|
-
],
|
|
69
|
-
} });
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
export const data = {
|
|
2
|
-
data: {
|
|
3
|
-
graphs: [
|
|
4
|
-
{
|
|
5
|
-
name: 'Number of requests',
|
|
6
|
-
tooltip: {
|
|
7
|
-
chartKitFormatting: true,
|
|
8
|
-
chartKitPrecision: 0,
|
|
9
|
-
},
|
|
10
|
-
dataLabels: {
|
|
11
|
-
format: null,
|
|
12
|
-
chartKitFormatting: true,
|
|
13
|
-
chartKitPrecision: 0,
|
|
14
|
-
chartKitPrefix: '',
|
|
15
|
-
chartKitPostfix: '',
|
|
16
|
-
chartKitLabelMode: 'absolute',
|
|
17
|
-
chartKitFormat: 'number',
|
|
18
|
-
chartKitShowRankDelimiter: true,
|
|
19
|
-
},
|
|
20
|
-
data: [
|
|
21
|
-
{ name: 'Furniture', y: 14344, label: 14344 },
|
|
22
|
-
{ name: 'Domestic chemistry', y: 14244, label: 14244 },
|
|
23
|
-
{ name: 'Household goods', y: 14181, label: 14181 },
|
|
24
|
-
],
|
|
25
|
-
},
|
|
26
|
-
],
|
|
27
|
-
categories: ['Furniture', 'Domestic chemistry', 'Household goods'],
|
|
28
|
-
totals: 42769,
|
|
29
|
-
},
|
|
30
|
-
config: {
|
|
31
|
-
showPercentInTooltip: true,
|
|
32
|
-
},
|
|
33
|
-
libraryConfig: {
|
|
34
|
-
chart: {
|
|
35
|
-
type: 'pie',
|
|
36
|
-
},
|
|
37
|
-
plotOptions: {
|
|
38
|
-
pie: {
|
|
39
|
-
innerSize: '50%',
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
export const data = {
|
|
2
|
-
data: {
|
|
3
|
-
graphs: [
|
|
4
|
-
{
|
|
5
|
-
name: 'Number of requests',
|
|
6
|
-
tooltip: {
|
|
7
|
-
chartKitFormatting: true,
|
|
8
|
-
chartKitPrecision: 0,
|
|
9
|
-
},
|
|
10
|
-
dataLabels: {
|
|
11
|
-
format: null,
|
|
12
|
-
chartKitFormatting: true,
|
|
13
|
-
chartKitPrecision: 0,
|
|
14
|
-
chartKitPrefix: '',
|
|
15
|
-
chartKitPostfix: '',
|
|
16
|
-
chartKitLabelMode: 'absolute',
|
|
17
|
-
chartKitFormat: 'number',
|
|
18
|
-
chartKitShowRankDelimiter: true,
|
|
19
|
-
},
|
|
20
|
-
data: [
|
|
21
|
-
{ name: 'Furniture', y: 14344, label: 14344 },
|
|
22
|
-
{ name: 'Domestic chemistry', y: 14244, label: 14244 },
|
|
23
|
-
{ name: 'Household goods', y: 14181, label: 14181 },
|
|
24
|
-
],
|
|
25
|
-
},
|
|
26
|
-
],
|
|
27
|
-
categories: ['Furniture', 'Domestic chemistry', 'Household goods'],
|
|
28
|
-
},
|
|
29
|
-
config: {
|
|
30
|
-
showPercentInTooltip: true,
|
|
31
|
-
},
|
|
32
|
-
libraryConfig: {
|
|
33
|
-
chart: {
|
|
34
|
-
type: 'pie',
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function initHighchartsModules(): void;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import Highcharts from 'highcharts';
|
|
2
|
-
import highchartsMore from 'highcharts/highcharts-more';
|
|
3
|
-
import stock from 'highcharts/modules/stock';
|
|
4
|
-
import solidGauge from 'highcharts/modules/solid-gauge';
|
|
5
|
-
import funnel from 'highcharts/modules/funnel';
|
|
6
|
-
import histogramBellcurve from 'highcharts/modules/histogram-bellcurve';
|
|
7
|
-
import sankey from 'highcharts/modules/sankey';
|
|
8
|
-
import heatmap from 'highcharts/modules/heatmap';
|
|
9
|
-
import treemap from 'highcharts/modules/treemap';
|
|
10
|
-
import variwide from 'highcharts/modules/variwide';
|
|
11
|
-
import streamgraph from 'highcharts/modules/streamgraph';
|
|
12
|
-
import drilldown from 'highcharts/modules/drilldown';
|
|
13
|
-
import parallelCoordinates from 'highcharts/modules/parallel-coordinates';
|
|
14
|
-
import patternFill from 'highcharts/modules/pattern-fill';
|
|
15
|
-
import wordcloud from 'highcharts/modules/wordcloud';
|
|
16
|
-
import xrange from 'highcharts/modules/xrange';
|
|
17
|
-
import networkgraph from 'highcharts/modules/networkgraph';
|
|
18
|
-
import timeline from 'highcharts/modules/timeline';
|
|
19
|
-
import bullet from 'highcharts/modules/bullet';
|
|
20
|
-
import annotations from 'highcharts/modules/annotations';
|
|
21
|
-
import seriesLabel from 'highcharts/modules/series-label';
|
|
22
|
-
import indicators from 'highcharts/indicators/indicators';
|
|
23
|
-
import ema from 'highcharts/indicators/ema';
|
|
24
|
-
import venn from 'highcharts/modules/venn';
|
|
25
|
-
export function initHighchartsModules() {
|
|
26
|
-
highchartsMore(Highcharts);
|
|
27
|
-
stock(Highcharts);
|
|
28
|
-
solidGauge(Highcharts);
|
|
29
|
-
funnel(Highcharts);
|
|
30
|
-
histogramBellcurve(Highcharts);
|
|
31
|
-
sankey(Highcharts);
|
|
32
|
-
heatmap(Highcharts);
|
|
33
|
-
treemap(Highcharts);
|
|
34
|
-
variwide(Highcharts);
|
|
35
|
-
streamgraph(Highcharts);
|
|
36
|
-
drilldown(Highcharts);
|
|
37
|
-
annotations(Highcharts);
|
|
38
|
-
seriesLabel(Highcharts);
|
|
39
|
-
parallelCoordinates(Highcharts);
|
|
40
|
-
patternFill(Highcharts);
|
|
41
|
-
wordcloud(Highcharts);
|
|
42
|
-
xrange(Highcharts);
|
|
43
|
-
networkgraph(Highcharts);
|
|
44
|
-
timeline(Highcharts);
|
|
45
|
-
bullet(Highcharts);
|
|
46
|
-
venn(Highcharts);
|
|
47
|
-
indicators(Highcharts);
|
|
48
|
-
ema(Highcharts);
|
|
49
|
-
}
|
package/build/plugins/index.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { YagrPlugin } from './yagr';
|
|
2
|
-
export * from './yagr/types';
|
|
3
|
-
export { IndicatorPlugin } from './indicator';
|
|
4
|
-
export type { IndicatorWidgetData } from './indicator/types';
|
|
5
|
-
export { HighchartsPlugin } from './highcharts';
|
|
6
|
-
export * from './highcharts/types';
|
|
7
|
-
export { HighchartsReact } from './highcharts/renderer/components/HighchartsReact';
|
package/build/plugins/index.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export { YagrPlugin } from './yagr';
|
|
2
|
-
export * from './yagr/types';
|
|
3
|
-
export { IndicatorPlugin } from './indicator';
|
|
4
|
-
export { HighchartsPlugin } from './highcharts';
|
|
5
|
-
export * from './highcharts/types';
|
|
6
|
-
export { HighchartsReact } from './highcharts/renderer/components/HighchartsReact';
|