[O] Separate textStyle to GraphUtils
This commit is contained in:
@@ -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]
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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:
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user