Added info table to live chart
public/javascripts/datetime.js - wrong call fixed public/javascripts/global.js - direct call to live chart if sensorid is given public/javascripts/showcharts.js - info table added public/stylesheets/style.sass - style for infotabel - changed color vor nav tabs
This commit is contained in:
@@ -70,6 +70,24 @@ export async function showChart(params, typ, container) {
|
||||
sid: erg.params.sensorid,
|
||||
indoor: erg.params.indoor
|
||||
}, document.getElementById(container).offsetWidth)
|
||||
if(erg.info) {
|
||||
let wbreit = window.innerWidth
|
||||
let cbreit = chart.chartWidth
|
||||
let infoposx = wbreit - ((wbreit-cbreit)/2) -200
|
||||
let infoposy = chart.plotTop - 80
|
||||
chart.renderer.label(
|
||||
erg.info.text,
|
||||
infoposx,
|
||||
infoposy,
|
||||
'rect', 0, 0, true)
|
||||
.css({
|
||||
fontSize: '10pt',
|
||||
color: 'green'
|
||||
})
|
||||
.attr({
|
||||
zIndex: 5,
|
||||
}).add();
|
||||
}
|
||||
})
|
||||
return true
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user