0.0.9 • Published 2 years ago

@castianta/chart-line-lc v0.0.9

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

lightningchart 版曲线图表

@castianta/chart-line-lc

曲线图表

API

参数名说明必填类型默认值备注
card面板ProCardProps--
dataSource数据源ObjectDataSourceProps-见下
legend图例LegendProps-见下
init初始化图表配置参数InitProps-见下
chart3D2D 3D 切换Booleanfalse-
xAxis默认 x 轴配置AxisProps-见下
yAxis默认 y 轴配置AxisProps-见下
chartRender自定义渲染方式,此方法开启默认渲染方式不渲染,chart 图表实例,config 配置参数,dataSource 传入数据Function(chart,config:{line:Function,axis:Function},dataSource)=>{}config.line = ({line,list:dataSource[index],index})=>line , config.axis = ({axis,config:AxisProps})=>axis

InitProps

参数名说明必填类型默认值备注
width图表宽度Number 或 undefinedundefined-
height图表高度Number 或 undefined400-
title图表标题String--
theme皮肤ThemesProps--
emptyFilltitle 空置状态Booleanfalse-
titleColortitle 填充色String#000-
boundingBox3D 视图盒子大小Object{x:1,y:0.5,z:0.4}-

DataSourceProps

参数名说明必填类型默认值备注
name曲线名称String--
data曲线数据Object[]{x,y,z}-
color线条颜色String#000-
thickness线条厚度Number1-

LegendProps

参数名说明必填类型默认值备注
show显隐Booleanfalse-
title标题Stringlegend-
emptyFilltitle 空置状态Booleanfalse-
titleColortitle 填充色String#000-
position位置 disable 为 false 默认系统配置 true 自定义位置Object#000{dislabe:false,point:{x:0,y:0}}
direction条目排列方向'vertical' 或 'horizontal'vertical-
entries使用回调函数设置 LegendBoxEntries 的样式(entry, component) => entry.setTextFillStyle(new SolidFill({ color: ColorRGBA(255, 0, 0) }))() => undefined-

AxisProps

参数名说明必填类型默认值备注
title轴名称String--
scrollStrategy滚动策略fitting 或 expansion 或 progressive 或 regressivefitting-
tickStrategy刻度策略Empty 或 Numeric 或 DateTime 或 TimeNumeric-
tickStrategyStyler刻度策略回调(TickStrategyStyler)=>tickStrategy--
animationScroll动画滚动boolean 或 undefinedundefined-
interval轴刻度间隔Arrayundefined[start: number, end: number, animate: number 或 boolean 或 undefined, disableScrolling: boolean 或 undefined]
0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago