Skip to content

Commit 5e95ce7

Browse files
fix(echarts): use Siemens font (#2403)
1 parent a66629c commit 5e95ce7

9 files changed

Lines changed: 47 additions & 57 deletions

File tree

.changeset/five-grapes-brake.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@siemens/ix-echarts": patch
3+
---
4+
5+
Use Siemens Sans font.

packages/echarts/src/themes/brand-dark.ts

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
* LICENSE file in the root directory of this source tree.
88
*/
99

10+
const textStyleDefault = {
11+
color: '#ffffff',
12+
fontFamily: 'Siemens Sans, sans-serif',
13+
};
14+
1015
const colors = [
1116
'#00C1B6' /* theme-chart-3 */,
1217
'#85E9D2' /* theme-chart-2 */,
@@ -63,14 +68,10 @@ export default {
6368
theme: {
6469
color: colors,
6570
backgroundColor: 'rgba(0,0,0,0)',
66-
textStyle: {},
71+
textStyle: textStyleDefault,
6772
title: {
68-
textStyle: {
69-
color: '#ffffff',
70-
},
71-
subtextStyle: {
72-
color: '#ffffff',
73-
},
73+
textStyle: textStyleDefault,
74+
subtextStyle: textStyleDefault,
7475
},
7576
line: {
7677
itemStyle: {
@@ -186,16 +187,11 @@ export default {
186187
},
187188
},
188189
legend: {
189-
textStyle: {
190-
color: '#ffffff',
191-
},
190+
textStyle: textStyleDefault,
192191
},
193192
tooltip: {
194193
backgroundColor: '#000028cc',
195194
borderColor: '#ffffff40',
196-
textStyle: {
197-
color: '#ffffff',
198-
},
199195
axisPointer: {
200196
lineStyle: {
201197
color: '#ffffff',
@@ -249,9 +245,6 @@ export default {
249245
handleSize: 'undefined%',
250246
textStyle: {},
251247
},
252-
nameTextStyle: {
253-
color: '#fff',
254-
},
255248
markPoint: {
256249
label: {
257250
color: '#fff',

packages/echarts/src/themes/brand-light.ts

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
* LICENSE file in the root directory of this source tree.
88
*/
99

10+
const textStyleDefault = {
11+
color: '#000028',
12+
fontFamily: 'Siemens Sans, sans-serif',
13+
};
14+
1015
const colors = [
1116
'#009999' /* theme-chart-3 */,
1217
'#005159' /* theme-chart-2 */,
@@ -63,14 +68,10 @@ export default {
6368
theme: {
6469
color: colors,
6570
backgroundColor: 'rgba(0,0,0,0)',
66-
textStyle: {},
71+
textStyle: textStyleDefault,
6772
title: {
68-
textStyle: {
69-
color: '#000028',
70-
},
71-
subtextStyle: {
72-
color: '#000028',
73-
},
73+
textStyle: textStyleDefault,
74+
subtextStyle: textStyleDefault,
7475
},
7576
line: {
7677
itemStyle: {
@@ -186,16 +187,11 @@ export default {
186187
},
187188
},
188189
legend: {
189-
textStyle: {
190-
color: '#000028',
191-
},
190+
textStyle: textStyleDefault,
192191
},
193192
tooltip: {
194193
backgroundColor: '#ffffffcc',
195194
borderColor: '#00002833',
196-
textStyle: {
197-
color: '#000028',
198-
},
199195
axisPointer: {
200196
lineStyle: {
201197
color: '#000028',
@@ -249,9 +245,6 @@ export default {
249245
handleSize: 'undefined%',
250246
textStyle: {},
251247
},
252-
nameTextStyle: {
253-
color: '#000028',
254-
},
255248
markPoint: {
256249
label: {
257250
color: '#000028',

packages/echarts/src/themes/builder/brand-dark-tb.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"version": 1,
33
"themeName": "theme-brand-dark",
44
"theme": {
5-
"seriesCnt": 3,
5+
"seriesCnt": "3",
66
"backgroundColor": "transparent",
77
"titleColor": "#ffffff",
88
"subtitleColor": "#ffffff",
@@ -26,7 +26,7 @@
2626
"#FFBC66",
2727
"#FFF7D6",
2828
"#AAAA96",
29-
"#FFBC66"
29+
"#7D8099"
3030
],
3131
"borderColor": "#ffffff",
3232
"borderWidth": 0,

packages/echarts/src/themes/builder/brand-light-tb.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"version": 1,
33
"themeName": "theme-brand-light",
44
"theme": {
5-
"seriesCnt": 3,
5+
"seriesCnt": "3",
66
"backgroundColor": "rgba(0,0,0,0)",
77
"titleColor": "#000028",
88
"subtitleColor": "#000028",

packages/echarts/src/themes/builder/classic-dark-tb.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"version": 1,
33
"themeName": "theme-classic-dark",
44
"theme": {
5-
"seriesCnt": 3,
5+
"seriesCnt": "3",
66
"backgroundColor": "rgba(0,0,0,0)",
77
"titleColor": "#ffffff",
88
"subtitleColor": "#ffffff",

packages/echarts/src/themes/builder/classic-light-tb.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"version": 1,
33
"themeName": "theme-classic-light",
44
"theme": {
5-
"seriesCnt": 3,
5+
"seriesCnt": "3",
66
"backgroundColor": "rgba(0,0,0,0)",
77
"titleColor": "#000000",
88
"subtitleColor": "#000000",

packages/echarts/src/themes/classic-dark.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
* LICENSE file in the root directory of this source tree.
88
*/
99

10+
const textStyleDefault = {
11+
color: '#ffffff',
12+
fontFamily: 'Siemens Sans, sans-serif',
13+
};
14+
1015
const colors = [
1116
'#00C2CC' /* theme-chart-3 */,
1217
'#94FFC9' /* theme-chart-2 */,
@@ -63,14 +68,10 @@ export default {
6368
theme: {
6469
color: colors,
6570
backgroundColor: 'rgba(0,0,0,0)',
66-
textStyle: {},
71+
textStyle: textStyleDefault,
6772
title: {
68-
textStyle: {
69-
color: '#ffffff',
70-
},
71-
subtextStyle: {
72-
color: '#ffffff',
73-
},
73+
textStyle: textStyleDefault,
74+
subtextStyle: textStyleDefault,
7475
},
7576
line: {
7677
itemStyle: {
@@ -186,15 +187,14 @@ export default {
186187
},
187188
},
188189
legend: {
189-
textStyle: {
190-
color: '#ffffff',
191-
},
190+
textStyle: textStyleDefault,
192191
},
193192
tooltip: {
194193
backgroundColor: '#0f1619cc',
195194
borderColor: '#ffffff40',
196195
textStyle: {
197196
color: 'rgba(245, 252, 255, .93)',
197+
fontFamily: 'Siemens Sans, sans-serif',
198198
},
199199
axisPointer: {
200200
lineStyle: {

packages/echarts/src/themes/classic-light.ts

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
* LICENSE file in the root directory of this source tree.
88
*/
99

10+
const textStyleDefault = {
11+
color: '#000000',
12+
fontFamily: 'Siemens Sans, sans-serif',
13+
};
14+
1015
const colors = [
1116
'#00838F' /* theme-chart-3 */,
1217
'#00572B' /* theme-chart-2 */,
@@ -63,14 +68,10 @@ export default {
6368
theme: {
6469
color: colors,
6570
backgroundColor: 'rgba(0,0,0,0)',
66-
textStyle: {},
71+
textStyle: textStyleDefault,
6772
title: {
68-
textStyle: {
69-
color: '#000000',
70-
},
71-
subtextStyle: {
72-
color: '#000000',
73-
},
73+
textStyle: textStyleDefault,
74+
subtextStyle: textStyleDefault,
7475
},
7576
line: {
7677
itemStyle: {
@@ -186,9 +187,7 @@ export default {
186187
},
187188
},
188189
legend: {
189-
textStyle: {
190-
color: '#000000',
191-
},
190+
textStyle: textStyleDefault,
192191
},
193192
tooltip: {
194193
backgroundColor: '#ffffffcc',

0 commit comments

Comments
 (0)