2.2.0 • Published 11 months ago

lcap-echarts-pie v2.2.0

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

LcapEchartsPie 饼图

Chart

饼图

示例

基本用法

<lcap-echarts-pie
    theme=""  
    xAxis="fakeXAxis" 
    yAxis="指标1"
    :titleFontSize=18
    titleFontStyle="normal"
    :allowDownload=true
    :allowShowHint=true
    :allowShowLegend=true
    legendName="数学"
    :showLabelName=true
    :showLabelValue=true
    :showLabelPercent=true
    legendScroll="scroll"
    legendPosition="top"
    undefinedToZero="empty"
    pieType="semiCircle"
    style="--pie-sectors-border-color: red; --label-font-color: blue;"
></lcap-echarts-pie>

API

Props/Attrs

Prop/AttrTypeOptionsDefaultDescription
data-sourceArray\<Item> | Function | object | DataSource表格的数据源,数据集对象或者返回数据集的逻辑
data-schemaschema表格每一行的数据类型
undefinedToZerostring[object Object][object Object]'empty'设置将未定义的值如undefined,null转换为0或空距
initialLoadbooleantrue是否在初始时立即加载
xAxisstring''设置维度(统计类别)
yAxisstring''设置度量(统计值)
titlestring'标题'设置主标题
themestring[object Object][object Object][object Object][object Object]'theme1'设置图表配色方案
showLabelNamebooleantrue设置是否显示维度标签
showLabelValuebooleantrue设置是否显示数值标签
showLabelPercentbooleantrue设置是否显示占比标签
allowShowHintbooleantrue设置是否显示提示
allowShowLegendbooleantrue设置是否显示图例
legendPositionstring[object Object][object Object][object Object][object Object]'bottom'设置图例位置
legendScrollstring[object Object][object Object]'normal'设置图例是否滚动
pieTypestring[object Object][object Object][object Object]'pie'undefined
titleFontStylestring[object Object][object Object]'normal'设置普通文字字号
allowDownloadbooleantrue允许用户设置保存图片

Methods

reload()

刷新数据

ParamTypeDefaultDescription
2.2.0

11 months ago

2.0.8

1 year ago

2.0.5

1 year ago

2.0.4

1 year ago

2.0.3

2 years ago