2.2.0 • Published 11 days ago

@ray-js/stat-charts v2.2.0

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

通用统计图表

安装

npm install @ray-js/stat-charts

使用示例

展示全年气温统计

import StatCharts from '@ray-js/stat-charts';

<Charts
  devIdList={['vdevo168473759041567']} // 设备 id
  dpList={[{ id: 27, name: '温度' }]} // 功能点 id 及 名称
  unit="℃" // 数据单位
  range="1month" // 以每个月为一个点
  type="avg" // 统计类型, 统计该月的平均值
  startDate="202301" // 数据开始时间 1月开始
  endDate="202312" // 数据结束时间 12月结束
  count={25} // 副标题上的数据
  chartType={'line'} // 折线图
/>;

统计设备能耗数据

<Charts
  devIdList={['vdevo168473759041567']}
  dpList={[
    { id: 27, name: '温控器' },
    { id: 28, name: '氛围灯' },
  ]}
  unit="kwH" // 单位 千瓦时
  range="15min" // 每 15 分钟为一个点
  startDate="20230522" // 统计当天的数据
  dataZoom={-30} // 可缩放滑动 默认展示数据的右侧 30%
  chartType="bar" // 柱状图
/>
3.0.0-beta-1

11 days ago

2.2.0-beta-1

6 months ago

2.0.4-beta-1

9 months ago

2.0.5-beta-1

9 months ago

2.1.2

7 months ago

2.2.0

6 months ago

2.1.1

7 months ago

2.1.3

7 months ago

2.1.0

7 months ago

2.0.3

11 months ago

2.0.2

12 months ago

2.0.1

12 months ago

2.0.0

12 months ago

1.1.0

12 months ago

1.0.2

12 months ago