quetzal v0.1.5 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

Link to this function

graph(component_opts, options)

View Source

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.

Link to this function

html_tag(id, style, class, options)

View Source
Link to this function

plotly_graph(arg1, component_opts, options)

View Source

Returns the component that holds the graph and their data holding into a single EEx template