Skip to content

Graph: Allow figure to be anonymous object #51

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 29, 2021

Conversation

mr-m-coetzee
Copy link
Contributor

Example:

let layout =
    Graph.graph "graph" [
        Graph.Attr.figure
            {|
                data = [
                    {| x = [1; 2; 3]; y = [4; 1; 2]; ``type`` = "bar"; name = "SF" |}
                    {| x = [1; 2; 3]; y = [2; 4; 5]; ``type`` = "bar"; name = "Montréal" |}
                ]
                layout = {| title = "Dash Data Visualization" |}
            |}
    ]

@jackparmer jackparmer merged commit 11abd88 into plotly:dev Oct 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants