quetzal v0.1.7 Quetzal.Graph View Source
Link to this section Summary
Functions
The base module to make graph components based on plotly.js
Returns the component that holds the graph and their data holding into a single EEx template
Link to this section Functions
The base module to make graph components based on plotly.js
In order to make components provide two keywords, the first one contains the div properties and the second the keywords to use as data in PlotlyJS, with this you are able to build any graph supported into PlotlyJS.
Example
[{Quetzal.Graph, [id: "mygraph"], [type: "pie", values: [1,2], labels: ["A", "B"]]}]
The above code can be set as a single component in the live view to render as graph.
Returns the component that holds the graph and their data holding into a single EEx template