|
@ -86,7 +86,7 @@ function getCirlPoint(x0, y0, r, angle) { |
|
|
}, |
|
|
}, |
|
|
], |
|
|
], |
|
|
grid: { |
|
|
grid: { |
|
|
top: '18%', |
|
|
top: '38%', |
|
|
left: '6%', |
|
|
left: '6%', |
|
|
right: '6%', |
|
|
right: '6%', |
|
|
bottom: '3%', |
|
|
bottom: '3%', |
|
@ -167,7 +167,7 @@ function getCirlPoint(x0, y0, r, angle) { |
|
|
renderItem: (params, api) => { |
|
|
renderItem: (params, api) => { |
|
|
let x0 = api.getWidth() / 2; |
|
|
let x0 = api.getWidth() / 2; |
|
|
let y0 = api.getHeight() / 2 - 59; |
|
|
let y0 = api.getHeight() / 2 - 59; |
|
|
let r = Math.min(api.getWidth(), api.getHeight()) / 2 * 0.56; |
|
|
let r = Math.min(api.getWidth(), api.getHeight()) / 2 * 0.50; |
|
|
return { |
|
|
return { |
|
|
type: 'circle', |
|
|
type: 'circle', |
|
|
shape: { |
|
|
shape: { |
|
@ -194,7 +194,7 @@ function getCirlPoint(x0, y0, r, angle) { |
|
|
shape: { |
|
|
shape: { |
|
|
cx: api.getWidth() / 2, |
|
|
cx: api.getWidth() / 2, |
|
|
cy: api.getHeight() / 2 - 59, |
|
|
cy: api.getHeight() / 2 - 59, |
|
|
r: Math.min(api.getWidth(), api.getHeight()) / 2 * 0.56, |
|
|
r: Math.min(api.getWidth(), api.getHeight()) / 2 * 0.50, |
|
|
startAngle: (350 + -angle) * Math.PI / 180, |
|
|
startAngle: (350 + -angle) * Math.PI / 180, |
|
|
endAngle: (120 + -angle) * Math.PI / 180 |
|
|
endAngle: (120 + -angle) * Math.PI / 180 |
|
|
}, |
|
|
}, |
|
@ -214,7 +214,7 @@ function getCirlPoint(x0, y0, r, angle) { |
|
|
renderItem: (params, api) => { |
|
|
renderItem: (params, api) => { |
|
|
let x0 = api.getWidth() / 2; |
|
|
let x0 = api.getWidth() / 2; |
|
|
let y0 = api.getHeight() / 2 - 59; |
|
|
let y0 = api.getHeight() / 2 - 59; |
|
|
let r = Math.min(api.getWidth(), api.getHeight()) / 2 * 0.56; |
|
|
let r = Math.min(api.getWidth(), api.getHeight()) / 2 * 0.50; |
|
|
return { |
|
|
return { |
|
|
type: 'circle', |
|
|
type: 'circle', |
|
|
shape: { |
|
|
shape: { |
|
@ -241,7 +241,7 @@ function getCirlPoint(x0, y0, r, angle) { |
|
|
shape: { |
|
|
shape: { |
|
|
cx: api.getWidth() / 2, |
|
|
cx: api.getWidth() / 2, |
|
|
cy: api.getHeight() / 2 - 59, |
|
|
cy: api.getHeight() / 2 - 59, |
|
|
r: Math.min(api.getWidth(), api.getHeight()) / 2 * 0.56, |
|
|
r: Math.min(api.getWidth(), api.getHeight()) / 2 * 0.50, |
|
|
startAngle: (150 + -angle) * Math.PI / 180, |
|
|
startAngle: (150 + -angle) * Math.PI / 180, |
|
|
endAngle: (-30 + -angle) * Math.PI / 180 |
|
|
endAngle: (-30 + -angle) * Math.PI / 180 |
|
|
}, |
|
|
}, |
|
@ -261,7 +261,7 @@ function getCirlPoint(x0, y0, r, angle) { |
|
|
renderItem: (params, api) => { |
|
|
renderItem: (params, api) => { |
|
|
let x0 = api.getWidth() / 2; |
|
|
let x0 = api.getWidth() / 2; |
|
|
let y0 = api.getHeight() / 2 - 59; |
|
|
let y0 = api.getHeight() / 2 - 59; |
|
|
let r = Math.min(api.getWidth(), api.getHeight()) / 2 * 0.63; |
|
|
let r = Math.min(api.getWidth(), api.getHeight()) / 2 * 0.56; |
|
|
return { |
|
|
return { |
|
|
type: 'circle', |
|
|
type: 'circle', |
|
|
shape: { |
|
|
shape: { |
|
@ -288,7 +288,7 @@ function getCirlPoint(x0, y0, r, angle) { |
|
|
shape: { |
|
|
shape: { |
|
|
cx: api.getWidth() / 2, |
|
|
cx: api.getWidth() / 2, |
|
|
cy: api.getHeight() / 2 - 59, |
|
|
cy: api.getHeight() / 2 - 59, |
|
|
r: Math.min(api.getWidth(), api.getHeight()) / 2 * 0.63, |
|
|
r: Math.min(api.getWidth(), api.getHeight()) / 2 * 0.56, |
|
|
startAngle: (590 + -angle) * Math.PI / 180, |
|
|
startAngle: (590 + -angle) * Math.PI / 180, |
|
|
endAngle: (350 + -angle) * Math.PI / 180 |
|
|
endAngle: (350 + -angle) * Math.PI / 180 |
|
|
}, |
|
|
}, |
|
@ -308,7 +308,7 @@ function getCirlPoint(x0, y0, r, angle) { |
|
|
renderItem: (params, api) => { |
|
|
renderItem: (params, api) => { |
|
|
let x0 = api.getWidth() / 2; |
|
|
let x0 = api.getWidth() / 2; |
|
|
let y0 = api.getHeight() / 2 - 59; |
|
|
let y0 = api.getHeight() / 2 - 59; |
|
|
let r = Math.min(api.getWidth(), api.getHeight()) / 2 * 0.63; |
|
|
let r = Math.min(api.getWidth(), api.getHeight()) / 2 * 0.56; |
|
|
return { |
|
|
return { |
|
|
type: 'circle', |
|
|
type: 'circle', |
|
|
shape: { |
|
|
shape: { |
|
@ -335,7 +335,7 @@ function getCirlPoint(x0, y0, r, angle) { |
|
|
shape: { |
|
|
shape: { |
|
|
cx: api.getWidth() / 2, |
|
|
cx: api.getWidth() / 2, |
|
|
cy: api.getHeight() / 2 - 59, |
|
|
cy: api.getHeight() / 2 - 59, |
|
|
r: Math.min(api.getWidth(), api.getHeight()) / 2 * 0.63, |
|
|
r: Math.min(api.getWidth(), api.getHeight()) / 2 * 0.56, |
|
|
startAngle: (90 + -angle) * Math.PI / 180, |
|
|
startAngle: (90 + -angle) * Math.PI / 180, |
|
|
endAngle: (160 + -angle) * Math.PI / 180 |
|
|
endAngle: (160 + -angle) * Math.PI / 180 |
|
|
}, |
|
|
}, |
|
@ -351,7 +351,7 @@ function getCirlPoint(x0, y0, r, angle) { |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
type: 'pie', |
|
|
type: 'pie', |
|
|
radius: ['50%', '40%'], |
|
|
radius: ['45%', '40%'], |
|
|
center: ['50%', '35%'], |
|
|
center: ['50%', '35%'], |
|
|
z: 10, |
|
|
z: 10, |
|
|
label: { |
|
|
label: { |
|
@ -388,7 +388,7 @@ function getCirlPoint(x0, y0, r, angle) { |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
type: 'pie', |
|
|
type: 'pie', |
|
|
radius: ['29%', '40%'], |
|
|
radius: ['29%', '39%'], |
|
|
center: ['50%', '35%'], |
|
|
center: ['50%', '35%'], |
|
|
label: { |
|
|
label: { |
|
|
show: false, |
|
|
show: false, |
|
|