Coder Social home page Coder Social logo

ginkgobioworks / plotly-plot Goto Github PK

View Code? Open in Web Editor NEW
21.0 7.0 1.0 16.78 MB

Polymer element for the plotly.js library

Home Page: http://ginkgobioworks.github.io/plotly-plot

HTML 16.29% Shell 5.18% JavaScript 78.52%
polymer-element bower plot plotly plotlyjs polymer

plotly-plot's People

Contributors

myw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

jdecowski822

plotly-plot's Issues

plotly-plot display incorrect when used inside iron-pages view

First of all - great project!

Description

'plotly-plot' elements don't render properly when embedded inside an iron-pages view.
Chrome/Canary seems to be the only browser that doesn't display correctly.

The demo does work, it is only when the plotly-plot element is inside the iron-pages view page that the display is incorrect.

Expected outcome

Should be able to interact with the plotly element. Like this

Actual outcome

The graph is displayed, but the plotly symbols are displayed below the page. Can't interact with the element. Like this

Live Demo

N/A

Steps to reproduce

  1. Install polymer starter-package
    polymer init starter-package
  2. Install plotly-plot
    bower install plotly-plot
  3. Insert an example plotly-plot element on my-view1.html
    <div class="card">
      <plotly-plot id="the-plot"data='[{"x": [1, 2, 3], "y": [4, 11, 23]}]'>
      </plotly-plot>
      <div class="circle">1</div>
      <h1>View One</h1>
      <p>Ut labores minimum atomorum pro. Laudem tibique ut has.
      <p>Lorem ipsum dolor sit amet, per in nusquam nominavi periculis, sit elit oportere ea.Lorem ipsum dolor sit amet, per in nusquam nominavi periculis, sit elit oportere ea.Cu mei vide viris gloriatur, at populo eripuit sit.</p>
    </div>

Browsers Affected

  • Chrome (54.0.2840.99 m)
  • Chrome Canary (57.0.2925.0 canary)
  • Firefox
  • Safari 9 (Not Tested)
  • Safari 8 (Not Tested)
  • Safari 7 (Not Tested)
  • Edge (Not Tested)
  • IE 11
  • IE 10 (Not Tested)

use the element in jupyter notebook

Description

It would be nice use the element inside jupyter in the context of the declarative widget:
https://github.com/jupyter-incubator/declarativewidgets#including-a-web-component-in-a-notebook

Apparantly it does not work due to some involvement with requirejs/amd.
An approach that could be applied is loading plotly with requirejs using a shim. Please refert to jupyter/declarativewidgets#481 where you find the description of the issue.

Expected outcome

Iteractive plot inside the jupyter notebook

Actual outcome

static image if it is used

<script>
        window.define = undefined
</script>

Otherwise the error
Plotly is not defined

Live Demo

Steps to reproduce

refer to jupyter/declarativewidgets#481

Browsers Affected

  • Chrome

not tested with the others

Plotly Stream API support

Are there any plans to support plotly stream api?
This would be a nice addition as well as a tool to work with real time data.

Zoom/Pan buttons don't appear over plot.

Description

The hover functions and buttons all appear at the bottom of the page instead of within the plotly graph.

Expected outcome

Buttons appear on top of Plotly graph.

Actual outcome

http://imgur.com/a/yN9wG

Steps to reproduce

Put plotly-plot element inside a view of the polymer starter kit.
Use the example from this repository's Readme.md

  <div class="card">
         <div class="circle">2</div>
         <h1>View Two</h1>
         <plotly-plot id="waveform" data='[{"x": [1, 2, 3], "y": [4, 11, 23]}]'></plotly-plot>
         <p>Ea duis bonorum nec, falli paulo aliquid ei eum.</p>
   </div>

Browsers Affected

  • Chrome

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.