Commit 8a303da5 authored by 陈龙's avatar 陈龙

feat: 升级历史曲线

parent 82a9265e
...@@ -16,7 +16,7 @@ const Demo = () => { ...@@ -16,7 +16,7 @@ const Demo = () => {
}, },
}, },
grid: { grid: {
right: '20%', right: '10%',
}, },
toolbox: { toolbox: {
feature: { feature: {
......
...@@ -18,7 +18,7 @@ export const buildDefaultLegend = (option) => { ...@@ -18,7 +18,7 @@ export const buildDefaultLegend = (option) => {
textStyle: { textStyle: {
padding: [0, 0, 0, 4], padding: [0, 0, 0, 4],
color: '#2d2d2d', color: '#2d2d2d',
width: 80, width: 120,
overflow:'truncate' overflow:'truncate'
}, },
tooltip:{ tooltip:{
......
...@@ -30,7 +30,7 @@ path: / ...@@ -30,7 +30,7 @@ path: /
## 多图表 ## 多图表
<code src="./demos/GridDemo.js"></code> <!-- <code src="./demos/GridDemo.js"></code> -->
## API ## API
......
...@@ -29,7 +29,6 @@ const SingleChart = memo((props) => { ...@@ -29,7 +29,6 @@ const SingleChart = memo((props) => {
showMarkLine: true, showMarkLine: true,
showPoint: true, showPoint: true,
chartType, chartType,
// justLine,
showBoxOption, showBoxOption,
special special
}; };
......
...@@ -4,26 +4,32 @@ import { MobileHistoryChart } from "../mobile"; ...@@ -4,26 +4,32 @@ import { MobileHistoryChart } from "../mobile";
const deviceParams = [ const deviceParams = [
/*10.182*/ /*10.182*/
/* { /* {
deviceCode: 'EGBF00000141', deviceCode: 'EGBF00000141',
// sensors: '进水压力,出水瞬时流量,出水累计流量', // sensors: '进水压力,出水瞬时流量,出水累计流量',
sensors: '进水压力', sensors: '进水压力',
deviceType: '熊猫二供泵房', deviceType: '熊猫二供泵房',
pointAddressID: 208, pointAddressID: 208,
},*/ }, */
/* { /* {
"deviceCode": "SYJ00000008", "deviceCode": "SYJ00000008",
"sensors": "瞬时流量", "sensors": "瞬时流量",
"deviceType": "水源井" "deviceType": "水源井"
},*/ },
{ {
deviceCode: 'EGJZ00000197', deviceCode: 'EGJZ00000197',
sensors: '进水压力,出水压力,出水瞬时流量,出水累计流量', sensors: '进水压力,出水压力,出水瞬时流量,出水累计流量',
// sensors: '1#变频器运行频率', // sensors: '1#变频器运行频率',
deviceType: '二供机组', deviceType: '二供机组',
// pointAddressID: 208, // pointAddressID: 208,
} }, */
/* {
deviceCode: 'EGJZ00000198',
sensors: '进水压力,出水压力,出水瞬时流量,出水累计流量',
// sensors: '1#变频器运行频率',
deviceType: '二供机组',
// pointAddressID: 208,
}, */
/* { /* {
// deviceCode: 'EGBF00000002', // deviceCode: 'EGBF00000002',
// deviceCode: 'EGBF00000018', // deviceCode: 'EGBF00000018',
...@@ -35,12 +41,12 @@ const deviceParams = [ ...@@ -35,12 +41,12 @@ const deviceParams = [
deviceType: '熊猫压力表', deviceType: '熊猫压力表',
pointAddressID: 4, pointAddressID: 4,
},*/ },*/
/* { {
deviceCode: 'EGJZ00000226', deviceCode: 'EGJZ00000226',
sensors: '出水压力', sensors: '出水压力',
deviceType: '二供机组', deviceType: '二供机组',
pointAddressID: 4, pointAddressID: 4,
},*/ },
/* { /* {
"deviceCode": "LLJ00000055", "deviceCode": "LLJ00000055",
"sensors": "正累计流量,瞬时流量", "sensors": "正累计流量,瞬时流量",
...@@ -52,51 +58,51 @@ const deviceParams = [ ...@@ -52,51 +58,51 @@ const deviceParams = [
"deviceType": "二供机组" "deviceType": "二供机组"
}*/ }*/
// 邳州张楼水厂 // 邳州张楼水厂
/* { {
"deviceCode": "SC00000023", "deviceCode": "SC00000023",
"sensors": "瞬时流量", "sensors": "瞬时流量",
"deviceType": "水厂" "deviceType": "水厂"
} */ },
/* { {
"deviceCode": "JFJ00000001", "deviceCode": "JFJ00000001",
"sensors": "沉淀池投矾量瞬时,", "sensors": "沉淀池投矾量瞬时,",
"deviceType": "加矾间" "deviceType": "加矾间"
}*/ },
/* { {
"deviceCode": "QSBF00000001", "deviceCode": "QSBF00000001",
"sensors": "取水浊度", "sensors": "取水浊度",
"deviceType": "取水泵房" "deviceType": "取水泵房"
}*/ },
/* { {
"deviceCode": "SC00000023", "deviceCode": "SC00000023",
"sensors": "出水瞬时流量", "sensors": "出水瞬时流量",
"deviceType": "水厂" "deviceType": "水厂"
}*/ },
// { {
// "deviceCode": "XNCDC00000001", "deviceCode": "XNCDC00000001",
// "sensors": "沉淀池1号进水管流量", "sensors": "沉淀池1号进水管流量",
// "deviceType": "絮凝沉淀池" "deviceType": "絮凝沉淀池"
// } },
/* { {
"deviceCode": "LLJ00000001", "deviceCode": "LLJ00000001",
"sensors": "瞬时流量", "sensors": "瞬时流量",
"deviceType": "流量计" "deviceType": "流量计"
}*/ },
/*邳州*/ /*邳州*/
/* { {
deviceCode: 'EGJZ00000027', deviceCode: 'EGJZ00000027',
sensors: '2#变频器运行频率', sensors: '2#变频器运行频率',
deviceType: '二供机组', deviceType: '二供机组',
}*/ },
/*确山*/ /*确山*/
/*泵3状态*/ /*泵3状态*/
/* { /* {
// EGJZ00000003 // EGJZ00000003
deviceCode: 'EGJZ00000003', deviceCode: 'EGJZ00000003',
// sensors: '3#频率', // sensors: '3#频率',
sensors: '出1累计流量', sensors: '出1累计流量',
deviceType: '二供机组', deviceType: '二供机组',
}*/ } */
]; ];
const Demo = () => { const Demo = () => {
return ( return (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment