diff --git a/src/packages/components/Charts/Pies/PieCommon/config.ts b/src/packages/components/Charts/Pies/PieCommon/config.ts
index 6697ada2..1af07f40 100644
--- a/src/packages/components/Charts/Pies/PieCommon/config.ts
+++ b/src/packages/components/Charts/Pies/PieCommon/config.ts
@@ -5,13 +5,26 @@ import dataJson from './data.json'
export const includes = ['legend']
+export enum PieTypeEnum {
+ NORMAL = '常规图',
+ RING = '环形图',
+ ROSE = '玫瑰图'
+}
+
+export const PieTypeObject = {
+ [PieTypeEnum.NORMAL]: 'nomal',
+ [PieTypeEnum.RING]: 'ring',
+ [PieTypeEnum.ROSE]: 'rose'
+}
+
const option = {
+ type: 'ring',
tooltip: {
show: true,
trigger: 'item'
},
legend: {
- show: true,
+ show: true
},
dataset: { ...dataJson },
series: [
@@ -19,6 +32,7 @@ const option = {
type: 'pie',
radius: ['40%', '65%'],
center: ['50%', '60%'],
+ roseType: false,
avoidLabelOverlap: false,
itemStyle: {
show: true,
diff --git a/src/packages/components/Charts/Pies/PieCommon/config.vue b/src/packages/components/Charts/Pies/PieCommon/config.vue
index 8dc6e327..55aa8de5 100644
--- a/src/packages/components/Charts/Pies/PieCommon/config.vue
+++ b/src/packages/components/Charts/Pies/PieCommon/config.vue
@@ -1,12 +1,20 @@
+
+
+
+
+
+
+
diff --git a/src/packages/components/Charts/Pies/PieCommon/index.vue b/src/packages/components/Charts/Pies/PieCommon/index.vue
index 49903a6c..3f47c66a 100644
--- a/src/packages/components/Charts/Pies/PieCommon/index.vue
+++ b/src/packages/components/Charts/Pies/PieCommon/index.vue
@@ -3,7 +3,7 @@