[O] Separate textStyle to GraphUtils

This commit is contained in:
Hykilpikonna
2019-11-09 23:27:44 -05:00
parent 670ac48516
commit 4bd34d46be
2 changed files with 18 additions and 12 deletions
+17
View File
@@ -70,4 +70,21 @@ export default class GraphUtils
] ]
} }
} }
/**
* Text style for pie graphs or radar graphs
*/
static pieTextStyle()
{
return {
fontSize: 14,
textShadowColor: '#cfcfcf',
textShadowBlur: 2,
textShadowOffsetX: 1,
textShadowOffsetY: 1,
backgroundColor: '#f6f6f6',
borderRadius: 3,
padding: [3, 5]
}
}
} }
+1 -12
View File
@@ -37,18 +37,7 @@ export default class TypeRadar extends Vue
// shape: 'circle', // shape: 'circle',
name: name:
{ {
textStyle: textStyle: GraphUtils.pieTextStyle()
{
fontSize: 14,
textShadowColor: '#cfcfcf',
textShadowBlur: 2,
textShadowOffsetX: 1,
textShadowOffsetY: 1,
color: '#fff',
backgroundColor: '#f6f6f6',
borderRadius: 3,
padding: [3, 5]
}
}, },
splitArea: splitArea:
{ {