-
Notifications
You must be signed in to change notification settings - Fork 0
SVGraph_UpdateChart()
CapnOdin edited this page Jan 11, 2018
·
5 revisions
Updates the dimensions of the JS Chart object that was created by calling SVGraph_Chart.
SVGraph_UpdateChart([Width, Height, Margin])
The width of the SVG element in pixels.
Note: If left blank the value will remain unchanged.
The height of the SVG element in pixels.
Note: If left blank the value will remain unchanged.
The margin of the SVG element in pixels.
Alternatively: To set the margin at the top, bottom, right and left independently, set it to a string with the format "{top: margin, left: margin, bottom: margin, right: margin}", where margin is a number of pixels.
Note: If left blank the value will remain unchanged.
When using the alternate margin option all of top, bottom, left and right must have values.
; Swabbing the dimensions of the Chart follow by changing the top and bottom margin.
Gui, Add, ActiveX, vIE, Shell.Explorer
SVGraph_Attach(IE)
SVGraph_Start()
SVGraph_Chart(700, 365, 40)
SVGraph_UpdateChart(365, 700)
SVGraph_UpdateChart(, , "{top: 100, left: 40, bottom: 100, right: 40}")