Skip to content
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

Embedding PlotJS.jl Plot #166

Open
asbisen opened this issue Jul 25, 2016 · 2 comments
Open

Embedding PlotJS.jl Plot #166

asbisen opened this issue Jul 25, 2016 · 2 comments

Comments

@asbisen
Copy link

asbisen commented Jul 25, 2016

Thanks a lot Shashi for the great work on Escher. I am trying to embed plots from PlotlyJS.jl inside Escher without any success. Is there a way to embed self contained html inside a tile?

@shashi
Copy link
Member

shashi commented Jul 26, 2016

Can you post a simple piece of code you're trying?

@McNees287
Copy link

McNees287 commented Sep 30, 2016

I would also like to be able to use PlotlyJS.jl inside of Escher.

Here's some sample code for producing a histogram from the PlotyJS.jl docs:

using PlotlyJS

function two_hists()
    x0 = randn(500)
    x1 = x0+1

    trace1 = histogram(x=x0, opacity=0.75)
    trace2 = histogram(x=x1, opacity=0.75)
    data = [trace1, trace2]
    layout = Layout(barmode="overlay")
    plot(data, layout)
end
two_hists()

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

No branches or pull requests

3 participants