mirror of
https://gitlab.com/cyclane/sbdatatracker.git
synced 2025-07-31 11:11:14 +00:00
Added legend and fixed tooltip
This commit is contained in:
@@ -69,7 +69,11 @@
|
||||
text: g.data.name
|
||||
},
|
||||
tooltip: {
|
||||
trigger: "axis"
|
||||
trigger: "axis",
|
||||
order: "valueDesc"
|
||||
},
|
||||
legend: {
|
||||
show: data[0].length !== 2 || !Array.isArray(data[0][0])
|
||||
},
|
||||
xAxis: g.data.x_axis || {
|
||||
name: "Date & time",
|
||||
@@ -79,7 +83,7 @@
|
||||
type: "value"
|
||||
},
|
||||
series:
|
||||
data[0].length === 2
|
||||
data[0].length === 2 && !Array.isArray(data[0][0])
|
||||
? [
|
||||
{
|
||||
name: g.data.name,
|
||||
|
Reference in New Issue
Block a user