mirror of
https://gitee.com/dromara/go-view.git
synced 2026-05-12 00:00:01 +08:00
feat: 饼图类型新增可选
This commit is contained in:
@@ -5,7 +5,20 @@ 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'
|
||||
@@ -19,6 +32,7 @@ const option = {
|
||||
type: 'pie',
|
||||
radius: ['40%', '65%'],
|
||||
center: ['50%', '60%'],
|
||||
roseType: false,
|
||||
avoidLabelOverlap: false,
|
||||
itemStyle: {
|
||||
show: true,
|
||||
|
||||
Reference in New Issue
Block a user