plotly / Dash.jl

Dash for Julia - A Julia interface to the Dash ecosystem for creating analytic web applications in Julia. No JavaScript required.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Contour plot has no selection tools

chaseleslie opened this issue · comments

Hello,

I adapted the example from #60 using the JSON workaround to render a contour plot. As can be seen in the photo there are no rectangle or lasso select tools. Is there an option to enable selection tools somehow?

using Dash
using DashCoreComponents
using DashHtmlComponents
app = dash(external_stylesheets = ["https://codepen.io/chriddyp/pen/bWLwgP.css"])
app.layout = html_div() do
    html_h1("Hello Dash"),
    html_div("Dash.jl: Julia interface for Dash"),
    dcc_graph(
        id = "example-graph",
        figure = (
            data = [
                (x = [1, 2, 3], y = [1, 2, 3], z = [rand(3) for _ in 1:3], type = "contour", name = "SF"),
            ],
            layout = (title = "Dash Data Visualization",),
        ),
    )
end

run_server(app, "127.0.0.1", 8050, debug = true)

contour

This would need to be added in plotly.js. This would come along essentially for free with heatmap selection - a longstanding open item that just hasn't bubbled to the top of our list (or been tackled by a community member) yet plotly/plotly.js#170

Thanks for the response. It looks like the workaround mentioned at plotly/plotly.js#170 (comment) in that issue might work until heatmap selection is possible.

OK great - I'll close this issue since there's nothing to be done in this repo, but please follow plotly/plotly.js#170 for updates.