Dear all
I am not discussing about the SVG module.
I would like see in FHEM a small plot, something like T_heater= f(T_out, param1, param2...).
The plot is 600x200 pixels.
I created and tested the svg_code in several browsers --> working fine
Now I want to display the plot in FHEM as inline svg_code.
Define xxx weblink htmlCode ....
In FHEM, I can only see the top-left 30x30 pixel (circa) of my svg_plot.
Is there something in FHEM or in weblink cropping (or interfering with) <svg...> ... </svg>?
thanks
immi
just an idea:
attr <webLinkName> htmlattr width="600" height="200"
Zitat von: betateilchen am 29 April 2014, 11:05:45
just an idea:
attr <webLinkName> htmlattr width="600" height="200"
Thanks, I tested that yesterday; no difference.
The problem regards only svg; wir tables, <HR> no issue; they react perfectly to htmlattr width="600" height="200"
immi
I'm afraid that the trouble is caused by the following line in style.css:
svg { height:32px; width:32px; fill:#278727; vertical-align:middle; margin:2px 0; }
It is used for the SVG-icons.
That did the trick, thanks Rudolf
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" >
<style type="text/css"><![CDATA[
svg { height:200px; width:600px;}
...
edit: problems now is that the other SVG are huge in the same page...
Is there a way to isolate or remove the style only to a part of the page?
immi