mirror of
https://github.com/lumapu/ahoy.git
synced 2025-06-06 12:41:37 +02:00
history-page responsive (auto-scale graph)
This commit is contained in:
parent
33081fde91
commit
0dad27be8e
1 changed files with 3 additions and 2 deletions
|
@ -99,8 +99,9 @@
|
|||
this.svg = document.createElementNS(svgns, "svg");
|
||||
this.svg.setAttribute("class", "container");
|
||||
this.svg.setAttribute("id", this.namePrefix + "_svg");
|
||||
this.svg.setAttribute("width", String(this.datapoints * 2 + 50));
|
||||
this.svg.setAttribute("height", String(this.mChartHight + 20));
|
||||
this.svg.setAttribute("viewBox", "0 0 " + String(this.datapoints * 2 + 50) + " " + String(this.mChartHight + 20));
|
||||
this.svg.setAttribute("width", "100%");
|
||||
this.svg.setAttribute("height", "100%");
|
||||
// Gradient Line
|
||||
let defLgLine = document.createElementNS(svgns, "defs");
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue