plotly.js

WebJar for plotly.js

License

License

MIT
GroupId

GroupId

org.webjars.bower
ArtifactId

ArtifactId

plotly.js
Last Version

Last Version

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

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

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.bower

Plotly

Versions

Version
1.54.1
1.52.2
1.50.1
1.48.3
1.47.4
1.45.3
1.45.2
1.44.4
1.44.3
1.43.2
1.42.5
1.41.3
1.39.3
1.38.1
1.36.1
1.35.2
1.34.0
1.33.1
1.31.2
1.30.1
1.30.0
1.29.3
1.28.3
1.27.1
1.26.1
1.25.2
1.24.1
1.23.0
1.22.0
1.21.3
1.21.2
1.20.5
1.17.3
1.17.2
1.16.2
1.16.1
1.16.0
1.15.0
1.14.1
1.13.0
1.12.0
1.10.2
1.10.1
1.10.0
1.9.0
1.8.0
1.7.1
1.6.3
1.6.2
1.6.1
1.6.0
1.5.1
1.5.0
1.3.0
1.2.1