@eclipse-scout/chart 11.0.39 → 22.0.0-beta.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/README.md +2 -2
- package/dist/eclipse-scout-chart-theme-dark.css +3806 -1606
- package/dist/eclipse-scout-chart-theme-dark.css.map +1 -1
- package/dist/eclipse-scout-chart-theme.css +3689 -1489
- package/dist/eclipse-scout-chart-theme.css.map +1 -1
- package/dist/eclipse-scout-chart.js +23316 -6685
- package/dist/eclipse-scout-chart.js.map +1 -1
- package/dist/file-list +0 -6
- package/package.json +21 -21
- package/src/chart/AbstractChartRenderer.js +7 -1
- package/src/chart/AbstractSvgChartRenderer.js +3 -3
- package/src/chart/Chart.js +40 -9
- package/src/chart/Chart.less +121 -78
- package/src/chart/ChartJsRenderer.js +1092 -580
- package/src/chart/FulfillmentChartRenderer.js +7 -5
- package/src/chart/SalesfunnelChartRenderer.js +16 -15
- package/src/chart/SpeedoChartRenderer.js +11 -9
- package/src/chart/VennAsync3Calculator.js +2 -9
- package/src/chart/VennChartRenderer.js +6 -17
- package/src/style/colors-dark.less +49 -11
- package/src/style/colors.less +74 -56
- package/src/table/controls/ChartTableControl.js +103 -156
- package/src/table/controls/ChartTableControl.less +177 -112
- package/src/table/controls/ChartTableControlLayout.js +4 -1
- package/dist/eclipse-scout-chart-4f219da36ee28808d3bf.min.js +0 -2
- package/dist/eclipse-scout-chart-4f219da36ee28808d3bf.min.js.map +0 -1
- package/dist/eclipse-scout-chart-theme-dark-e356c56e246c4f8f5ff3.min.css +0 -1
- package/dist/eclipse-scout-chart-theme-e85ee1f9c7c3e6d5af5d.min.css +0 -1
- package/dist/texts.json +0 -64
- package/src/chart/ChartJsTooltipDelay.js +0 -127
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2010-
|
|
2
|
+
* Copyright (c) 2010-2021 BSI Business Systems Integration AG.
|
|
3
3
|
* All rights reserved. This program and the accompanying materials
|
|
4
4
|
* are made available under the terms of the Eclipse Public License v1.0
|
|
5
5
|
* which accompanies this distribution, and is available at
|
|
@@ -28,120 +28,128 @@
|
|
|
28
28
|
/* chart - type select */
|
|
29
29
|
|
|
30
30
|
.chart-select {
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-flow: column;
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
width: 65px;
|
|
37
|
-
display: block;
|
|
38
|
-
}
|
|
34
|
+
width: 75px;
|
|
35
|
+
margin: 25px;
|
|
39
36
|
|
|
40
|
-
svg.select-chart:not(.disabled) > rect.select-events:not(.disabled) {
|
|
41
|
-
cursor: pointer;
|
|
42
|
-
}
|
|
43
37
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
38
|
+
& > .icon {
|
|
39
|
+
padding: 15px 0;
|
|
40
|
+
margin-bottom: 8px;
|
|
41
|
+
min-width: 60px;
|
|
47
42
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
stroke-width: 3px;
|
|
52
|
-
stroke-linejoin: round;
|
|
53
|
-
stroke-linecap: round;
|
|
54
|
-
}
|
|
43
|
+
font-size: 26px;
|
|
44
|
+
font-weight: @icon-font-weight-light;
|
|
45
|
+
text-align: center;
|
|
55
46
|
|
|
56
|
-
|
|
57
|
-
stroke: @table-control-container-background-color;
|
|
58
|
-
fill: @chart-type-color;
|
|
59
|
-
stroke-width: 1px;
|
|
60
|
-
stroke-linejoin: round;
|
|
61
|
-
stroke-linecap: round;
|
|
62
|
-
}
|
|
47
|
+
border-radius: @border-radius-medium;
|
|
63
48
|
|
|
64
|
-
|
|
65
|
-
& rect.select-fill, & circle.select-fill, & path.select-fill-pie {
|
|
66
|
-
fill: @chart-selected-color;
|
|
67
|
-
}
|
|
49
|
+
color: @button-color;
|
|
68
50
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}
|
|
72
|
-
}
|
|
51
|
+
&:not(.disabled) {
|
|
52
|
+
cursor: pointer;
|
|
73
53
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
54
|
+
&.selected,
|
|
55
|
+
&.selected:hover {
|
|
56
|
+
background-color: @default-button-background-color;
|
|
57
|
+
color: @default-button-color;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&:hover {
|
|
61
|
+
color: @button-hover-color;
|
|
62
|
+
background-color: @hover-background-color;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
78
65
|
|
|
79
|
-
|
|
80
|
-
|
|
66
|
+
&.disabled {
|
|
67
|
+
color: @button-disabled-color;
|
|
68
|
+
}
|
|
81
69
|
}
|
|
82
70
|
}
|
|
83
71
|
|
|
84
72
|
/* chart - axis and data select */
|
|
73
|
+
@chart-table-control-axis-select-width: 175px;
|
|
74
|
+
.axis-select-container {
|
|
75
|
+
display: flex;
|
|
76
|
+
position: relative;
|
|
77
|
+
margin-top: 25px;
|
|
78
|
+
margin-bottom: 25px;
|
|
79
|
+
border: 1px solid @border-color;
|
|
80
|
+
border-radius: @border-radius;
|
|
81
|
+
max-height: calc(100% - 50px);
|
|
82
|
+
min-height: 310px;
|
|
83
|
+
|
|
84
|
+
& > .xaxis-select,
|
|
85
|
+
& > .yaxis-select,
|
|
86
|
+
& > .data-select {
|
|
87
|
+
display: inline-block;
|
|
88
|
+
overflow: hidden;
|
|
89
|
+
width: @chart-table-control-axis-select-width;
|
|
90
|
+
padding: 3px 0;
|
|
91
|
+
border-left: 1px solid @border-color;
|
|
92
|
+
}
|
|
85
93
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
display: inline-block;
|
|
91
|
-
overflow: hidden;
|
|
94
|
+
& > :first-child {
|
|
95
|
+
width: @chart-table-control-axis-select-width - 1px;
|
|
96
|
+
border-left: none;
|
|
97
|
+
}
|
|
92
98
|
|
|
93
|
-
& > .
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
99
|
+
& > .yaxis-select {
|
|
100
|
+
&.hide {
|
|
101
|
+
width: 0;
|
|
102
|
+
border-width: 0;
|
|
103
|
+
}
|
|
97
104
|
|
|
98
|
-
|
|
99
|
-
|
|
105
|
+
&.animated {
|
|
106
|
+
#scout.animation(show-axis-select 0.5s ease-in-out 1);
|
|
107
|
+
|
|
108
|
+
&.hide {
|
|
109
|
+
#scout.animation(hide-axis-select 0.5s ease-in-out 1);
|
|
110
|
+
}
|
|
100
111
|
}
|
|
101
112
|
}
|
|
102
113
|
}
|
|
103
114
|
|
|
104
|
-
.yaxis-select {
|
|
105
|
-
width: 0;
|
|
106
|
-
margin-right: 0;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
115
|
.select-axis, .select-data {
|
|
110
|
-
background-color: @control-background-color;
|
|
111
116
|
position: relative;
|
|
117
|
+
height: 30px;
|
|
118
|
+
width: calc(100% - 8px);
|
|
119
|
+
margin: 0 4px 2px;
|
|
112
120
|
padding-left: 8px;
|
|
113
121
|
padding-right: 20px;
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
width: 100%;
|
|
122
|
+
border-radius: @border-radius;
|
|
123
|
+
|
|
117
124
|
cursor: pointer;
|
|
125
|
+
|
|
126
|
+
line-height: 30px;
|
|
118
127
|
#scout.overflow-ellipsis();
|
|
119
|
-
border-top: 1px solid @border-color;
|
|
120
|
-
border-left: 1px solid @border-color;
|
|
121
|
-
border-right: 1px solid @border-color;
|
|
122
128
|
|
|
123
129
|
&:hover {
|
|
124
|
-
color: @hover-color;
|
|
130
|
+
background-color: @hover-background-color;
|
|
125
131
|
}
|
|
126
132
|
|
|
127
133
|
&:last-child {
|
|
128
|
-
|
|
134
|
+
margin-bottom: 0;
|
|
129
135
|
}
|
|
130
136
|
|
|
131
137
|
&.selected {
|
|
132
|
-
background-color: @
|
|
133
|
-
color: @
|
|
134
|
-
border-top: 1px solid transparent;
|
|
135
|
-
border-left: 1px solid @chart-selected-color;
|
|
136
|
-
border-right: 1px solid @chart-selected-color;
|
|
137
|
-
border-bottom: 1px solid transparent;
|
|
138
|
+
background-color: @selected-background-color;
|
|
139
|
+
color: @selected-color;
|
|
138
140
|
}
|
|
139
141
|
|
|
140
|
-
&.
|
|
141
|
-
|
|
142
|
+
&.disabled {
|
|
143
|
+
cursor: default;
|
|
144
|
+
background-color: @table-control-container-background-color;
|
|
145
|
+
color: @table-control-disabled-color;
|
|
146
|
+
|
|
147
|
+
&:hover {
|
|
148
|
+
background-color: @table-control-container-background-color;
|
|
149
|
+
}
|
|
142
150
|
}
|
|
143
151
|
|
|
144
|
-
& .select-axis-group {
|
|
152
|
+
& > .select-axis-group {
|
|
145
153
|
position: relative;
|
|
146
154
|
top: -7px;
|
|
147
155
|
font-size: @font-size-extra-small;
|
|
@@ -157,54 +165,33 @@ svg.select-chart.selected:not(.disabled) {
|
|
|
157
165
|
position: absolute;
|
|
158
166
|
font-size: 16px;
|
|
159
167
|
line-height: 16px;
|
|
160
|
-
right:
|
|
168
|
+
right: 8px;
|
|
161
169
|
top: 6px;
|
|
162
170
|
#scout.font-icon();
|
|
163
171
|
}
|
|
164
172
|
|
|
165
|
-
&.axis-ver.selected::before {
|
|
166
|
-
content: @icon-long-arrow-down-bold;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
&.axis-hor.selected::before {
|
|
170
|
-
content: @icon-long-arrow-right-bold;
|
|
171
|
-
right: 5px;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
&.axis-around.selected::before {
|
|
175
|
-
content: @icon-rotate-right-bold;
|
|
176
|
-
right: 6px;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
&.axis-up.selected::before {
|
|
180
|
-
content: @icon-long-arrow-up-bold;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
173
|
&.data-count.selected::before {
|
|
184
174
|
content: @icon-count;
|
|
185
175
|
font-size: 20px;
|
|
186
|
-
top: 4px;
|
|
187
176
|
right: 5px;
|
|
188
177
|
}
|
|
189
178
|
|
|
190
179
|
&.data-sum.selected::before {
|
|
191
|
-
content: @icon-sum
|
|
192
|
-
top: 6px;
|
|
193
|
-
right: 8px;
|
|
180
|
+
content: @icon-sum;
|
|
194
181
|
}
|
|
195
182
|
|
|
196
183
|
&.data-avg.selected::before {
|
|
197
|
-
content: @icon-
|
|
184
|
+
content: @icon-avg;
|
|
198
185
|
top: 2px;
|
|
199
|
-
right: 8px;
|
|
200
186
|
font-size: 30px;
|
|
201
187
|
}
|
|
202
188
|
}
|
|
203
189
|
|
|
204
190
|
.chart-container > .chart {
|
|
191
|
+
position: relative;
|
|
205
192
|
flex-grow: 1;
|
|
206
193
|
align-self: stretch;
|
|
207
|
-
margin:
|
|
194
|
+
margin: 35px 25px 25px;
|
|
208
195
|
min-width: 350px;
|
|
209
196
|
min-height: 300px;
|
|
210
197
|
max-height: 600px;
|
|
@@ -218,16 +205,94 @@ svg.select-chart.selected:not(.disabled) {
|
|
|
218
205
|
}
|
|
219
206
|
}
|
|
220
207
|
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
208
|
+
@chart-table-control-chart-data-color: @palette-orange-3;
|
|
209
|
+
.chart-table-control {
|
|
210
|
+
& > .bar-chart,
|
|
211
|
+
& > .horizontalBar-chart {
|
|
212
|
+
& > .elements {
|
|
213
|
+
#scout.chart-colors-schemes(@chart-table-control-chart-data-color);
|
|
214
|
+
#scout.chart-stroke-colors-schemes(@chart-table-control-chart-data-color);
|
|
215
|
+
#scout.chart-colors-schemes(@chart-table-control-chart-data-color, @darken: 10, @additional-classes: ~".hover");
|
|
216
|
+
#scout.chart-stroke-colors-schemes(@chart-table-control-chart-data-color, @darken: 10, @additional-classes: ~".hover");
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
&.checkable > .elements {
|
|
220
|
+
#scout.chart-colors-schemes(@chart-table-control-chart-data-color, @opacity: 20);
|
|
221
|
+
#scout.chart-colors-schemes(@chart-table-control-chart-data-color, @additional-classes: ~".checked");
|
|
222
|
+
#scout.chart-colors-schemes(@chart-table-control-chart-data-color, @opacity: 35, @additional-classes: ~".hover");
|
|
223
|
+
#scout.chart-colors-schemes(@chart-table-control-chart-data-color, @darken: 10, @additional-classes: ~".hover.checked");
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
& > .line-chart {
|
|
228
|
+
#scout.chart-colors-schemes(@chart-table-control-chart-data-color, @opacity: 20);
|
|
229
|
+
#scout.chart-stroke-colors-schemes(@chart-table-control-chart-data-color);
|
|
230
|
+
#scout.chart-colors-schemes(@chart-table-control-chart-data-color, @opacity: 35, @additional-classes: ~".hover");
|
|
231
|
+
|
|
232
|
+
#scout.chart-colors-schemes(@chart-table-control-chart-data-color, @additional-classes: ~".legend");
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
& > .pie-chart {
|
|
236
|
+
& > .elements {
|
|
237
|
+
#scout.chart-colors-schemes(@chart-table-control-chart-data-color);
|
|
238
|
+
#scout.chart-colors-schemes(@chart-table-control-chart-data-color, @darken: 10, @additional-classes: ~".hover");
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
&.checkable > .elements {
|
|
242
|
+
#scout.chart-colors-schemes(@chart-table-control-chart-data-color, @opacity: 70);
|
|
243
|
+
#scout.chart-colors-schemes(@chart-table-control-chart-data-color, @additional-classes: ~".checked");
|
|
244
|
+
#scout.chart-colors-schemes(@chart-table-control-chart-data-color, @opacity: 85, @additional-classes: ~".hover");
|
|
245
|
+
#scout.chart-colors-schemes(@chart-table-control-chart-data-color, @darken: 10, @additional-classes: ~".hover.checked");
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
& > .bubble-chart {
|
|
250
|
+
& > .elements {
|
|
251
|
+
#scout.chart-colors-schemes(@chart-table-control-chart-data-color, @opacity: 20);
|
|
252
|
+
#scout.chart-stroke-colors-schemes(@chart-table-control-chart-data-color);
|
|
253
|
+
#scout.chart-colors-schemes(@chart-table-control-chart-data-color, @opacity: 35, @additional-classes: ~".hover");
|
|
254
|
+
#scout.chart-stroke-colors-schemes(@chart-table-control-chart-data-color, @darken: 10, @additional-classes: ~".hover");
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
&.checkable > .elements {
|
|
258
|
+
#scout.chart-colors-schemes(@chart-table-control-chart-data-color, @additional-classes: ~".checked");
|
|
259
|
+
#scout.chart-colors-schemes(@chart-table-control-chart-data-color, @darken: 10, @additional-classes: ~".hover.checked");
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
#scout.chart-colors-schemes(@chart-table-control-chart-data-color, @additional-classes: ~".legend");
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
/*** Animations ***/
|
|
267
|
+
|
|
268
|
+
/*** show ***/
|
|
269
|
+
.keyframes-show-axis-select() {
|
|
270
|
+
from {
|
|
271
|
+
width: 0;
|
|
272
|
+
border-width: 0;
|
|
225
273
|
}
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
@-webkit-keyframes show-axis-select {
|
|
277
|
+
.keyframes-show-axis-select();
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
@keyframes show-axis-select {
|
|
281
|
+
.keyframes-show-axis-select();
|
|
282
|
+
}
|
|
226
283
|
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
284
|
+
/*** hide ***/
|
|
285
|
+
.keyframes-hide-axis-select() {
|
|
286
|
+
from {
|
|
287
|
+
width: @chart-table-control-axis-select-width;
|
|
288
|
+
border-width: 1px;
|
|
232
289
|
}
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
@-webkit-keyframes hide-axis-select {
|
|
293
|
+
.keyframes-hide-axis-select();
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
@keyframes hide-axis-select {
|
|
297
|
+
.keyframes-hide-axis-select();
|
|
233
298
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2010-
|
|
2
|
+
* Copyright (c) 2010-2021 BSI Business Systems Integration AG.
|
|
3
3
|
* All rights reserved. This program and the accompanying materials
|
|
4
4
|
* are made available under the terms of the Eclipse Public License v1.0
|
|
5
5
|
* which accompanies this distribution, and is available at
|
|
@@ -22,5 +22,8 @@ export default class ChartTableControlLayout extends AbstractLayout {
|
|
|
22
22
|
return;
|
|
23
23
|
}
|
|
24
24
|
scrollbars.update(this.control.$contentContainer);
|
|
25
|
+
scrollbars.update(this.control.$xAxisSelect);
|
|
26
|
+
scrollbars.update(this.control.$yAxisSelect);
|
|
27
|
+
scrollbars.update(this.control.$dataSelect);
|
|
25
28
|
}
|
|
26
29
|
}
|