plotly.js

WebJar for plotly.js

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

plotly.js
Last Version

Last Version

1.54.7
Release Date

Release Date

Type

Type

jar
Description

Description

plotly.js
WebJar for plotly.js
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/plotly/plotly.js

Download plotly.js

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/plotly.js/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>plotly.js</artifactId>
    <version>1.54.7</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/plotly.js/
implementation 'org.webjars.npm:plotly.js:1.54.7'
// https://jarcasting.com/artifacts/org.webjars.npm/plotly.js/
implementation ("org.webjars.npm:plotly.js:1.54.7")
'org.webjars.npm:plotly.js:jar:1.54.7'
<dependency org="org.webjars.npm" name="plotly.js" rev="1.54.7">
  <artifact name="plotly.js" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='plotly.js', version='1.54.7')
)
libraryDependencies += "org.webjars.npm" % "plotly.js" % "1.54.7"
[org.webjars.npm/plotly.js "1.54.7"]

Dependencies

compile (64)

Group / Artifact Type Version
org.webjars.npm : gl-plot2d jar [1.4.5,2)
org.webjars.npm : gl-text jar [1.1.8,2)
org.webjars.npm : robust-orientation jar [1.1.3,2)
org.webjars.npm : is-mobile jar [2.2.2,3)
org.webjars.npm : ndarray jar [1.0.19,2)
org.webjars.npm : gl-mat4 jar [1.2.0,2)
org.webjars.npm : to-px jar [1.0.1]
org.webjars.npm : regl-splom jar [1.0.8,2)
org.webjars.npm : canvas-fit jar [1.5.0,2)
org.webjars.npm : d3 jar [3.5.17,4)
org.webjars.npm : es6-promise jar [4.2.8,5)
org.webjars.npm : gl-surface3d jar [1.5.2,2)
org.webjars.npm : gl-plot3d jar [2.4.6,3)
org.webjars.npm : gl-line3d jar [1.2.1]
org.webjars.npm : turf__area jar [6.0.1,7)
org.webjars.npm : superscript-text jar [1.0.0,2)
org.webjars.npm : gl-contour2d jar [1.1.7,2)
org.webjars.npm : gl-heatmap2d jar [1.0.6,2)
org.webjars.npm : mouse-change jar [1.4.0,2)
org.webjars.npm : has-passive-events jar [1.0.0,2)
org.webjars.npm : d3-hierarchy jar [1.1.9,2)
org.webjars.npm : world-calendars jar [1.0.3,2)
org.webjars.npm : mouse-wheel jar [1.2.0,2)
org.webjars.npm : turf__centroid jar [6.0.2,7)
org.webjars.npm : d3-force jar [1.2.1,2)
org.webjars.npm : color-rgba jar [2.1.1,3)
org.webjars.npm : gl-streamtube3d jar [1.4.1,2)
org.webjars.npm : mapbox-gl jar [1.10.1]
org.webjars.npm : gl-scatter3d jar [1.2.3,2)
org.webjars.npm : color-normalize jar [1.5.0,2)
org.webjars.npm : turf__bbox jar [6.0.1,7)
org.webjars.npm : regl-scatter2d jar [3.1.8,4)
org.webjars.npm : gl-mesh3d jar [2.3.1,3)
org.webjars.npm : right-now jar [1.0.0,2)
org.webjars.npm : gl-error3d jar [1.0.16,2)
org.webjars.npm : convex-hull jar [1.0.3,2)
org.webjars.npm : matrix-camera-controller jar [2.1.3,3)
org.webjars.npm : fast-isnumeric jar [1.1.4,2)
org.webjars.npm : strongly-connected-components jar [1.0.1,2)
org.webjars.npm : plotly__d3-sankey-circular jar [0.33.1]
org.webjars.npm : mouse-event-offset jar [3.0.2,4)
org.webjars.npm : tinycolor2 jar [1.4.1,2)
org.webjars.npm : gl-pointcloud2d jar [1.0.3,2)
org.webjars.npm : polybooljs jar [1.2.0,2)
org.webjars.npm : d3-interpolate jar [1.4.0,2)
org.webjars.npm : alpha-shape jar [1.0.0,2)
org.webjars.npm : regl-line2d jar [3.0.15,4)
org.webjars.npm : svg-path-sdf jar [1.1.3,2)
org.webjars.npm : regl-error2d jar [2.0.8,3)
org.webjars.npm : glslify jar [7.0.0,8)
org.webjars.npm : sane-topojson jar [4.0.0,5)
org.webjars.npm : webgl-context jar [2.2.0,3)
org.webjars.npm : gl-select-box jar [1.0.4,2)
org.webjars.npm : has-hover jar [1.0.1,2)
org.webjars.npm : country-regex jar [1.1.0,2)
org.webjars.npm : point-cluster jar [3.1.8,4)
org.webjars.npm : topojson-client jar [3.1.0,4)
org.webjars.npm : ndarray-linear-interpolate jar [1.0.0,2)
org.webjars.npm : gl-spikes2d jar [1.0.2,2)
org.webjars.npm : delaunay-triangulate jar [1.1.6,2)
org.webjars.npm : parse-svg-path jar [0.1.2,0.2)
org.webjars.npm : plotly__d3-sankey jar [0.7.2]
org.webjars.npm : regl jar [1.6.1,2)
org.webjars.npm : gl-cone3d jar [1.5.2,2)

Project Modules

There are no modules declared in this project.

###Ruby Wrapper to the PlotLy REST API

Connecting to the API

plotly = PlotLy.new('username', 'api key')

Time Series

Ruby API Time Series Demo <script data-plotly="louism:7" src="https://plot.ly/embed.js" async></script>
    data = { 
      x: ['2013-10-04 22:23:00', '2013-11-04 22:23:00', '2013-12-04 22:23:00'],
      y: [1, 3, 6]
    }

    args = {
      filename: 'ruby_test_time_series',
      fileopt: 'overwrite',
      style: { type: 'scatter' },
      layout: {
        title: 'Ruby API Time Series Demo'
      },
      world_readable: true
    }

    plotly.plot(data, args) do |response|
      puts response['url']
    end
    

Bar Plot

Ruby API Bar Plot Demo <script data-plotly="louism:3" src="https://plot.ly/embed.js" async></script>
    data = [
      { x: ['giraffes', 'orangutans', 'monkeys'],
        y: [20, 14, 23]
      }, 
      { x: ['giraffes', 'orangutans', 'monkeys'],
        y: [12, 18, 29]
      }
    ]
    
    args = {
      filename: 'ruby_test_bar_plot',
      fileopt: 'overwrite',
      style: { type: 'bar', barmode: 'group' },
      layout: {
        title: 'Ruby API Bar Plot Demo'
      },
      world_readable: true
    }

    plotly.plot(data, args) do |response|
      puts response['url']
    end    

Bar Plot with Time Markers

Ruby API Bar Plot Time Series Demo <script data-plotly="louism:11" src="https://plot.ly/embed.js" async></script>
    data = [
      { x: [1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012],
        y: [219, 146, 112, 127, 124, 180, 236, 207, 236, 263, 350, 430, 474, 526, 488, 537, 500, 439],
        name: 'Rest of world',
        marker: { color: 'rgb(55, 83, 109)' }
      },
      { x: [1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012],
        y: [16, 13, 10, 11, 28, 37, 43, 55, 56, 88, 105, 156, 270, 299, 340, 403, 549, 499],
        name: 'China',
        marker: { color: 'rgb(26, 118, 255)' }
      }
    ]
    
    args = {
      filename: 'ruby_test_bar_plot_time_series',
      fileopt: 'overwrite',
      style: { type: 'bar', barmode: 'group' },
      layout: {
        title: 'Ruby API Bar Plot Time Series Demo',
        xaxis: { tickfont: { size: 14, color: 'rgb(107, 107, 107)' } },
        yaxis: { title: 'USD (millions)',
                 titlefont: { size: 16, color: 'rgb(107, 107, 107)' },
                 tickfont: { size: 14, color: 'rgb(107, 107, 107)'} },
        legend: { x: 0, y: 1.0,
                  bgcolor: 'rgba(255, 255, 255, 0)',
                  bordercolor: 'rgba(255, 255, 255, 0)' },
        bargap: 0.15,
        bargroupgap: 0.1
      },
      world_readable: true
    }

    plotly.plot(data, args) do |response|
      puts response['url']
    end

Heat Map

Ruby API Heat Map Demo <script data-plotly="louism:5" src="https://plot.ly/embed.js" async></script>
    data = { z: [[1, 20, 30], [20, 1, 60], [30, 60, 1]] }

    args = {
      filename: 'ruby_test_heat_map',
      fileopt: 'overwrite',
      style: { type: 'heatmap' },
      layout: {
        title: 'Ruby API Heat Map Demo'
      },
      world_readable: true
    }

    plotly.plot(data, args) do |response|
      puts response['url']
    end
		

###License

This library is licensed under the MPL.

org.webjars.npm

Plotly

Versions

Version
1.54.7
1.54.6
1.54.1
1.54.0
1.53.0
1.52.2
1.51.2
1.48.2
1.47.4
1.47.1
1.45.3
1.45.2
1.44.3
1.42.5
1.35.2
1.33.1
1.30.0
1.29.3
1.27.1
1.24.2
1.22.0
1.19.1
1.18.1
1.16.2
1.6.3
1.6.2