mdt-charts 1.9.7 → 1.9.11

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 (150) hide show
  1. package/README.md +190 -190
  2. package/dist/index.html +363 -48
  3. package/dist/listeners.89e1e272264c0e680de8.js +278 -0
  4. package/dist/main.f8b6bc6fee33cef1116c.js +228 -0
  5. package/dist/src_engine_engine_ts.ccee2a280374e0083541.js +759 -0
  6. package/dist/vendors-node_modules_chroma-js_chroma_js-node_modules_d3-array_src_max_js-node_modules_d3-arr-c3fc24.b32acc465b8557229277.js +1869 -0
  7. package/package.json +57 -57
  8. package/dist/bundle.js +0 -2
  9. package/dist/bundle.js.LICENSE.txt +0 -56
  10. package/lib/config/config.d.ts +0 -146
  11. package/lib/config/config.js +0 -1
  12. package/lib/designer/designerConfig.d.ts +0 -71
  13. package/lib/designer/designerConfig.js +0 -1
  14. package/lib/engine/block/block.d.ts +0 -35
  15. package/lib/engine/block/block.js +0 -110
  16. package/lib/engine/block/blockHelper.d.ts +0 -12
  17. package/lib/engine/block/blockHelper.js +0 -19
  18. package/lib/engine/contentManager.d.ts +0 -9
  19. package/lib/engine/contentManager.js +0 -29
  20. package/lib/engine/elementHighlighter/elementHighlighter.d.ts +0 -30
  21. package/lib/engine/elementHighlighter/elementHighlighter.js +0 -197
  22. package/lib/engine/elementHighlighter/selectHighlighter.d.ts +0 -11
  23. package/lib/engine/elementHighlighter/selectHighlighter.js +0 -95
  24. package/lib/engine/engine.d.ts +0 -20
  25. package/lib/engine/engine.js +0 -64
  26. package/lib/engine/features/aggregator/aggregator.d.ts +0 -22
  27. package/lib/engine/features/aggregator/aggregator.js +0 -95
  28. package/lib/engine/features/axis/axis.d.ts +0 -12
  29. package/lib/engine/features/axis/axis.js +0 -118
  30. package/lib/engine/features/axis/axisDomHelper.d.ts +0 -7
  31. package/lib/engine/features/axis/axisDomHelper.js +0 -24
  32. package/lib/engine/features/axis/axisHelper.d.ts +0 -9
  33. package/lib/engine/features/axis/axisHelper.js +0 -53
  34. package/lib/engine/features/axis/axisLabelDomHelper.d.ts +0 -17
  35. package/lib/engine/features/axis/axisLabelDomHelper.js +0 -143
  36. package/lib/engine/features/axis/axisLabelsEventManager.d.ts +0 -6
  37. package/lib/engine/features/axis/axisLabelsEventManager.js +0 -36
  38. package/lib/engine/features/embeddedLabels/embeddedLabels.d.ts +0 -23
  39. package/lib/engine/features/embeddedLabels/embeddedLabels.js +0 -147
  40. package/lib/engine/features/embeddedLabels/embeddedLabelsDomHelper.d.ts +0 -8
  41. package/lib/engine/features/embeddedLabels/embeddedLabelsDomHelper.js +0 -30
  42. package/lib/engine/features/embeddedLabels/embeddedLabelsHelper.d.ts +0 -27
  43. package/lib/engine/features/embeddedLabels/embeddedLabelsHelper.js +0 -65
  44. package/lib/engine/features/gridLine/gidLineHelper.d.ts +0 -13
  45. package/lib/engine/features/gridLine/gidLineHelper.js +0 -30
  46. package/lib/engine/features/gridLine/gridLine.d.ts +0 -11
  47. package/lib/engine/features/gridLine/gridLine.js +0 -67
  48. package/lib/engine/features/legend/legend.d.ts +0 -22
  49. package/lib/engine/features/legend/legend.js +0 -109
  50. package/lib/engine/features/legend/legendDomHelper.d.ts +0 -8
  51. package/lib/engine/features/legend/legendDomHelper.js +0 -48
  52. package/lib/engine/features/legend/legendEventsManager.d.ts +0 -12
  53. package/lib/engine/features/legend/legendEventsManager.js +0 -47
  54. package/lib/engine/features/legend/legendHelper.d.ts +0 -21
  55. package/lib/engine/features/legend/legendHelper.js +0 -97
  56. package/lib/engine/features/markDots/markDot.d.ts +0 -20
  57. package/lib/engine/features/markDots/markDot.js +0 -68
  58. package/lib/engine/features/markDots/markDotsHelper.d.ts +0 -6
  59. package/lib/engine/features/markDots/markDotsHelper.js +0 -16
  60. package/lib/engine/features/recordOverflowAlert/recordOverflowAlert.d.ts +0 -14
  61. package/lib/engine/features/recordOverflowAlert/recordOverflowAlert.js +0 -97
  62. package/lib/engine/features/scale/scale.d.ts +0 -16
  63. package/lib/engine/features/scale/scale.js +0 -74
  64. package/lib/engine/features/tipBox/tipBox.d.ts +0 -11
  65. package/lib/engine/features/tipBox/tipBox.js +0 -32
  66. package/lib/engine/features/tipBox/tipBoxHelper.d.ts +0 -16
  67. package/lib/engine/features/tipBox/tipBoxHelper.js +0 -48
  68. package/lib/engine/features/title/title.d.ts +0 -9
  69. package/lib/engine/features/title/title.js +0 -35
  70. package/lib/engine/features/tolltip/tooltip.d.ts +0 -19
  71. package/lib/engine/features/tolltip/tooltip.js +0 -180
  72. package/lib/engine/features/tolltip/tooltipComponentsManager.d.ts +0 -17
  73. package/lib/engine/features/tolltip/tooltipComponentsManager.js +0 -127
  74. package/lib/engine/features/tolltip/tooltipDomHelper.d.ts +0 -36
  75. package/lib/engine/features/tolltip/tooltipDomHelper.js +0 -114
  76. package/lib/engine/features/tolltip/tooltipHelper.d.ts +0 -16
  77. package/lib/engine/features/tolltip/tooltipHelper.js +0 -99
  78. package/lib/engine/filterManager/filterEventManager.d.ts +0 -33
  79. package/lib/engine/filterManager/filterEventManager.js +0 -127
  80. package/lib/engine/helpers/domHelper.d.ts +0 -30
  81. package/lib/engine/helpers/domHelper.js +0 -68
  82. package/lib/engine/helpers/helper.d.ts +0 -30
  83. package/lib/engine/helpers/helper.js +0 -89
  84. package/lib/engine/helpers/namesHelper.d.ts +0 -5
  85. package/lib/engine/helpers/namesHelper.js +0 -9
  86. package/lib/engine/intervalNotation/gantt.d.ts +0 -10
  87. package/lib/engine/intervalNotation/gantt.js +0 -62
  88. package/lib/engine/intervalNotation/intervalManager.d.ts +0 -7
  89. package/lib/engine/intervalNotation/intervalManager.js +0 -30
  90. package/lib/engine/polarNotation/donut/DonutHelper.d.ts +0 -15
  91. package/lib/engine/polarNotation/donut/DonutHelper.js +0 -58
  92. package/lib/engine/polarNotation/donut/donut.d.ts +0 -32
  93. package/lib/engine/polarNotation/donut/donut.js +0 -124
  94. package/lib/engine/polarNotation/polarManager.d.ts +0 -10
  95. package/lib/engine/polarNotation/polarManager.js +0 -55
  96. package/lib/engine/transitionManager.d.ts +0 -19
  97. package/lib/engine/transitionManager.js +0 -64
  98. package/lib/engine/twoDimensionalNotation/area/area.d.ts +0 -17
  99. package/lib/engine/twoDimensionalNotation/area/area.js +0 -131
  100. package/lib/engine/twoDimensionalNotation/area/areaHelper.d.ts +0 -9
  101. package/lib/engine/twoDimensionalNotation/area/areaHelper.js +0 -40
  102. package/lib/engine/twoDimensionalNotation/bar/bar.d.ts +0 -34
  103. package/lib/engine/twoDimensionalNotation/bar/bar.js +0 -216
  104. package/lib/engine/twoDimensionalNotation/bar/barHelper.d.ts +0 -24
  105. package/lib/engine/twoDimensionalNotation/bar/barHelper.js +0 -103
  106. package/lib/engine/twoDimensionalNotation/line/line.d.ts +0 -17
  107. package/lib/engine/twoDimensionalNotation/line/line.js +0 -132
  108. package/lib/engine/twoDimensionalNotation/line/lineHelper.d.ts +0 -8
  109. package/lib/engine/twoDimensionalNotation/line/lineHelper.js +0 -28
  110. package/lib/engine/twoDimensionalNotation/twoDimensionalManager.d.ts +0 -11
  111. package/lib/engine/twoDimensionalNotation/twoDimensionalManager.js +0 -101
  112. package/lib/engine/valueFormatter.d.ts +0 -6
  113. package/lib/engine/valueFormatter.js +0 -8
  114. package/lib/main.d.ts +0 -79
  115. package/lib/main.js +0 -85
  116. package/lib/model/chartStyleModel.d.ts +0 -16
  117. package/lib/model/chartStyleModel.js +0 -67
  118. package/lib/model/dataManagerModel.d.ts +0 -22
  119. package/lib/model/dataManagerModel.js +0 -137
  120. package/lib/model/featuresModel/axisModel.d.ts +0 -18
  121. package/lib/model/featuresModel/axisModel.js +0 -111
  122. package/lib/model/featuresModel/legendModel/legendCanvasModel.d.ts +0 -7
  123. package/lib/model/featuresModel/legendModel/legendCanvasModel.js +0 -86
  124. package/lib/model/featuresModel/legendModel/legendModel.d.ts +0 -13
  125. package/lib/model/featuresModel/legendModel/legendModel.js +0 -78
  126. package/lib/model/featuresModel/otherComponents.d.ts +0 -6
  127. package/lib/model/featuresModel/otherComponents.js +0 -12
  128. package/lib/model/featuresModel/scaleModel.d.ts +0 -17
  129. package/lib/model/featuresModel/scaleModel.js +0 -100
  130. package/lib/model/featuresModel/titleModel.d.ts +0 -4
  131. package/lib/model/featuresModel/titleModel.js +0 -14
  132. package/lib/model/featuresModel/tooltipModel.d.ts +0 -4
  133. package/lib/model/featuresModel/tooltipModel.js +0 -7
  134. package/lib/model/marginModel.d.ts +0 -19
  135. package/lib/model/marginModel.js +0 -126
  136. package/lib/model/model.d.ts +0 -220
  137. package/lib/model/model.js +0 -1
  138. package/lib/model/modelBuilder.d.ts +0 -16
  139. package/lib/model/modelBuilder.js +0 -128
  140. package/lib/model/modelHelper.d.ts +0 -7
  141. package/lib/model/modelHelper.js +0 -41
  142. package/lib/model/notations/intervalModel.d.ts +0 -8
  143. package/lib/model/notations/intervalModel.js +0 -93
  144. package/lib/model/notations/polarModel.d.ts +0 -7
  145. package/lib/model/notations/polarModel.js +0 -27
  146. package/lib/model/notations/twoDimensionalModel.d.ts +0 -19
  147. package/lib/model/notations/twoDimensionalModel.js +0 -85
  148. package/lib/style/charts-main.css +0 -240
  149. package/lib/style/charts-main.less +0 -240
  150. package/test.html +0 -196
@@ -1,27 +0,0 @@
1
- import { ChartStyleModel } from "../chartStyleModel";
2
- import { LegendModel } from "../featuresModel/legendModel/legendModel";
3
- export class PolarModel {
4
- static getOptions(config, data, margin, designerConfig) {
5
- const options = config.options;
6
- return {
7
- type: options.type,
8
- selectable: !!options.selectable,
9
- title: options.title,
10
- data: Object.assign({}, options.data),
11
- charts: this.getChartsModel(options.chart, data[options.data.dataSource].length, designerConfig.chartStyle),
12
- legend: LegendModel.getLegendModel(config.options.type, config.options.legend.show, config.canvas.size, margin),
13
- tooltip: options.tooltip
14
- };
15
- }
16
- static getChartsModel(chart, dataLength, chartStyleConfig) {
17
- const chartsModel = [];
18
- chartsModel.push({
19
- type: chart.type,
20
- data: Object.assign({}, chart.data),
21
- tooltip: chart.tooltip,
22
- cssClasses: ChartStyleModel.getCssClasses(0),
23
- style: ChartStyleModel.getChartStyle(dataLength, chartStyleConfig)
24
- });
25
- return chartsModel;
26
- }
27
- }
@@ -1,19 +0,0 @@
1
- import { ChartOrientation, MdtChartsConfig, MdtChartsDataSource, TwoDimensionalChart } from "../../config/config";
2
- import { DesignerConfig } from "../../designer/designerConfig";
3
- import { BlockMargin, DataScope, TwoDimensionalOptionsModel } from "../model";
4
- export declare class TwoDimensionalModel {
5
- static getOptions(config: MdtChartsConfig, designerConfig: DesignerConfig, margin: BlockMargin, dataScope: DataScope, data: MdtChartsDataSource): TwoDimensionalOptionsModel;
6
- static getChartsEmbeddedLabelsFlag(charts: TwoDimensionalChart[], chartOrientation: ChartOrientation): boolean;
7
- /**
8
- * Сортирует список чартов в порядке: area - bar - line.
9
- * Используется для того, чтобы при рендере графики с наибольшей площадью (area) не перекрывали графики с меньшей площадью (bar, line).
10
- * @param charts Чарты из конфига
11
- */
12
- static sortCharts(charts: TwoDimensionalChart[]): void;
13
- private static getChartsModel;
14
- private static findChartsWithEmbeddedKeyLabels;
15
- private static getEmbeddedLabelType;
16
- private static getAdditionalElements;
17
- private static getChartsByType;
18
- private static getChartsValueFieldsAmount;
19
- }
@@ -1,85 +0,0 @@
1
- import { ChartStyleModel } from "../chartStyleModel";
2
- import { AxisModel } from "../featuresModel/axisModel";
3
- import { LegendModel } from "../featuresModel/legendModel/legendModel";
4
- import { ScaleModel } from "../featuresModel/scaleModel";
5
- export class TwoDimensionalModel {
6
- static getOptions(config, designerConfig, margin, dataScope, data) {
7
- const options = config.options;
8
- return {
9
- legend: LegendModel.getLegendModel(config.options.type, config.options.legend.show, config.canvas.size, margin),
10
- title: options.title,
11
- selectable: !!options.selectable,
12
- orient: options.orientation,
13
- scale: {
14
- key: ScaleModel.getScaleKey(dataScope.allowableKeys, options.orientation, margin, config.canvas.size, options.charts, this.getChartsByType(options.charts, 'bar')),
15
- value: ScaleModel.getScaleLinear(options, data, margin, config.canvas.size)
16
- },
17
- axis: {
18
- key: AxisModel.getKeyAxis(options.charts, data, options.data, options.orientation, options.axis.key, designerConfig.canvas.axisLabel, margin, config.canvas.size, designerConfig.elementsOptions.tooltip),
19
- value: AxisModel.getValueAxis(options.orientation, options.axis.value, designerConfig.canvas.axisLabel, margin, config.canvas.size)
20
- },
21
- type: options.type,
22
- data: Object.assign({}, options.data),
23
- charts: this.getChartsModel(options.charts, options.orientation, designerConfig.chartStyle),
24
- additionalElements: this.getAdditionalElements(options),
25
- tooltip: options.tooltip
26
- };
27
- }
28
- static getChartsEmbeddedLabelsFlag(charts, chartOrientation) {
29
- // Если НЕ найден хотя бы один чарт, который сегментированный или хотя бы один НЕ бар чарт, то лейблы можно прятать
30
- return charts.findIndex(chart => chart.isSegmented || chart.type !== 'bar') === -1
31
- && chartOrientation === 'horizontal'
32
- && charts.length === this.findChartsWithEmbeddedKeyLabels(charts).length;
33
- }
34
- /**
35
- * Сортирует список чартов в порядке: area - bar - line.
36
- * Используется для того, чтобы при рендере графики с наибольшей площадью (area) не перекрывали графики с меньшей площадью (bar, line).
37
- * @param charts Чарты из конфига
38
- */
39
- static sortCharts(charts) {
40
- const chartOrder = ['area', 'bar', 'line'];
41
- charts.sort((chart1, chart2) => chartOrder.indexOf(chart1.type) - chartOrder.indexOf(chart2.type));
42
- }
43
- static getChartsModel(charts, chartOrientation, chartStyleConfig) {
44
- this.sortCharts(charts);
45
- const chartsModel = [];
46
- charts.forEach((chart, index) => {
47
- chartsModel.push({
48
- type: chart.type,
49
- isSegmented: chart.isSegmented,
50
- data: Object.assign({}, chart.data),
51
- tooltip: chart.tooltip,
52
- cssClasses: ChartStyleModel.getCssClasses(index),
53
- style: ChartStyleModel.get2DChartStyle(charts.length, chart.type, this.getChartsValueFieldsAmount(charts), index, chart.isSegmented, chartStyleConfig),
54
- embeddedLabels: this.getEmbeddedLabelType(chart, chartOrientation),
55
- markersOptions: chart.markers,
56
- index
57
- });
58
- });
59
- return chartsModel;
60
- }
61
- static findChartsWithEmbeddedKeyLabels(charts) {
62
- const chartsWithEmbeddedLabels = [];
63
- charts.forEach(chart => {
64
- if (chart.type === 'bar' && chart.embeddedLabels === 'key')
65
- chartsWithEmbeddedLabels.push(chart);
66
- });
67
- return chartsWithEmbeddedLabels;
68
- }
69
- static getEmbeddedLabelType(currentChart, chartOrientation) {
70
- if (chartOrientation === 'horizontal' && currentChart.type === 'bar')
71
- return currentChart.embeddedLabels;
72
- return 'none';
73
- }
74
- static getAdditionalElements(options) {
75
- return {
76
- gridLine: options.additionalElements.gridLine
77
- };
78
- }
79
- static getChartsByType(charts, type) {
80
- return charts.filter(chart => chart.type === type);
81
- }
82
- static getChartsValueFieldsAmount(charts) {
83
- return charts.map(chart => chart.data.valueFields.length);
84
- }
85
- }
@@ -1,240 +0,0 @@
1
- .wrapper {
2
- margin: 0 auto;
3
- position: relative;
4
- }
5
- .bar, .area, .donut {
6
- stroke: none;
7
- }
8
- .line {
9
- fill: none;
10
- stroke-width: 4;
11
- }
12
- .donut-block * {
13
- transition: filter 0.15s;
14
- }
15
- .arc {
16
- transition: opacity 0.3s;
17
- }
18
- .data-label {
19
- font-family: "Roboto";
20
- font-style: normal;
21
- font-weight: 300;
22
- font-size: 12px;
23
- line-height: 140.62%;
24
- color: #444444;
25
- cursor: default;
26
- }
27
- .bar-item {
28
- transition: opacity 0.3s, filter 0.3s;
29
- }
30
-
31
-
32
- /*========================================================================== Common classes */
33
- .charts-opacity-inactive {
34
- opacity: 0.6;
35
- }
36
-
37
- /* EXTENDED FOR SPECIFIC STYLES */
38
- .legend-item.charts-opacity-inactive {
39
- opacity: 0.45;
40
- }
41
-
42
-
43
- /*========================================================================== Legend */
44
- .legend-item {
45
- cursor: default;
46
- transition: opacity 0.1s;
47
- }
48
- .legend-item-inline {
49
- white-space: nowrap;
50
- }
51
- .legend-item-inline:not(:first-of-type) {
52
- margin-left: 20px;
53
- }
54
- .legend-item-row {
55
- display: flex;
56
- }
57
- .legend-item-row > span {
58
- display: block;
59
- }
60
- .mt-15 {
61
- margin-top: 15px;
62
- }
63
- .mt-10 {
64
- margin-top: 10px;
65
- }
66
-
67
- .legend-label {
68
- font-size: 12px;
69
- font-family: "Roboto", sans-serif;
70
- font-weight: 300;
71
- color: #444444;
72
- width: calc(100% - 19px);
73
- overflow: hidden;
74
- line-height: normal;
75
- }
76
- .legend-label-nowrap {
77
- white-space: nowrap;
78
- text-overflow: ellipsis;
79
- }
80
- .legend-circle {
81
- position: relative;
82
- bottom: -1px;
83
- display: inline-block;
84
- width: 11px;
85
- height: 11px;
86
- border-radius: 50%;
87
- margin-right: 8px;
88
- }
89
-
90
-
91
- /*========================================================================= Tooltip */
92
- .tooltip-block {
93
- pointer-events: none;
94
- z-index: 100;
95
- filter: drop-shadow(0px 4px 10px rgba(0, 0, 0, 0.1));
96
- }
97
- .tooltip-content {
98
- position: relative;
99
- pointer-events: none;
100
- font-family: "Roboto", sans-serif;
101
- line-height: 1;
102
- padding: 12px 16px;
103
- color: white;
104
- z-index: 102;
105
- max-width: 500px;
106
- background: rgba(0, 0, 0, 0.82);
107
- font-size: 11px;
108
- }
109
- .tooltip-arrow {
110
- width: 0;
111
- height: 0;
112
- border-style: solid;
113
- border-color: rgba(0, 0, 0, 0.82) transparent transparent transparent;
114
- }
115
-
116
- /* Tooltip Content */
117
- .tooltip-group {
118
- display: flex;
119
- }
120
- .tooltip-group:not(:first-of-type) {
121
- margin-top: 6px;
122
- }
123
- .tooltip-circle {
124
- position: relative;
125
- display: block;
126
- width: 9px;
127
- height: 9px;
128
- margin-right: 10px;
129
- border-radius: 50%;
130
- }
131
- .tooltip-text-item {
132
- font-family: "Roboto" sans-serif;
133
- font-style: normal;
134
- width: 100%;
135
- flex: 1;
136
- display: flex;
137
- font-weight: 400;
138
- }
139
-
140
- .tooltip-line {
141
- stroke: #AAA;
142
- stroke-width: 1px;
143
- stroke-linecap: round;
144
- }
145
- .tooltip-content .tooltip-head {
146
- font-size: 12px;
147
- margin-bottom: 10px;
148
- }
149
- .tooltip-content .tooltip-texts {
150
- width: 100%;
151
- }
152
-
153
- .tooltip-content .tooltip-text-item > span {
154
- display: block;
155
- }
156
- .tooltip-content .tooltip-text-item > span:first-of-type {
157
- flex: 1;
158
- }
159
- .tooltip-content .tooltip-text-item > span:last-of-type {
160
- flex: 0;
161
- }
162
- .tooltip-field-value {
163
- margin-left: 0.5rem;
164
- }
165
-
166
-
167
- /*========================================================================= Additional */
168
- .charts-axis .domain {
169
- stroke: #D2D2D2;
170
- }
171
- .charts-axis .tick line:first-of-type {
172
- stroke: #D2D2D2;
173
- }
174
-
175
- /* Aggregator */
176
- .aggregator-value, .aggregator-name {
177
- color: #000000;
178
- font-family: "Roboto", sans-serif;
179
- font-weight: bold;
180
- line-height: 1;
181
- }
182
- .aggregator-value {
183
- margin-top: 20px;
184
- pointer-events: auto;
185
- }
186
- .aggregator-name {
187
- margin-top: 10px;
188
- }
189
-
190
- /* Grid */
191
- .grid-line {
192
- stroke: #D2D2D2;
193
- stroke-dasharray: 3;
194
- }
195
-
196
- /* Record overflow */
197
- .record-overflow-alert {
198
- background-color: #FFFFFF;;
199
- padding: 5px 10px 5px;
200
- border: 1px solid #0F6698;
201
- box-sizing: border-box;
202
- border-radius: 100px;
203
- font-family: "Roboto", sans-serif;
204
- font-style: normal;
205
- font-weight: 500;
206
- font-size: 10px;
207
- line-height: 140.62%;
208
- color: #0F6698;
209
- }
210
- .record-overflow-alert .btn-close {
211
- border: none;
212
- background-color: transparent;
213
- cursor: pointer;
214
- font-size: 1.3rem;
215
- }
216
-
217
- /* Embedded label */
218
- .embedded-label {
219
- color: #444444;
220
- font-family: "Roboto", sans-serif;
221
- font-style: normal;
222
- font-weight: 500;
223
- font-size: 12px;
224
- line-height: 140.62%;
225
- }
226
-
227
- /* Title */
228
- .chart-title {
229
- font-family: "Roboto", sans-serif;
230
- font-style: normal;
231
- font-weight: 500;
232
- font-size: 18px;
233
- line-height: 140.62%;
234
- cursor: default;
235
- }
236
-
237
- /* Mark dots */
238
- .charts-dot-hidden {
239
- display: none;
240
- }
@@ -1,240 +0,0 @@
1
- .wrapper {
2
- margin: 0 auto;
3
- position: relative;
4
- }
5
- .bar, .area, .donut {
6
- stroke: none;
7
- }
8
- .line {
9
- fill: none;
10
- stroke-width: 4;
11
- }
12
- .donut-block * {
13
- transition: filter 0.15s;
14
- }
15
- .arc {
16
- transition: opacity 0.3s;
17
- }
18
- .data-label {
19
- font-family: "Roboto";
20
- font-style: normal;
21
- font-weight: 300;
22
- font-size: 12px;
23
- line-height: 140.62%;
24
- color: #444444;
25
- cursor: default;
26
- }
27
- .bar-item {
28
- transition: opacity 0.3s, filter 0.3s;
29
- }
30
-
31
-
32
- /*========================================================================== Common classes */
33
- .charts-opacity-inactive {
34
- opacity: 0.6;
35
- }
36
-
37
- /* EXTENDED FOR SPECIFIC STYLES */
38
- .legend-item.charts-opacity-inactive {
39
- opacity: 0.45;
40
- }
41
-
42
-
43
- /*========================================================================== Legend */
44
- .legend-item {
45
- cursor: default;
46
- transition: opacity 0.1s;
47
- }
48
- .legend-item-inline {
49
- white-space: nowrap;
50
- }
51
- .legend-item-inline:not(:first-of-type) {
52
- margin-left: 20px;
53
- }
54
- .legend-item-row {
55
- display: flex;
56
- }
57
- .legend-item-row > span {
58
- display: block;
59
- }
60
- .mt-15 {
61
- margin-top: 15px;
62
- }
63
- .mt-10 {
64
- margin-top: 10px;
65
- }
66
-
67
- .legend-label {
68
- font-size: 12px;
69
- font-family: "Roboto", sans-serif;
70
- font-weight: 300;
71
- color: #444444;
72
- width: calc(100% - 19px);
73
- overflow: hidden;
74
- line-height: normal;
75
- }
76
- .legend-label-nowrap {
77
- white-space: nowrap;
78
- text-overflow: ellipsis;
79
- }
80
- .legend-circle {
81
- position: relative;
82
- bottom: -1px;
83
- display: inline-block;
84
- width: 11px;
85
- height: 11px;
86
- border-radius: 50%;
87
- margin-right: 8px;
88
- }
89
-
90
-
91
- /*========================================================================= Tooltip */
92
- .tooltip-block {
93
- pointer-events: none;
94
- z-index: 100;
95
- filter: drop-shadow(0px 4px 10px rgba(0, 0, 0, 0.1));
96
- }
97
- .tooltip-content {
98
- position: relative;
99
- pointer-events: none;
100
- font-family: "Roboto", sans-serif;
101
- line-height: 1;
102
- padding: 12px 16px;
103
- color: white;
104
- z-index: 102;
105
- max-width: 500px;
106
- background: rgba(0, 0, 0, 0.82);
107
- font-size: 11px;
108
- }
109
- .tooltip-arrow {
110
- width: 0;
111
- height: 0;
112
- border-style: solid;
113
- border-color: rgba(0, 0, 0, 0.82) transparent transparent transparent;
114
- }
115
-
116
- /* Tooltip Content */
117
- .tooltip-group {
118
- display: flex;
119
- }
120
- .tooltip-group:not(:first-of-type) {
121
- margin-top: 6px;
122
- }
123
- .tooltip-circle {
124
- position: relative;
125
- display: block;
126
- width: 9px;
127
- height: 9px;
128
- margin-right: 10px;
129
- border-radius: 50%;
130
- }
131
- .tooltip-text-item {
132
- font-family: "Roboto" sans-serif;
133
- font-style: normal;
134
- width: 100%;
135
- flex: 1;
136
- display: flex;
137
- font-weight: 400;
138
- }
139
-
140
- .tooltip-line {
141
- stroke: #AAA;
142
- stroke-width: 1px;
143
- stroke-linecap: round;
144
- }
145
- .tooltip-content .tooltip-head {
146
- font-size: 12px;
147
- margin-bottom: 10px;
148
- }
149
- .tooltip-content .tooltip-texts {
150
- width: 100%;
151
- }
152
-
153
- .tooltip-content .tooltip-text-item > span {
154
- display: block;
155
- }
156
- .tooltip-content .tooltip-text-item > span:first-of-type {
157
- flex: 1;
158
- }
159
- .tooltip-content .tooltip-text-item > span:last-of-type {
160
- flex: 0;
161
- }
162
- .tooltip-field-value {
163
- margin-left: 0.5rem;
164
- }
165
-
166
-
167
- /*========================================================================= Additional */
168
- .charts-axis .domain {
169
- stroke: #D2D2D2;
170
- }
171
- .charts-axis .tick line:first-of-type {
172
- stroke: #D2D2D2;
173
- }
174
-
175
- /* Aggregator */
176
- .aggregator-value, .aggregator-name {
177
- color: #000000;
178
- font-family: "Roboto", sans-serif;
179
- font-weight: bold;
180
- line-height: 1;
181
- }
182
- .aggregator-value {
183
- margin-top: 20px;
184
- pointer-events: auto;
185
- }
186
- .aggregator-name {
187
- margin-top: 10px;
188
- }
189
-
190
- /* Grid */
191
- .grid-line {
192
- stroke: #D2D2D2;
193
- stroke-dasharray: 3;
194
- }
195
-
196
- /* Record overflow */
197
- .record-overflow-alert {
198
- background-color: #FFFFFF;;
199
- padding: 5px 10px 5px;
200
- border: 1px solid #0F6698;
201
- box-sizing: border-box;
202
- border-radius: 100px;
203
- font-family: "Roboto", sans-serif;
204
- font-style: normal;
205
- font-weight: 500;
206
- font-size: 10px;
207
- line-height: 140.62%;
208
- color: #0F6698;
209
- }
210
- .record-overflow-alert .btn-close {
211
- border: none;
212
- background-color: transparent;
213
- cursor: pointer;
214
- font-size: 1.3rem;
215
- }
216
-
217
- /* Embedded label */
218
- .embedded-label {
219
- color: #444444;
220
- font-family: "Roboto", sans-serif;
221
- font-style: normal;
222
- font-weight: 500;
223
- font-size: 12px;
224
- line-height: 140.62%;
225
- }
226
-
227
- /* Title */
228
- .chart-title {
229
- font-family: "Roboto", sans-serif;
230
- font-style: normal;
231
- font-weight: 500;
232
- font-size: 18px;
233
- line-height: 140.62%;
234
- cursor: default;
235
- }
236
-
237
- /* Mark dots */
238
- .charts-dot-hidden {
239
- display: none;
240
- }