Browse Source

图表大小

master
lijunjie 3 years ago
parent
commit
ad156e850c
  1. 9
      public/script/http/lora2.js

9
public/script/http/lora2.js

@ -278,7 +278,7 @@ function buildCompare(dom) {
{ {
name: '血氧', name: '血氧',
type: 'scatter', type: 'scatter',
symbolSize: 10, symbolSize: 20,
yAxisIndex: 0, yAxisIndex: 0,
tooltip: { tooltip: {
valueFormatter: (value) => value.toFixed(2) + ' %' valueFormatter: (value) => value.toFixed(2) + ' %'
@ -287,7 +287,7 @@ function buildCompare(dom) {
{ {
name: '温度', name: '温度',
type: 'scatter', type: 'scatter',
symbolSize: 10, symbolSize: 20,
yAxisIndex: 1, yAxisIndex: 1,
tooltip: { tooltip: {
valueFormatter: (value) => value.toFixed(2) + ' ℃' valueFormatter: (value) => value.toFixed(2) + ' ℃'
@ -296,7 +296,7 @@ function buildCompare(dom) {
{ {
name: '心率', name: '心率',
type: 'scatter', type: 'scatter',
symbolSize: 10, symbolSize: 20,
yAxisIndex: 2, yAxisIndex: 2,
tooltip: { tooltip: {
valueFormatter: (value) => value.toFixed(2) + ' 次' valueFormatter: (value) => value.toFixed(2) + ' 次'
@ -305,7 +305,7 @@ function buildCompare(dom) {
{ {
name: '湿度', name: '湿度',
type: 'scatter', type: 'scatter',
symbolSize: 10, symbolSize: 20,
yAxisIndex: 3, yAxisIndex: 3,
tooltip: { tooltip: {
valueFormatter: (value) => value.toFixed(2) + ' %' valueFormatter: (value) => value.toFixed(2) + ' %'
@ -608,6 +608,7 @@ function buildDevice(dom) {
data: special_compare_data[key], data: special_compare_data[key],
type: 'line', type: 'line',
smooth: true, smooth: true,
symbolSize:10,
}) })
} }

Loading…
Cancel
Save