@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
|
|
@@ -24,8 +24,10 @@ export default class FulfillmentChartRenderer extends AbstractSvgChartRenderer {
|
|
|
24
24
|
this.suppressLegendBox = true;
|
|
25
25
|
|
|
26
26
|
let defaultConfig = {
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
options: {
|
|
28
|
+
fulfillment: {
|
|
29
|
+
startValue: undefined
|
|
30
|
+
}
|
|
29
31
|
}
|
|
30
32
|
};
|
|
31
33
|
chart.config = $.extend(true, {}, defaultConfig, chart.config);
|
|
@@ -65,7 +67,7 @@ export default class FulfillmentChartRenderer extends AbstractSvgChartRenderer {
|
|
|
65
67
|
arcClass += ' ' + chartGroupCss;
|
|
66
68
|
}
|
|
67
69
|
|
|
68
|
-
let startValue = scout.nvl(this.chart.config.fulfillment.startValue, 0);
|
|
70
|
+
let startValue = scout.nvl(this.chart.config.options.fulfillment.startValue, 0);
|
|
69
71
|
let end = 0;
|
|
70
72
|
let lastEnd = 0;
|
|
71
73
|
if (total) {
|
|
@@ -177,7 +179,7 @@ export default class FulfillmentChartRenderer extends AbstractSvgChartRenderer {
|
|
|
177
179
|
* If startValue is not set use default implementation.
|
|
178
180
|
*/
|
|
179
181
|
shouldAnimateRemoveOnUpdate(opts) {
|
|
180
|
-
let startValue = objects.optProperty(this.chart, 'config', 'fulfillment', 'startValue');
|
|
182
|
+
let startValue = objects.optProperty(this.chart, 'config', 'options', 'fulfillment', 'startValue');
|
|
181
183
|
if (!objects.isNullOrUndefined(startValue)) {
|
|
182
184
|
return false;
|
|
183
185
|
}
|
|
@@ -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
|
|
@@ -31,9 +31,11 @@ export default class SalesfunnelChartRenderer extends AbstractSvgChartRenderer {
|
|
|
31
31
|
this.suppressLegendBox = true;
|
|
32
32
|
|
|
33
33
|
let defaultConfig = {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
options: {
|
|
35
|
+
salesfunnel: {
|
|
36
|
+
normalized: undefined,
|
|
37
|
+
calcConversionRate: undefined
|
|
38
|
+
}
|
|
37
39
|
}
|
|
38
40
|
};
|
|
39
41
|
chart.config = $.extend(true, {}, defaultConfig, chart.config);
|
|
@@ -47,8 +49,8 @@ export default class SalesfunnelChartRenderer extends AbstractSvgChartRenderer {
|
|
|
47
49
|
chartData.axes.length !== chartData.chartValueGroups.length ||
|
|
48
50
|
chartData.chartValueGroups.length === 0 ||
|
|
49
51
|
chartData.chartValueGroups[0].values.length === 0 ||
|
|
50
|
-
chartConfig.salesfunnel.normalized === undefined ||
|
|
51
|
-
chartConfig.salesfunnel.calcConversionRate === undefined) {
|
|
52
|
+
chartConfig.options.salesfunnel.normalized === undefined ||
|
|
53
|
+
chartConfig.options.salesfunnel.calcConversionRate === undefined) {
|
|
52
54
|
return false;
|
|
53
55
|
}
|
|
54
56
|
return true;
|
|
@@ -70,7 +72,7 @@ export default class SalesfunnelChartRenderer extends AbstractSvgChartRenderer {
|
|
|
70
72
|
this.conversionRateWidth;
|
|
71
73
|
this.centerX = this.barAreaWidth / 2;
|
|
72
74
|
|
|
73
|
-
if (this.chart.config.salesfunnel.normalized) {
|
|
75
|
+
if (this.chart.config.options.salesfunnel.normalized) {
|
|
74
76
|
this._renderBarsNormalized(chartData.chartValueGroups);
|
|
75
77
|
} else {
|
|
76
78
|
this._renderBarsAccordingToValues(chartData.chartValueGroups);
|
|
@@ -131,7 +133,7 @@ export default class SalesfunnelChartRenderer extends AbstractSvgChartRenderer {
|
|
|
131
133
|
}
|
|
132
134
|
if (i > 0) {
|
|
133
135
|
this._renderLabelSeparatorLine(yCoord, labelLineWidth);
|
|
134
|
-
if (this.chart.config.salesfunnel.calcConversionRate) {
|
|
136
|
+
if (this.chart.config.options.salesfunnel.calcConversionRate) {
|
|
135
137
|
this._renderConversionRate(i, startPointX, this._calcConversionRate(chartValueGroups[i - 1].values[0], chartValueGroups[i].values[0]));
|
|
136
138
|
}
|
|
137
139
|
}
|
|
@@ -157,10 +159,10 @@ export default class SalesfunnelChartRenderer extends AbstractSvgChartRenderer {
|
|
|
157
159
|
.attr('opacity', 0)
|
|
158
160
|
.animateSVG('opacity', 1, this.animationDuration, null, true);
|
|
159
161
|
}
|
|
160
|
-
if (this.chart.config.options.
|
|
162
|
+
if (this.chart.config.options.plugins.tooltip.enabled && this.chart.data.axes.length > 0) {
|
|
161
163
|
let desc = this.chart.data.axes[barIndexFromTop][secondLabel ? 1 : 0].label,
|
|
162
|
-
|
|
163
|
-
this._renderWireLabels(desc, $label, x -
|
|
164
|
+
textBounds = this._measureText(label, labelClass);
|
|
165
|
+
this._renderWireLabels(desc, $label, x - textBounds.width / 2, y - textBounds.height);
|
|
164
166
|
}
|
|
165
167
|
}
|
|
166
168
|
|
|
@@ -207,12 +209,11 @@ export default class SalesfunnelChartRenderer extends AbstractSvgChartRenderer {
|
|
|
207
209
|
return;
|
|
208
210
|
}
|
|
209
211
|
let ctrlY = barIndexFromTop * this.barHeight,
|
|
210
|
-
labelRenderPointY = ctrlY,
|
|
211
212
|
labelClass = this._dynamicCssClass('salesfunnel-conversionrate-label');
|
|
212
213
|
|
|
213
214
|
let $label = this.$svg.appendSVG('text', labelClass)
|
|
214
215
|
.attr('x', startPointX)
|
|
215
|
-
.attr('y',
|
|
216
|
+
.attr('y', ctrlY)
|
|
216
217
|
.text('↓ ' + conversionRate + '%');
|
|
217
218
|
if (this.animationDuration) {
|
|
218
219
|
$label
|
|
@@ -322,7 +323,7 @@ export default class SalesfunnelChartRenderer extends AbstractSvgChartRenderer {
|
|
|
322
323
|
}
|
|
323
324
|
if (i > 0) {
|
|
324
325
|
this._renderLabelSeparatorLine(yCoord, labelLineWidth);
|
|
325
|
-
if (this.chart.config.salesfunnel.calcConversionRate) {
|
|
326
|
+
if (this.chart.config.options.salesfunnel.calcConversionRate) {
|
|
326
327
|
this._renderConversionRate(i, startPointX, this._calcConversionRate(chartValueGroups[i - 1].values[0], chartValueGroups[i].values[0]));
|
|
327
328
|
}
|
|
328
329
|
}
|
|
@@ -417,7 +418,7 @@ export default class SalesfunnelChartRenderer extends AbstractSvgChartRenderer {
|
|
|
417
418
|
}
|
|
418
419
|
|
|
419
420
|
_dynamicConversionRateWidth() {
|
|
420
|
-
if (!this.chart.config.salesfunnel.calcConversionRate) {
|
|
421
|
+
if (!this.chart.config.options.salesfunnel.calcConversionRate) {
|
|
421
422
|
return 0; // don't show conversion rate
|
|
422
423
|
}
|
|
423
424
|
if (this.chartBox.width <= this.widthThresholdSmall) {
|
|
@@ -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
|
|
@@ -19,8 +19,10 @@ export default class SpeedoChartRenderer extends AbstractSvgChartRenderer {
|
|
|
19
19
|
this.suppressLegendBox = true;
|
|
20
20
|
|
|
21
21
|
let defaultConfig = {
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
options: {
|
|
23
|
+
speedo: {
|
|
24
|
+
greenAreaPosition: undefined
|
|
25
|
+
}
|
|
24
26
|
}
|
|
25
27
|
};
|
|
26
28
|
chart.config = $.extend(true, {}, defaultConfig, chart.config);
|
|
@@ -53,7 +55,7 @@ export default class SpeedoChartRenderer extends AbstractSvgChartRenderer {
|
|
|
53
55
|
chartData.axes.length > 0 ||
|
|
54
56
|
chartData.chartValueGroups.length !== 1 ||
|
|
55
57
|
chartData.chartValueGroups[0].values.length !== 3 ||
|
|
56
|
-
chartConfig.speedo.greenAreaPosition === undefined) {
|
|
58
|
+
chartConfig.options.speedo.greenAreaPosition === undefined) {
|
|
57
59
|
return false;
|
|
58
60
|
}
|
|
59
61
|
return true;
|
|
@@ -74,7 +76,7 @@ export default class SpeedoChartRenderer extends AbstractSvgChartRenderer {
|
|
|
74
76
|
this.my = this.chartBox.yOffset + this.chartBox.height - (this.chartBox.height - this.r * 1.12) / 2;
|
|
75
77
|
|
|
76
78
|
// number of parts in the scale
|
|
77
|
-
this.parts = this.chart.config.speedo.greenAreaPosition === SpeedoChartRenderer.Position.CENTER ?
|
|
79
|
+
this.parts = this.chart.config.options.speedo.greenAreaPosition === SpeedoChartRenderer.Position.CENTER ?
|
|
78
80
|
SpeedoChartRenderer.NUM_PARTS_GREEN_CENTER : SpeedoChartRenderer.NUM_PARTS_GREEN_EDGE;
|
|
79
81
|
|
|
80
82
|
// number of lines per part
|
|
@@ -203,8 +205,8 @@ export default class SpeedoChartRenderer extends AbstractSvgChartRenderer {
|
|
|
203
205
|
legendValue = value ? this._formatValue(value) : 0,
|
|
204
206
|
maxLegendValue = maxValue ? this._formatValue(maxValue) : 0;
|
|
205
207
|
|
|
206
|
-
//
|
|
207
|
-
if (this.chart.config.options.
|
|
208
|
+
// tooltip for min/max value
|
|
209
|
+
if (this.chart.config.options.plugins.tooltip.enabled) {
|
|
208
210
|
// min value
|
|
209
211
|
let $minLegend = this.$svg.appendSVG('text', 'line-label line-chart-wire-label')
|
|
210
212
|
.attr('x', this.chartBox.mX() - this.r)
|
|
@@ -234,7 +236,7 @@ export default class SpeedoChartRenderer extends AbstractSvgChartRenderer {
|
|
|
234
236
|
}
|
|
235
237
|
|
|
236
238
|
// actual value
|
|
237
|
-
if (this.chart.config.options.legend.display) {
|
|
239
|
+
if (this.chart.config.options.plugins.legend.display) {
|
|
238
240
|
this._renderLineLabel(positions.x2 + padding, positions.y2 + positions.v * padding, legendValue, '', false)
|
|
239
241
|
.addClass('speedo-chart-label')
|
|
240
242
|
.attr('style', 'font-size: ' + this.scaleWeight * 1.55 + 'px;');
|
|
@@ -317,7 +319,7 @@ export default class SpeedoChartRenderer extends AbstractSvgChartRenderer {
|
|
|
317
319
|
}
|
|
318
320
|
|
|
319
321
|
_getColorForPart(part) {
|
|
320
|
-
let position = this.chart.config.speedo.greenAreaPosition;
|
|
322
|
+
let position = this.chart.config.options.speedo.greenAreaPosition;
|
|
321
323
|
switch (position) {
|
|
322
324
|
case SpeedoChartRenderer.Position.LEFT:
|
|
323
325
|
// only four parts
|
|
@@ -117,13 +117,6 @@ export default class VennAsync3Calculator {
|
|
|
117
117
|
rBest = this.rBest,
|
|
118
118
|
errorBest = this.errorBest;
|
|
119
119
|
|
|
120
|
-
let stepFactor = 1;
|
|
121
|
-
// sorry... ie is (verry, buggy) slow
|
|
122
|
-
// TODO [15.4] bsh: find better solution for ie, or error calculation
|
|
123
|
-
if (Device.get().isInternetExplorer()) {
|
|
124
|
-
stepFactor = 5;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
120
|
for (let d = 0; d < maxD; d += dStep) {
|
|
128
121
|
// calc x, y
|
|
129
122
|
let x = x1 + d * Math.cos(alpha);
|
|
@@ -138,8 +131,8 @@ export default class VennAsync3Calculator {
|
|
|
138
131
|
let maxX = Math.max(x1 + r1, x2 + r2, x + r);
|
|
139
132
|
let minY = Math.min(y1 - r1, y2 - r2, y - r);
|
|
140
133
|
let maxY = Math.max(y1 + r1, y2 + r2, y + r);
|
|
141
|
-
let stepX = (maxX - minX) / 100
|
|
142
|
-
let stepY = (maxY - minY) / 100
|
|
134
|
+
let stepX = (maxX - minX) / 100;
|
|
135
|
+
let stepY = (maxY - minY) / 100;
|
|
143
136
|
|
|
144
137
|
// areas of venn
|
|
145
138
|
let a1 = 0,
|
|
@@ -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
|
|
@@ -19,8 +19,10 @@ export default class VennChartRenderer extends AbstractSvgChartRenderer {
|
|
|
19
19
|
this.suppressLegendBox = true;
|
|
20
20
|
|
|
21
21
|
let defaultConfig = {
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
options: {
|
|
23
|
+
venn: {
|
|
24
|
+
numberOfCircles: undefined
|
|
25
|
+
}
|
|
24
26
|
}
|
|
25
27
|
};
|
|
26
28
|
chart.config = $.extend(true, {}, defaultConfig, chart.config);
|
|
@@ -45,11 +47,9 @@ export default class VennChartRenderer extends AbstractSvgChartRenderer {
|
|
|
45
47
|
return false;
|
|
46
48
|
}
|
|
47
49
|
|
|
48
|
-
this.setLoading(true);
|
|
49
|
-
|
|
50
50
|
// basic values
|
|
51
51
|
this.data = this.chart.data.chartValueGroups;
|
|
52
|
-
this.numberOfCircles = this.chart.config.venn.numberOfCircles;
|
|
52
|
+
this.numberOfCircles = this.chart.config.options.venn.numberOfCircles;
|
|
53
53
|
|
|
54
54
|
// render parameter
|
|
55
55
|
let distR = 10,
|
|
@@ -81,7 +81,6 @@ export default class VennChartRenderer extends AbstractSvgChartRenderer {
|
|
|
81
81
|
// Final callback
|
|
82
82
|
let draw = function() {
|
|
83
83
|
this.readyToDraw = true;
|
|
84
|
-
this.setLoading(false);
|
|
85
84
|
if (!this.$svg.isAttached()) {
|
|
86
85
|
// user navigated away. do not try to render-> error
|
|
87
86
|
return;
|
|
@@ -123,19 +122,9 @@ export default class VennChartRenderer extends AbstractSvgChartRenderer {
|
|
|
123
122
|
|
|
124
123
|
remove(requestAnimation, afterRemoveFunc) {
|
|
125
124
|
this._cancelAsync3Calculator();
|
|
126
|
-
this.setLoading(false);
|
|
127
125
|
super.remove(requestAnimation, afterRemoveFunc);
|
|
128
126
|
}
|
|
129
127
|
|
|
130
|
-
setLoading(loading) {
|
|
131
|
-
if (loading && !this.$loadingIndicator && this.chart && this.chart.rendered) {
|
|
132
|
-
this.$loadingIndicator = this.chart.$container.appendDiv('venn-chart-loading-indicator');
|
|
133
|
-
} else if (!loading && this.$loadingIndicator) {
|
|
134
|
-
this.$loadingIndicator.remove();
|
|
135
|
-
this.$loadingIndicator = null;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
|
|
139
128
|
// calculation
|
|
140
129
|
|
|
141
130
|
_calc1(v1) {
|
|
@@ -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
|
|
@@ -10,16 +10,54 @@
|
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
@chart-alternative-line-label-background-color: @chart-line-label-color;
|
|
13
|
-
@chart-axis-line-color: @
|
|
14
|
-
@chart-axis-
|
|
15
|
-
@chart-axis-label-color: @palette-gray-2-1;
|
|
16
|
-
@chart-legend-label-color: @text-color;
|
|
13
|
+
@chart-axis-line-color-inverted: @chart-axis-line-color;
|
|
14
|
+
@chart-axis-label-color-inverted: @chart-axis-label-color;
|
|
17
15
|
@chart-line-label-background-color: @chart-line-label-color;
|
|
18
|
-
@chart-tooltip-background-color: @palette-gray-7;
|
|
19
|
-
@chart-tooltip-border-color: @palette-gray-2-1;
|
|
20
|
-
@chart-type-color: @palette-gray-3;
|
|
21
16
|
@fulfillment-chart-inverted-label-color: @chart-axis-text-color;
|
|
22
|
-
@
|
|
23
|
-
|
|
24
|
-
@
|
|
17
|
+
@fufillment-chart-inner-circle-color: @fade-white-2;
|
|
18
|
+
|
|
19
|
+
@chart-data-color-1-rainbow: @palette-blue-2;
|
|
20
|
+
@chart-data-color-2-rainbow: @palette-orange-2;
|
|
21
|
+
@chart-data-color-3-rainbow: @palette-green-2;
|
|
22
|
+
@chart-data-color-4-rainbow: @palette-gray-4;
|
|
23
|
+
@chart-data-color-5-rainbow: @palette-red-2;
|
|
24
|
+
@chart-data-color-6-rainbow: @palette-green-2;
|
|
25
|
+
|
|
26
|
+
@chart-data-color-1: @palette-blue-3;
|
|
27
|
+
@chart-data-color-2: lighten(@palette-blue-3, 8%);
|
|
28
|
+
@chart-data-color-3: darken(@palette-blue-2, 8%);
|
|
29
|
+
@chart-data-color-4: @palette-blue-2;
|
|
30
|
+
@chart-data-color-5: @palette-blue-1;
|
|
31
|
+
@chart-data-color-6: @palette-blue-0;
|
|
32
|
+
|
|
33
|
+
@chart-data-color-1-inverted: @chart-data-color-6;
|
|
34
|
+
@chart-data-color-2-inverted: @chart-data-color-5;
|
|
35
|
+
@chart-data-color-3-inverted: @chart-data-color-4;
|
|
36
|
+
@chart-data-color-4-inverted: @chart-data-color-3;
|
|
37
|
+
@chart-data-color-5-inverted: @chart-data-color-2;
|
|
38
|
+
@chart-data-color-6-inverted: @chart-data-color-1;
|
|
39
|
+
|
|
40
|
+
@chart-data-color-1-alternative: darken(@palette-green-3, 5%);
|
|
41
|
+
@chart-data-color-2-alternative: @palette-green-3;
|
|
42
|
+
@chart-data-color-3-alternative: darken(@palette-green-2, 8%);
|
|
43
|
+
@chart-data-color-4-alternative: @palette-green-2;
|
|
44
|
+
@chart-data-color-5-alternative: @palette-green-1;
|
|
45
|
+
@chart-data-color-6-alternative: @palette-green-0;
|
|
46
|
+
|
|
47
|
+
@chart-data-color-1-alternative-inverted: @chart-data-color-6-alternative;
|
|
48
|
+
@chart-data-color-2-alternative-inverted: @chart-data-color-5-alternative;
|
|
49
|
+
@chart-data-color-3-alternative-inverted: @chart-data-color-4-alternative;
|
|
50
|
+
@chart-data-color-4-alternative-inverted: @chart-data-color-3-alternative;
|
|
51
|
+
@chart-data-color-5-alternative-inverted: @chart-data-color-2-alternative;
|
|
52
|
+
@chart-data-color-6-alternative-inverted: @chart-data-color-1-alternative;
|
|
53
|
+
|
|
54
|
+
@chart-data-color: @chart-data-color-3;
|
|
55
|
+
@chart-data-color-inverted: @chart-data-color-3-inverted;
|
|
56
|
+
@chart-data-color-alternative: @chart-data-color-3-alternative;
|
|
57
|
+
@chart-data-color-rainbow: @chart-data-color-3-rainbow;
|
|
58
|
+
@chart-data-color-alternative-inverted: @chart-data-color-3-alternative-inverted;
|
|
59
|
+
|
|
60
|
+
@speedo-chart-dark-green: @palette-green-3;
|
|
25
61
|
@speedo-chart-green: @palette-green-2;
|
|
62
|
+
@speedo-chart-yellow: @palette-orange-2;
|
|
63
|
+
@speedo-chart-red: @palette-red-2;
|
package/src/style/colors.less
CHANGED
|
@@ -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
|
|
@@ -9,67 +9,85 @@
|
|
|
9
9
|
* BSI Business Systems Integration AG - initial API and implementation
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
-
@
|
|
13
|
-
@
|
|
12
|
+
@chart-axis-line-color: @border-color;
|
|
13
|
+
@chart-axis-line-color-inverted: fade(@chart-axis-line-color, 30%);
|
|
14
|
+
@chart-axis-text-color: @tile-default-color;
|
|
15
|
+
@chart-axis-label-color: @tile-default-color;
|
|
16
|
+
@chart-axis-label-color-inverted: @palette-white;
|
|
14
17
|
|
|
15
|
-
|
|
16
|
-
@chart-
|
|
17
|
-
@chart-
|
|
18
|
-
@chart-data-
|
|
19
|
-
|
|
20
|
-
@chart-data-
|
|
21
|
-
@chart-data-
|
|
22
|
-
@chart-data-
|
|
23
|
-
|
|
24
|
-
@chart-data-color-
|
|
25
|
-
@chart-data-color-
|
|
26
|
-
@chart-data-color-
|
|
27
|
-
|
|
18
|
+
// Chart colors used for non chart.js charts (salesfunnel, fulfillment, venn)
|
|
19
|
+
@chart-data-color: @chart-data-color-1;
|
|
20
|
+
@chart-data-hover-color: darken(@chart-data-color, 7%);
|
|
21
|
+
@chart-data-selected-color: darken(@chart-data-color, 12%);
|
|
22
|
+
|
|
23
|
+
@chart-data-color-inverted: @chart-data-color-1-inverted;
|
|
24
|
+
@chart-data-hover-color-inverted: darken(@chart-data-color-inverted, 7%);
|
|
25
|
+
@chart-data-selected-color-inverted: darken(@chart-data-color-inverted, 12%);
|
|
26
|
+
|
|
27
|
+
@chart-data-color-alternative: @chart-data-color-1-alternative;
|
|
28
|
+
@chart-data-hover-color-alternative: darken(@chart-data-color-alternative, 7%);
|
|
29
|
+
@chart-data-selected-color-alternative: darken(@chart-data-color-alternative, 12%);
|
|
30
|
+
|
|
31
|
+
@chart-data-color-rainbow: @chart-data-color-1-rainbow;
|
|
32
|
+
@chart-data-hover-color-rainbow: darken(@chart-data-color-rainbow, 7%);
|
|
33
|
+
@chart-data-selected-color-rainbow: darken(@chart-data-color-rainbow, 12%);
|
|
34
|
+
|
|
35
|
+
@chart-data-color-alternative-inverted: @chart-data-color-1-alternative-inverted;
|
|
36
|
+
@chart-data-hover-color-alternative-inverted: darken(@chart-data-color-alternative-inverted, 7%);
|
|
37
|
+
@chart-data-selected-color-alternative-inverted: darken(@chart-data-color-alternative-inverted, 12%);
|
|
38
|
+
|
|
39
|
+
@chart-data-white-hover-color: @palette-gray-2; // For salesfunnel
|
|
40
|
+
|
|
41
|
+
@chart-data-color-1: @palette-blue-3;
|
|
42
|
+
@chart-data-color-2: lighten(@palette-blue-3, 5%);
|
|
43
|
+
@chart-data-color-3: @palette-blue-2;
|
|
44
|
+
@chart-data-color-4: @palette-blue-1;
|
|
45
|
+
@chart-data-color-5: @palette-blue-4;
|
|
46
|
+
@chart-data-color-6: @palette-blue-5;
|
|
47
|
+
|
|
48
|
+
@chart-data-color-1-inverted: @palette-blue-1;
|
|
49
|
+
@chart-data-color-2-inverted: darken(@palette-blue-1, 10%);
|
|
50
|
+
@chart-data-color-3-inverted: @palette-blue-2;
|
|
51
|
+
@chart-data-color-4-inverted: darken(@palette-blue-2, 10%);
|
|
52
|
+
@chart-data-color-5-inverted: @palette-blue-4;
|
|
53
|
+
@chart-data-color-6-inverted: @palette-blue-5;
|
|
54
|
+
|
|
55
|
+
@chart-data-color-1-rainbow: @palette-blue-3;
|
|
28
56
|
@chart-data-color-2-rainbow: @palette-orange-3;
|
|
29
|
-
@chart-data-color-2-alternative-inverted: @palette-cyan-3;
|
|
30
|
-
@chart-data-color-2-alternative: @palette-cyan-5;
|
|
31
|
-
@chart-data-color-2-inverted: @palette-blue-4;
|
|
32
|
-
@chart-data-color-2: @palette-blue-5;
|
|
33
57
|
@chart-data-color-3-rainbow: @palette-green-3;
|
|
34
|
-
@chart-data-color-
|
|
35
|
-
@chart-data-color-
|
|
36
|
-
@chart-data-color-
|
|
37
|
-
|
|
38
|
-
@chart-data-color-
|
|
39
|
-
@chart-data-color-
|
|
40
|
-
@chart-data-color-
|
|
41
|
-
@chart-data-color-4-
|
|
42
|
-
@chart-data-color-
|
|
43
|
-
@chart-data-color-
|
|
44
|
-
|
|
45
|
-
@chart-data-color-
|
|
46
|
-
@chart-data-color-
|
|
47
|
-
@chart-data-color-
|
|
48
|
-
@chart-data-color-
|
|
49
|
-
@chart-data-color-
|
|
50
|
-
@chart-data-color-6-alternative: @palette-green-
|
|
51
|
-
|
|
52
|
-
@chart-data-color
|
|
53
|
-
@chart-
|
|
54
|
-
@chart-
|
|
55
|
-
@chart-legend-label-color: inherit;
|
|
58
|
+
@chart-data-color-4-rainbow: @palette-gray-7;
|
|
59
|
+
@chart-data-color-5-rainbow: @palette-red-3;
|
|
60
|
+
@chart-data-color-6-rainbow: @palette-green-5;
|
|
61
|
+
|
|
62
|
+
@chart-data-color-1-alternative: @palette-green-4;
|
|
63
|
+
@chart-data-color-2-alternative: lighten(@palette-green-4, 5%);
|
|
64
|
+
@chart-data-color-3-alternative: @palette-green-3;
|
|
65
|
+
@chart-data-color-4-alternative: @palette-green-2;
|
|
66
|
+
@chart-data-color-5-alternative: @palette-green-1;
|
|
67
|
+
@chart-data-color-6-alternative: @palette-green-5;
|
|
68
|
+
|
|
69
|
+
@chart-data-color-1-alternative-inverted: @palette-green-1;
|
|
70
|
+
@chart-data-color-2-alternative-inverted: @palette-green-2;
|
|
71
|
+
@chart-data-color-3-alternative-inverted: @palette-green-3;
|
|
72
|
+
@chart-data-color-4-alternative-inverted: @palette-green-4;
|
|
73
|
+
@chart-data-color-5-alternative-inverted: @palette-green-5;
|
|
74
|
+
@chart-data-color-6-alternative-inverted: darken(@palette-green-5, 10%);
|
|
75
|
+
|
|
76
|
+
@chart-data-label-color: @text-inverted-color;
|
|
77
|
+
@chart-legend-label-color: @chart-axis-label-color;
|
|
78
|
+
@chart-legend-label-inverted-color: @chart-axis-label-color-inverted;
|
|
56
79
|
@chart-line-label-color: @chart-axis-text-color;
|
|
80
|
+
@chart-line-label-border-color: @chart-line-label-color;
|
|
81
|
+
@chart-line-label-inverted-border-color: @chart-axis-label-color-inverted;
|
|
57
82
|
@chart-line-label-background-color: @tile-default-background-color;
|
|
58
83
|
@chart-alternative-line-label-background-color: @tile-alternative-background-color;
|
|
59
|
-
@chart-
|
|
60
|
-
@chart-
|
|
61
|
-
@chart-
|
|
62
|
-
@chart-
|
|
63
|
-
@
|
|
64
|
-
@speedo-chart-
|
|
65
|
-
@speedo-chart-green: @palette-cyan-4;
|
|
66
|
-
@speedo-chart-yellow: @palette-orange-4;
|
|
67
|
-
@speedo-chart-red: #dc2938;
|
|
84
|
+
@fulfillment-chart-inverted-label-color: @tile-default-inverted-color;
|
|
85
|
+
@fufillment-chart-inner-circle-color: @palette-gray-3;
|
|
86
|
+
@speedo-chart-dark-green: @palette-green-4;
|
|
87
|
+
@speedo-chart-green: @palette-green-3;
|
|
88
|
+
@speedo-chart-yellow: @palette-orange-3;
|
|
89
|
+
@speedo-chart-red: @palette-red-3;
|
|
68
90
|
@salesfunnel-bar-label-color: @palette-white;
|
|
69
91
|
@salesfunnel-alternative-bar-label-color: @salesfunnel-bar-label-color;
|
|
70
92
|
@salesfunnel-inverted-bar-label-color: @tile-default-inverted-background-color;
|
|
71
|
-
@salesfunnel-label-color: @salesfunnel-
|
|
72
|
-
@salesfunnel-alternative-label-color: @salesfunnel-alternative-chart-bar-color;
|
|
73
|
-
@salesfunnel-chart-bar-color: @chart-data-color-2;
|
|
74
|
-
@salesfunnel-alternative-chart-bar-color: @chart-data-color-4-inverted;
|
|
75
|
-
@salesfunnel-alternative-inverted-bar-label-color: @chart-data-color-4;
|
|
93
|
+
@salesfunnel-alternative-inverted-bar-label-color: @salesfunnel-inverted-bar-label-color;
|