|
@@ -15,30 +15,54 @@ defineProps({
|
|
|
const chartDistrict = ref(null);
|
|
|
let chartDom = null;
|
|
|
const initAccess = () => {
|
|
|
- let angle = 0; //角度,用来做简单的动画效果的
|
|
|
- let value = 80;
|
|
|
- var timerId;
|
|
|
- var outerRidus1 = 0.8
|
|
|
- var outerRidus2 = 0.85
|
|
|
+ let colorList = [
|
|
|
+ "rgba(255, 38, 38, 1)",
|
|
|
+ "rgba(255, 96, 0, 1)",
|
|
|
+ "rgba(255, 165, 7, 1)",
|
|
|
+ "rgba(0, 234, 255, 1)",
|
|
|
+ "rgba(0, 132, 255, 1)",
|
|
|
+ "#2379FF",
|
|
|
+ ];
|
|
|
+ let colorListA = [
|
|
|
+ "rgba(255, 38, 38, 0.1)",
|
|
|
+ "rgba(255, 96, 0, 0.1)",
|
|
|
+ "rgba(255, 165, 7, 0.1)",
|
|
|
+ "rgba(0, 234, 255, 0.1)",
|
|
|
+ "rgba(0, 132, 255, 0.1)",
|
|
|
+ "#49B1FF",
|
|
|
+ ];
|
|
|
+ let colorListB = [
|
|
|
+ "rgba(249, 136, 136, 1)",
|
|
|
+ "rgba(255, 162, 106, 1)",
|
|
|
+ "rgba(255, 210, 130, 1)",
|
|
|
+ "rgba(142, 255, 206, 1)",
|
|
|
+ "rgba(165, 232, 255, 1)",
|
|
|
+ ];
|
|
|
+ let colorListC = [
|
|
|
+ "rgba(249, 136, 136, 0.1)",
|
|
|
+ "rgba(255, 162, 106, 0.1)",
|
|
|
+ "rgba(255, 210, 130, 0.1)",
|
|
|
+ "rgba(142, 255, 206, 0.1)",
|
|
|
+ "rgba(165, 232, 255, 0.1)",
|
|
|
+ ];
|
|
|
+ let result = [
|
|
|
+ { name: "天水祥丰农资农贸有限公司", value: 86 },
|
|
|
+ { name: "天水花牛苹果", value: 83 },
|
|
|
+ { name: "天水红富士", value: 73 },
|
|
|
+ { name: "天水金帅苹果", value: 61 },
|
|
|
+ { name: "天水黄面皮", value: 61 },
|
|
|
+ ];
|
|
|
chartDom = echarts.init(chartDistrict.value);
|
|
|
let option = {
|
|
|
- legend: {
|
|
|
- orient: 'vertical',
|
|
|
- show: true,
|
|
|
- right: '5%',
|
|
|
- y: 'center',
|
|
|
- icon: 'pin',
|
|
|
- itemGap: 30,
|
|
|
- textStyle: {
|
|
|
- color: '#FFFFFF',
|
|
|
- fontSize: 12,
|
|
|
- lineHeight: 20,
|
|
|
- },
|
|
|
- },
|
|
|
+ color: colorList,
|
|
|
tooltip: {
|
|
|
show: true,
|
|
|
+ trigger: "item",
|
|
|
axisPointer: {
|
|
|
- type: 'line',
|
|
|
+ type: "shadow",
|
|
|
+ textStyle: {
|
|
|
+ color: "#fff",
|
|
|
+ },
|
|
|
},
|
|
|
textStyle: {
|
|
|
color: '#fafafa',
|
|
@@ -46,404 +70,226 @@ const initAccess = () => {
|
|
|
borderColor: 'transparent',
|
|
|
backgroundColor: 'rgba(0, 0, 0, 0.5)',
|
|
|
extraCssText: 'backdrop-filter: blur(6px);',
|
|
|
+ confine: true,
|
|
|
+ formatter: "{b}<br />客流指数: {c}",
|
|
|
},
|
|
|
- series: [
|
|
|
- // 最外层圆
|
|
|
+ legend: {
|
|
|
+ show: false,
|
|
|
+ },
|
|
|
+ grid: {
|
|
|
+ left: "2%",
|
|
|
+ right: "2%",
|
|
|
+ top: "6%",
|
|
|
+ bottom: "0%",
|
|
|
+ },
|
|
|
+ xAxis: [
|
|
|
{
|
|
|
- type: 'pie',
|
|
|
- radius: ['75%', '55%'],
|
|
|
- center: ['50%', '50%'],
|
|
|
- hoverAnimation: false,
|
|
|
- data: [
|
|
|
- {
|
|
|
- value: 30,
|
|
|
- name: '运行中',
|
|
|
- itemStyle: {
|
|
|
- normal: {
|
|
|
- color: {
|
|
|
- // 完成的圆环的颜色
|
|
|
- colorStops: [
|
|
|
- {
|
|
|
- offset: 0,
|
|
|
- color: '#0060FF', // 0% 处的颜色
|
|
|
- },
|
|
|
- {
|
|
|
- offset: 1,
|
|
|
- color: '#00EFFE', // 100% 处的颜色
|
|
|
- },
|
|
|
- ],
|
|
|
- },
|
|
|
- },
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- value: 30,
|
|
|
- name: '已停止',
|
|
|
- itemStyle: {
|
|
|
- normal: {
|
|
|
- color: {
|
|
|
- // 完成的圆环的颜色
|
|
|
- colorStops: [
|
|
|
- {
|
|
|
- offset: 0,
|
|
|
- color: '#44D7B6', // 0% 处的颜色
|
|
|
- },
|
|
|
- {
|
|
|
- offset: 1,
|
|
|
- color: '#6DD400', // 100% 处的颜色
|
|
|
- },
|
|
|
- ],
|
|
|
- },
|
|
|
- },
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- value: 40,
|
|
|
- name: '未上线',
|
|
|
- itemStyle: {
|
|
|
- normal: {
|
|
|
- color: {
|
|
|
- // 完成的圆环的颜色
|
|
|
- colorStops: [
|
|
|
- {
|
|
|
- offset: 0,
|
|
|
- color: '#FFA600', // 0% 处的颜色
|
|
|
- },
|
|
|
- {
|
|
|
- offset: 1,
|
|
|
- color: '#FEDB65', // 100% 处的颜色
|
|
|
- },
|
|
|
- ],
|
|
|
- },
|
|
|
- },
|
|
|
- },
|
|
|
- },
|
|
|
- ],
|
|
|
- label: {
|
|
|
- show: true,
|
|
|
- position: 'outside',
|
|
|
- formatter: '{d}%',
|
|
|
- color: '#FFFFFF',
|
|
|
- },
|
|
|
- labelLine: {
|
|
|
- normal: {
|
|
|
- length: 80,
|
|
|
- lineStyle: {
|
|
|
- width: 1,
|
|
|
- },
|
|
|
- },
|
|
|
+ splitLine: {
|
|
|
+ show: false,
|
|
|
},
|
|
|
+ type: "value",
|
|
|
+ show: false,
|
|
|
},
|
|
|
- // 内圆 + 中间文字
|
|
|
+ ],
|
|
|
+ yAxis: [
|
|
|
{
|
|
|
- type: 'pie',
|
|
|
- radius: ['60%', '40%'],
|
|
|
- center: ['50%', '50%'],
|
|
|
- hoverAnimation: false,
|
|
|
- z: 10,
|
|
|
- label: {
|
|
|
- position: 'center',
|
|
|
- formatter: () => {
|
|
|
- return '佣金总额\r\n{total|100} 个';
|
|
|
+ splitLine: {
|
|
|
+ show: false,
|
|
|
+ },
|
|
|
+ axisLine: {
|
|
|
+ show: false,
|
|
|
+ },
|
|
|
+ type: "category",
|
|
|
+ axisTick: {
|
|
|
+ show: false,
|
|
|
+ },
|
|
|
+ inverse: true,
|
|
|
+ data: result.map((item) => item.name),
|
|
|
+ axisLabel: {
|
|
|
+ fontSize: 14,
|
|
|
+ inside: true,
|
|
|
+ formatter: (name, index) => {
|
|
|
+ const id = index + 1;
|
|
|
+ return `{count${id}|${id}}`;
|
|
|
},
|
|
|
rich: {
|
|
|
- total: {
|
|
|
- fontSize: 24,
|
|
|
- color: '#FFFFFF',
|
|
|
+ count1: {
|
|
|
+ padding: [0, 0, 33, 0],
|
|
|
+ align: "center",
|
|
|
+ color: colorList[0],
|
|
|
+ fontSize: 14,
|
|
|
+ fontFamily: "Source Han Sans CN",
|
|
|
},
|
|
|
- },
|
|
|
- color: '#FFFFFF',
|
|
|
- fontSize: 16,
|
|
|
- lineHeight: 30,
|
|
|
- },
|
|
|
- data: [
|
|
|
- {
|
|
|
- value: 30,
|
|
|
- name: '运行中',
|
|
|
- itemStyle: {
|
|
|
- normal: {
|
|
|
- color: {
|
|
|
- // 完成的圆环的颜色
|
|
|
- colorStops: [
|
|
|
- {
|
|
|
- offset: 0,
|
|
|
- color: '#0060FF', // 0% 处的颜色
|
|
|
- },
|
|
|
- {
|
|
|
- offset: 1,
|
|
|
- color: '#00EFFE', // 100% 处的颜色
|
|
|
- },
|
|
|
- ],
|
|
|
- },
|
|
|
- opacity: 0.5,
|
|
|
- },
|
|
|
+ count2: {
|
|
|
+ padding: [0, 0, 33, 0],
|
|
|
+ align: "center",
|
|
|
+ color: colorList[1],
|
|
|
+ fontSize: 14,
|
|
|
+ fontFamily: "Source Han Sans CN",
|
|
|
},
|
|
|
- },
|
|
|
- {
|
|
|
- value: 30,
|
|
|
- name: '已停止',
|
|
|
- itemStyle: {
|
|
|
- normal: {
|
|
|
- color: {
|
|
|
- // 完成的圆环的颜色
|
|
|
- colorStops: [
|
|
|
- {
|
|
|
- offset: 0,
|
|
|
- color: '#44D7B6', // 0% 处的颜色
|
|
|
- },
|
|
|
- {
|
|
|
- offset: 1,
|
|
|
- color: '#6DD400', // 100% 处的颜色
|
|
|
- },
|
|
|
- ],
|
|
|
- },
|
|
|
- opacity: 0.5,
|
|
|
- },
|
|
|
+ count3: {
|
|
|
+ padding: [0, 0, 33, 0],
|
|
|
+ align: "center",
|
|
|
+ color: colorList[2],
|
|
|
+ fontSize: 14,
|
|
|
+ fontFamily: "Source Han Sans CN",
|
|
|
},
|
|
|
- },
|
|
|
- {
|
|
|
- value: 40,
|
|
|
- name: '未上线',
|
|
|
- itemStyle: {
|
|
|
- normal: {
|
|
|
- color: {
|
|
|
- // 完成的圆环的颜色
|
|
|
- colorStops: [
|
|
|
- {
|
|
|
- offset: 0,
|
|
|
- color: '#FFA600', // 0% 处的颜色
|
|
|
- },
|
|
|
- {
|
|
|
- offset: 1,
|
|
|
- color: '#FEDB65', // 100% 处的颜色
|
|
|
- },
|
|
|
- ],
|
|
|
- },
|
|
|
- opacity: 0.5,
|
|
|
- },
|
|
|
+ count4: {
|
|
|
+ padding: [0, 0, 33, 0],
|
|
|
+ align: "center",
|
|
|
+ color: colorList[3],
|
|
|
+ fontSize: 14,
|
|
|
+ fontFamily: "Source Han Sans CN",
|
|
|
},
|
|
|
- },
|
|
|
- ],
|
|
|
- labelLine: {
|
|
|
- show: false,
|
|
|
- },
|
|
|
- },
|
|
|
-
|
|
|
- // 紫色线1 + 点
|
|
|
- {
|
|
|
- name: 'ring5',
|
|
|
- type: 'custom',
|
|
|
- coordinateSystem: 'none',
|
|
|
- renderItem: function (params, api) {
|
|
|
- return {
|
|
|
- type: 'arc',
|
|
|
- shape: {
|
|
|
- cx: api.getWidth() / 2,
|
|
|
- cy: api.getHeight() / 2,
|
|
|
- r: Math.min(api.getWidth(), api.getHeight()) / 2 * outerRidus1,// 180,
|
|
|
- startAngle: ((0 + angle) * Math.PI) / 180,
|
|
|
- endAngle: ((90 + angle) * Math.PI) / 180,
|
|
|
- },
|
|
|
- style: {
|
|
|
- stroke: '#8383FA',
|
|
|
- fill: 'transparent',
|
|
|
- lineWidth: 1.5,
|
|
|
+ count5: {
|
|
|
+ padding: [0, 0, 33, 0],
|
|
|
+ align: "center",
|
|
|
+ color: colorList[4],
|
|
|
+ fontSize: 14,
|
|
|
+ fontFamily: "Source Han Sans CN",
|
|
|
},
|
|
|
- silent: true,
|
|
|
- };
|
|
|
+ },
|
|
|
},
|
|
|
- data: [0],
|
|
|
},
|
|
|
- // 紫色线1点
|
|
|
{
|
|
|
- name: 'ring5', //紫点
|
|
|
- type: 'custom',
|
|
|
- coordinateSystem: 'none',
|
|
|
- renderItem: function (params, api) {
|
|
|
- let x0 = api.getWidth() / 2;
|
|
|
- let y0 = api.getHeight() / 2;
|
|
|
- let r = Math.min(api.getWidth(), api.getHeight()) / 2 * outerRidus1;
|
|
|
- let point = getCirlPoint(x0, y0, r, 0 + angle);
|
|
|
- return {
|
|
|
- type: 'circle',
|
|
|
- shape: {
|
|
|
- cx: point.x,
|
|
|
- cy: point.y,
|
|
|
- r: 4,
|
|
|
+ type: "category",
|
|
|
+ inverse: true,
|
|
|
+ axisTick: "none",
|
|
|
+ axisLine: "none",
|
|
|
+ show: true,
|
|
|
+ axisLabel: {
|
|
|
+ textStyle: {
|
|
|
+ color: "#fff",
|
|
|
+ fontSize: 12,
|
|
|
+ },
|
|
|
+ verticalAlign: "bottom",
|
|
|
+ padding: [0, 5, 10, 0],
|
|
|
+ inside: true,
|
|
|
+ formatter: function (value) {
|
|
|
+ return `{name|客流指数:}{value|${value}}`;
|
|
|
+ },
|
|
|
+ rich: {
|
|
|
+ name: {
|
|
|
+ align: "center",
|
|
|
+ color: "#D3E5FF",
|
|
|
+ fontSize: 14,
|
|
|
+ fontFamily: "Source Han Sans CN",
|
|
|
},
|
|
|
- style: {
|
|
|
- stroke: '#8450F9', //绿
|
|
|
- fill: '#8450F9',
|
|
|
+ value: {
|
|
|
+ align: "center",
|
|
|
+ color: "#fff",
|
|
|
+ fontSize: 14,
|
|
|
+ fontFamily: "Source Han Sans CN",
|
|
|
},
|
|
|
- silent: true,
|
|
|
- };
|
|
|
+ },
|
|
|
},
|
|
|
- data: [0],
|
|
|
+ data: result.map((item) => item.value),
|
|
|
},
|
|
|
- // 蓝色
|
|
|
+ ],
|
|
|
+ series: [
|
|
|
{
|
|
|
- name: 'ring5',
|
|
|
- type: 'custom',
|
|
|
- coordinateSystem: 'none',
|
|
|
- renderItem: function (params, api) {
|
|
|
- return {
|
|
|
- type: 'arc',
|
|
|
- shape: {
|
|
|
- cx: api.getWidth() / 2,
|
|
|
- cy: api.getHeight() / 2,
|
|
|
- r: Math.min(api.getWidth(), api.getHeight()) / 2 * outerRidus1,// 180,
|
|
|
- startAngle: ((180 + angle) * Math.PI) / 180,
|
|
|
- endAngle: ((270 + angle) * Math.PI) / 180,
|
|
|
- },
|
|
|
- style: {
|
|
|
- stroke: '#4386FA',
|
|
|
- fill: 'transparent',
|
|
|
- lineWidth: 1.5,
|
|
|
- },
|
|
|
- silent: true,
|
|
|
- };
|
|
|
+ name: "",
|
|
|
+ type: "bar",
|
|
|
+ barWidth: 5, // 柱子宽度
|
|
|
+ MaxSize: 0,
|
|
|
+ showBackground: true,
|
|
|
+ barBorderRadius: [30, 0, 0, 30],
|
|
|
+ backgroundStyle: {
|
|
|
+ color: "rgba(50, 60, 86, 1)",
|
|
|
},
|
|
|
- data: [0],
|
|
|
- },
|
|
|
- {
|
|
|
- name: 'ring5', // 蓝色
|
|
|
- type: 'custom',
|
|
|
- coordinateSystem: 'none',
|
|
|
- renderItem: function (params, api) {
|
|
|
- let x0 = api.getWidth() / 2;
|
|
|
- let y0 = api.getHeight() / 2;
|
|
|
- let r = Math.min(api.getWidth(), api.getHeight()) / 2 * outerRidus1// 180
|
|
|
- let point = getCirlPoint(x0, y0, r, 180 + angle);
|
|
|
- return {
|
|
|
- type: 'circle',
|
|
|
- shape: {
|
|
|
- cx: point.x,
|
|
|
- cy: point.y,
|
|
|
- r: 4,
|
|
|
- },
|
|
|
- style: {
|
|
|
- stroke: '#4386FA', //绿
|
|
|
- fill: '#4386FA',
|
|
|
- },
|
|
|
- silent: true,
|
|
|
- };
|
|
|
+ label: {
|
|
|
+ show: true,
|
|
|
+ offset: [40, -17],
|
|
|
+ color: "#D3E5FF",
|
|
|
+ fontWeight: 500,
|
|
|
+ position: "left",
|
|
|
+ align: "left",
|
|
|
+ fontSize: 14,
|
|
|
+ fontFamily: "Source Han Sans CN",
|
|
|
+ formatter: function (params) {
|
|
|
+ return params.data.name;
|
|
|
+ },
|
|
|
},
|
|
|
- data: [0],
|
|
|
- },
|
|
|
- // 橘色
|
|
|
- {
|
|
|
- name: 'ring5',
|
|
|
- type: 'custom',
|
|
|
- coordinateSystem: 'none',
|
|
|
- renderItem: function (params, api) {
|
|
|
+ data: result.map((item, index) => {
|
|
|
return {
|
|
|
- type: 'arc',
|
|
|
- shape: {
|
|
|
- cx: api.getWidth() / 2,
|
|
|
- cy: api.getHeight() / 2,
|
|
|
- r: Math.min(api.getWidth(), api.getHeight()) / 2 * outerRidus2,// 200,
|
|
|
- startAngle: ((250 + -angle) * Math.PI) / 180,
|
|
|
- endAngle: ((10 + -angle) * Math.PI) / 180,
|
|
|
- },
|
|
|
- style: {
|
|
|
- stroke: '#0CD3DB',
|
|
|
- fill: 'transparent',
|
|
|
- lineWidth: 1.5,
|
|
|
+ name: item.name,
|
|
|
+ value: item.value,
|
|
|
+ itemStyle: {
|
|
|
+ barBorderRadius: [3, 0, 0, 3],
|
|
|
+ color: {
|
|
|
+ type: "linear",
|
|
|
+ x: 0,
|
|
|
+ y: 0,
|
|
|
+ x2: 1,
|
|
|
+ y2: 1,
|
|
|
+ colorStops: [
|
|
|
+ {
|
|
|
+ offset: 0,
|
|
|
+ color: colorListA[index],
|
|
|
+ },
|
|
|
+ {
|
|
|
+ offset: 1,
|
|
|
+ color: colorList[index],
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
},
|
|
|
- silent: true,
|
|
|
};
|
|
|
- },
|
|
|
- data: [0],
|
|
|
+ }),
|
|
|
},
|
|
|
{
|
|
|
- name: 'ring5', //绿点
|
|
|
- type: 'custom',
|
|
|
- coordinateSystem: 'none',
|
|
|
- renderItem: function (params, api) {
|
|
|
- let x0 = api.getWidth() / 2;
|
|
|
- let y0 = api.getHeight() / 2;
|
|
|
- let r = Math.min(api.getWidth(), api.getHeight()) / 2 * outerRidus2 // 200;
|
|
|
- let point = getCirlPoint(x0, y0, r, 250 + -angle);
|
|
|
- return {
|
|
|
- type: 'circle',
|
|
|
- shape: {
|
|
|
- cx: point.x,
|
|
|
- cy: point.y,
|
|
|
- r: 4,
|
|
|
- },
|
|
|
- style: {
|
|
|
- stroke: '#0CD3DB', //绿
|
|
|
- fill: '#0CD3DB',
|
|
|
- },
|
|
|
- silent: true,
|
|
|
- };
|
|
|
+ name: "外圆",
|
|
|
+ type: "scatter",
|
|
|
+ emphasis: {
|
|
|
+ scale: false,
|
|
|
},
|
|
|
- data: [0],
|
|
|
- },
|
|
|
- // 粉色
|
|
|
- {
|
|
|
- name: 'ring5',
|
|
|
- type: 'custom',
|
|
|
- coordinateSystem: 'none',
|
|
|
- renderItem: function (params, api) {
|
|
|
+ showSymbol: true,
|
|
|
+ symbol: "circle",
|
|
|
+ symbolSize: 8, // 进度条白点
|
|
|
+ z: 2,
|
|
|
+ data: result.map((item, index) => {
|
|
|
return {
|
|
|
- type: 'arc',
|
|
|
- shape: {
|
|
|
- cx: api.getWidth() / 2,
|
|
|
- cy: api.getHeight() / 2,
|
|
|
- r: Math.min(api.getWidth(), api.getHeight()) / 2 * outerRidus2,// 200,,
|
|
|
- startAngle: ((70 + -angle) * Math.PI) / 180,
|
|
|
- endAngle: ((200 + -angle) * Math.PI) / 180,
|
|
|
- },
|
|
|
- style: {
|
|
|
- stroke: '#FF8E89',
|
|
|
- fill: 'transparent',
|
|
|
- lineWidth: 1.5,
|
|
|
+ name: item.name,
|
|
|
+ value: item.value,
|
|
|
+ itemStyle: {
|
|
|
+ color: colorListB[index],
|
|
|
+ borderColor: colorListC[index],
|
|
|
+ borderWidth: 12,
|
|
|
+ shadowColor: colorListC[index],
|
|
|
+ shadowBlur: 10,
|
|
|
+ opacity: 1,
|
|
|
},
|
|
|
- silent: true,
|
|
|
};
|
|
|
+ }),
|
|
|
+ animationDelay: 500,
|
|
|
+ }, {
|
|
|
+ name: "外圆",
|
|
|
+ type: "scatter",
|
|
|
+ emphasis: {
|
|
|
+ scale: false,
|
|
|
},
|
|
|
- data: [0],
|
|
|
- },
|
|
|
- //粉色点
|
|
|
- {
|
|
|
- name: 'ring5',
|
|
|
- type: 'custom',
|
|
|
- coordinateSystem: 'none',
|
|
|
- renderItem: function (params, api) {
|
|
|
- let x0 = api.getWidth() / 2;
|
|
|
- let y0 = api.getHeight() / 2;
|
|
|
- let r = Math.min(api.getWidth(), api.getHeight()) / 2 * outerRidus2// 200,;
|
|
|
- let point = getCirlPoint(x0, y0, r, 70 + -angle);
|
|
|
+ showSymbol: true,
|
|
|
+ symbol: "circle",
|
|
|
+ symbolSize: 3, // 进度条白点
|
|
|
+ z: 3,
|
|
|
+ data: result.map((item, index) => {
|
|
|
return {
|
|
|
- type: 'circle',
|
|
|
- shape: {
|
|
|
- cx: point.x,
|
|
|
- cy: point.y,
|
|
|
- r: 4,
|
|
|
- },
|
|
|
- style: {
|
|
|
- stroke: '#FF8E89', //粉
|
|
|
- fill: '#FF8E89',
|
|
|
+ name: item.name,
|
|
|
+ value: item.value,
|
|
|
+ itemStyle: {
|
|
|
+ color: colorListB[index],
|
|
|
+ borderColor: colorListC[index],
|
|
|
+ borderWidth: 30,
|
|
|
+ shadowColor: colorListC[index],
|
|
|
+ shadowBlur: 10,
|
|
|
+ opacity: 1,
|
|
|
},
|
|
|
- silent: true,
|
|
|
};
|
|
|
- },
|
|
|
- data: [0],
|
|
|
+ }),
|
|
|
+ animationDelay: 500,
|
|
|
},
|
|
|
],
|
|
|
};
|
|
|
-
|
|
|
- //获取圆上面某点的坐标(x0,y0表示坐标,r半径,angle角度)
|
|
|
- function getCirlPoint(x0, y0, r, angle) {
|
|
|
- let x1 = x0 + r * Math.cos((angle * Math.PI) / 180);
|
|
|
- let y1 = y0 + r * Math.sin((angle * Math.PI) / 180);
|
|
|
- return {
|
|
|
- x: x1,
|
|
|
- y: y1,
|
|
|
- };
|
|
|
- }
|
|
|
-
|
|
|
chartDom.setOption(option)
|
|
|
};
|
|
|
// 生命周期
|