2.2.0 • Published 11 months ago

lcap-echarts-bar v2.2.0

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

LcapEchartsBar 柱状图

Chart

柱状图

示例

基本用法

<lcap-echarts-bar 
    xAxis="fakeXAxis" 
    yAxis="指标1,指标2,指标3"
    xAxisTitle="维度" 
    yAxisTitle="指标" 
    title="标题"
    theme="theme3"
    legendName="数学,语文,英语"
    :titleFontSize=16
    titleFontStyle="italic"
    :allowDownload=true
    :allowShowHint=true
    :allowShowLegend=true
    axisSplitLine="both"
    axisSplitLineType="solid"
    labelPosition="inside"
    undefinedToZero='empty'
    :showXAxisLine=true
    :showYAxisLine=true
    :showXAxisLabel=true
    :showYAxisLabel=true
    xAxisType="xBase"
    xAxisLabelRotate="0">
</lcap-echarts-bar>

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''设置度量(统计值)
xAxisTypestring[object Object][object Object]'xBase'undefined
axisSplitLinestring[object Object][object Object][object Object][object Object]'horizontal'设置坐标系网格线
axisSplitLineTypestring[object Object][object Object][object Object]'solid'设置网格线线型
labelPositionstring[object Object][object Object][object Object][object Object][object Object][object Object]'inside'设置数据标签位置
titlestring'标题'设置主标题
themestring[object Object][object Object][object Object][object Object]'theme1'设置图表配色方案
allowShowHintbooleantrue设置是否显示提示
allowShowLegendbooleantrue设置是否显示图例
legendNamestring''设置图例别名;修改成功后,图例名字会从"指标"改为"别名"
xAxisTitlestring'X轴标题'设置x轴标题
showXAxisLinebooleantrue设置是否显示X轴轴线
showXAxisLabelbooleantrue设置是否显示X轴文字标签
xAxisLabelRotatestring[object Object][object Object][object Object][object Object]'0'设置显示X轴文字标签的方向
yAxisTitlestring'Y轴标题'设置Y轴标题
showYAxisLinebooleantrue设置是否显示Y轴轴线
showYAxisLabelbooleantrue设置是否显示Y轴数值标签
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