- Index
- »
- io
- »
- func:ioWriteSvg
def
func:ioWriteSvg
ioWriteSvg(val, handle, opts: {})
Render data to an SVG file. Pass size
option to specify the SVG viewBox
, width
, and height
attribtues (defaults to "1000,800"). The visualization is determined by the grid meta "view" tag - see ioWritePdf()
for specifics.
Examples:
read(power).hisRead(yesterday).ioWriteSvg(`io/example.svg`) read(power).hisRead(yesterday).ioWriteSvg(`io/example.svg`, {size:"600,400"})
Note: this feature is available in SkySpark only