Skip to content

Latest commit

 

History

History
77 lines (54 loc) · 1.98 KB

api.md

File metadata and controls

77 lines (54 loc) · 1.98 KB

Graph

Class creating a graph.

Kind: global class

new Graph(node, datas, config)

Param Type Description
node node Graph wrapper node, with a [data-graph] attribute
datas Array.<object> Array of datas as objects containing property and value
config object Object listing all the config options

graph.debug()

Temporary debug

Kind: instance method of Graph

graph.generateRelativePosition()

Transforming each value to a portion of the max one, for easier display

Kind: instance method of Graph

graph.setPoints()

Append in the graph

Kind: instance method of Graph

graph.setLegend()

Set the legend

Kind: instance method of Graph

graph.setGraphSize()

Define Graph size

Kind: instance method of Graph

graph.setBreakpoints()

manual responsivness TODO: add resize event listener

Kind: instance method of Graph

graph.events()

Events

Kind: instance method of Graph

graph.draw()

Draw the graph

Kind: instance method of Graph