mirror of
https://github.com/cuigh/swirl
synced 2025-06-26 18:16:50 +00:00
Optimize style of gauge chart
This commit is contained in:
@@ -1304,12 +1304,21 @@ var Swirl;
|
||||
{
|
||||
type: 'gauge',
|
||||
radius: '100%',
|
||||
center: ["50%", "58%"],
|
||||
center: ["50%", "50%"],
|
||||
max: d.value,
|
||||
axisLine: {
|
||||
show: false,
|
||||
lineStyle: { width: 0, opacity: 0, shadowBlur: 0 },
|
||||
},
|
||||
axisLabel: { show: false },
|
||||
axisTick: { show: false },
|
||||
splitLine: { show: false },
|
||||
pointer: { show: false },
|
||||
detail: {
|
||||
formatter: this.formatValue.bind(this),
|
||||
offsetCenter: [0, 0],
|
||||
fontSize: 64,
|
||||
fontWeight: 'bold',
|
||||
},
|
||||
data: [{ value: d.value }]
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -216,12 +216,21 @@ namespace Swirl.Core {
|
||||
// name: d.name,
|
||||
type: 'gauge',
|
||||
radius: '100%',
|
||||
center: ["50%", "58%"], // 仪表位置
|
||||
center: ["50%", "50%"], // 仪表位置
|
||||
max: d.value,
|
||||
axisLine: {
|
||||
show: false,
|
||||
lineStyle: {width: 0, opacity: 0, shadowBlur: 0},
|
||||
},
|
||||
axisLabel: {show: false},
|
||||
axisTick: {show: false},
|
||||
splitLine: {show: false},
|
||||
pointer: {show: false},
|
||||
detail: {
|
||||
formatter: this.formatValue.bind(this),
|
||||
offsetCenter: [0, 0],
|
||||
fontSize: 64,
|
||||
fontWeight: 'bold',
|
||||
},
|
||||
data: [{value: d.value}]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user