-
Notifications
You must be signed in to change notification settings - Fork 140
100_095_Mouse_Actions
Previous Chapter Previous Page Next Page Next Chapter Table of content
Though mouse actions (click, move on) on the graph, you can call self written functions. This chapter explains how to define those actions.
Description: if you set the option savePng to true, the functions that help to save the graph into a png file are activated.
Graph type: all
Value: true or false
Default value: false
Sample: savePng : true
See also:
Description: Unless the user has defined a background color for the canvas, there is no background color for the graph. With option savePngBackgroundColor you can define a background color for the saved graph.
Graph type: all
Value: any valid color
Default value: “white”
Sample: savePngBackgroundColor : “yellow”
See also:
Description: the graph will be saved when the user perform a specific action on the graph. Specify the action with option savePngFunction
Graph type: all
Value: any valid mouse movement (see chapter about mouse movement)
Default value: "mousedown right"
Sample:
See also:
Description: When the user perform the action for saving the graph, different effect are possible :
- The graph can be displayed in a new window and from there, you can save it.
- The graph can be displayed in the current window and from there, you can save it;
- The graph can be immediately saved to a png file.
Remark : None of those three effect is running correctly on all browsers; The “NewWindow” is the less bad solution…
Graph type: all
Value: "NewWindow", "CurrentWindow", "Save"
Default value: “NewWindow”
See also:
Description: If you use savePngOutput: "Save"
you can also specify a file name.
Graph type: all
Value: any string (without ".png")
Default value: "canvas"
See also:
Previous Chapter Previous Page Next Page Next Chapter Top of Page