Browse Source

history-page responsive (auto-scale graph)

pull/1491/head
VArt67 11 months ago
parent
commit
0dad27be8e
  1. 5
      src/web/html/history.html

5
src/web/html/history.html

@ -99,8 +99,9 @@
this.svg = document.createElementNS(svgns, "svg"); this.svg = document.createElementNS(svgns, "svg");
this.svg.setAttribute("class", "container"); this.svg.setAttribute("class", "container");
this.svg.setAttribute("id", this.namePrefix + "_svg"); this.svg.setAttribute("id", this.namePrefix + "_svg");
this.svg.setAttribute("width", String(this.datapoints * 2 + 50)); this.svg.setAttribute("viewBox", "0 0 " + String(this.datapoints * 2 + 50) + " " + String(this.mChartHight + 20));
this.svg.setAttribute("height", String(this.mChartHight + 20)); this.svg.setAttribute("width", "100%");
this.svg.setAttribute("height", "100%");
// Gradient Line // Gradient Line
let defLgLine = document.createElementNS(svgns, "defs"); let defLgLine = document.createElementNS(svgns, "defs");
{ {

Loading…
Cancel
Save