2.2.0 • Published 11 months ago

lcap-echarts-line v2.2.0

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

LcapEchartsLine 折线图

Chart

折线图

示例

基本用法

<template>
  <div>
    <lcap-echarts-line
      ref="line"
      xAxis="fakeXAxis"
      yAxis="指标1,指标"
      xAxisTitle="维度1111"
      yAxisTitle="指标1222"
      title="标题111"
      theme="theme1"
      legendName="数学"
      :titleFontSize=16
      titleFontStyle="italic"
      :allowDownload=true
      :allowShowHint=true
      :allowShowLegend=true
      :showXAxisLine=true
      :showYAxisLine=true
      :showXAxisLabel=true
      :showYAxisLabel=true
      axisSplitLine="horizontal"
      axisSplitLineType="dashed"
      :areaFilled=false
      lineStyleSymbol="emptyCircle"
      lineStyleSymbolSize="8"
      lineType="dotted"
      lineStyleSmooth='smooth'
      labelPosition="top"
      :initialLoad=false
      undefinedToZero='zero'
      style="--labelFontSize:18px;width: 500px; height:400px; --line-item-color: blue; 
    --label-font-size: 14;
    ">
    </lcap-echarts-line>
    <u-button @click="reload">reload</u-button>
  </div>
</template>
<script>
export default {
  methods: {
    reload() {
    console.log('reload');
      this.$refs.line.reload();
    }
  }
}
</script>

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'标题'设置图表标题
axisSplitLinestring[object Object][object Object][object Object][object Object]'horizontal'设置坐标系网格线
axisSplitLineTypestring[object Object][object Object][object Object]'solid'设置网格线线型
themestring[object Object][object Object][object Object][object Object]'theme1'设置图表配色方案
labelPositionstring[object Object][object Object][object Object][object Object][object Object][object Object]'top'设置数据标签位置
allowShowHintbooleantrue设置是否显示提示
allowShowLegendbooleantrue设置是否显示图例
legendNamestring''设置图例别名;修改成功后,图例名字会从"指标"改为"别名"
areaFilledbooleanfalse设置是否填充折线下方区域
lineTypestring[object Object][object Object][object Object]'solid'设置线条类型
lineStyleSmoothstring[object Object][object Object]'normal'设置线条样式
lineStyleSymbolstring[object Object][object Object][object Object][object Object][object Object][object Object][object Object][object Object]'emptyCircle'undefined
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