@gravity-ui/chartkit 4.0.0-beta.4 → 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.
Files changed (42) hide show
  1. package/build/plugins/d3/index.d.ts +1 -0
  2. package/build/plugins/d3/index.js +1 -0
  3. package/build/plugins/d3/renderer/D3Widget.d.ts +1 -1
  4. package/build/plugins/highcharts/index.d.ts +1 -0
  5. package/build/plugins/highcharts/index.js +1 -0
  6. package/build/plugins/highcharts/renderer/HighchartsWidget.d.ts +2 -2
  7. package/build/plugins/indicator/index.d.ts +1 -0
  8. package/build/plugins/indicator/index.js +1 -0
  9. package/build/plugins/indicator/renderer/IndicatorWidget.d.ts +1 -1
  10. package/build/plugins/yagr/index.d.ts +1 -0
  11. package/build/plugins/yagr/index.js +1 -0
  12. package/build/types/index.d.ts +1 -0
  13. package/build/types/index.js +1 -1
  14. package/package.json +30 -3
  15. package/build/plugins/highcharts/mocks/area-range.d.ts +0 -2
  16. package/build/plugins/highcharts/mocks/area-range.js +0 -61
  17. package/build/plugins/highcharts/mocks/area-stacked.d.ts +0 -2
  18. package/build/plugins/highcharts/mocks/area-stacked.js +0 -256
  19. package/build/plugins/highcharts/mocks/column-hor-stacked.d.ts +0 -2
  20. package/build/plugins/highcharts/mocks/column-hor-stacked.js +0 -199
  21. package/build/plugins/highcharts/mocks/column-ver-stacked.d.ts +0 -2
  22. package/build/plugins/highcharts/mocks/column-ver-stacked.js +0 -197
  23. package/build/plugins/highcharts/mocks/column-ver.d.ts +0 -2
  24. package/build/plugins/highcharts/mocks/column-ver.js +0 -73
  25. package/build/plugins/highcharts/mocks/combo-chart-with-same-legend-titles.d.ts +0 -2
  26. package/build/plugins/highcharts/mocks/combo-chart-with-same-legend-titles.js +0 -444
  27. package/build/plugins/highcharts/mocks/complex.d.ts +0 -2
  28. package/build/plugins/highcharts/mocks/complex.js +0 -323
  29. package/build/plugins/highcharts/mocks/custom-error-render.d.ts +0 -3
  30. package/build/plugins/highcharts/mocks/custom-error-render.js +0 -69
  31. package/build/plugins/highcharts/mocks/holidays.d.ts +0 -7070
  32. package/build/plugins/highcharts/mocks/holidays.js +0 -7065
  33. package/build/plugins/highcharts/mocks/line.d.ts +0 -2
  34. package/build/plugins/highcharts/mocks/line.js +0 -134
  35. package/build/plugins/highcharts/mocks/no-data.d.ts +0 -3
  36. package/build/plugins/highcharts/mocks/no-data.js +0 -69
  37. package/build/plugins/highcharts/mocks/pie-with-totals.d.ts +0 -2
  38. package/build/plugins/highcharts/mocks/pie-with-totals.js +0 -43
  39. package/build/plugins/highcharts/mocks/pie.d.ts +0 -2
  40. package/build/plugins/highcharts/mocks/pie.js +0 -37
  41. package/build/plugins/index.d.ts +0 -7
  42. package/build/plugins/index.js +0 -6
@@ -1,2 +0,0 @@
1
- import type { HighchartsWidgetData } from '../types';
2
- export declare const data: HighchartsWidgetData;
@@ -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,3 +0,0 @@
1
- import type { HighchartsWidgetData } from '../types';
2
- export declare const noData: HighchartsWidgetData;
3
- export declare const filledData: HighchartsWidgetData;
@@ -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,2 +0,0 @@
1
- import { HighchartsWidgetData } from '../types';
2
- export declare const data: HighchartsWidgetData;
@@ -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,2 +0,0 @@
1
- import { HighchartsWidgetData } from '../types';
2
- export declare const data: HighchartsWidgetData;
@@ -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,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';
@@ -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';