GithubHelp home page GithubHelp logo

rlugojr / plotly.js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from plotly/plotly.js

0.0 2.0 0.0 184.54 MB

The open source javascript graphing library that powers plotly

Home Page: https://plot.ly/javascript/

License: MIT License

JavaScript 99.55% HTML 0.06% CSS 0.27% GLSL 0.13%

plotly.js's Introduction

npm version circle ci

Built on top of d3.js and stack.gl, plotly.js is a high-level, declarative charting library. plotly.js ships with 20 chart types, including 3D charts, statistical graphs, and SVG maps.

Table of contents

Quick start options

Download the latest release

Latest Release on Github

and use the plotly.js dist file(s). More info here.

Clone the repo

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

and use the plotly.js dist file(s).

Install with npm

npm install plotly.js

and require plotly.js using CommonJS as var Plotly = require('plotly.js'); or use the plotly.js dist file(s).

Use the plotly.js CDN hosted by Fastly

<!-- Latest compiled and minified plotly.js JavaScript -->
<script type="text/javascript" src="https://cdn.plot.ly/plotly-latest.min.js"></script>

<!-- OR use a specific plotly.js release (e.g. version 1.5.0) -->
<script type="text/javascript" src="https://cdn.plot.ly/plotly-1.5.0.min.js"></script>

<!-- OR an un-minified version is also available -->
<script type="text/javascript" src="https://cdn.plot.ly/plotly-latest.js"></script>

and use the Plotly object in the window scope.

Read the Getting started page for more examples.

Modules

Starting in v1.15.0, plotly.js also ships with several partial bundles (more info here).

If you would like to manually pick which plotly.js modules to include, you can create a custom bundle by using plotly.js/lib/core, and loading only the trace types that you need (e.g. pie or choropleth). The recommended way to do this is by creating a bundling file:

// in custom-plotly.js
var Plotly = require('plotly.js/lib/core');

// Load in the trace types for pie, and choropleth
Plotly.register([
    require('plotly.js/lib/pie'),
    require('plotly.js/lib/choropleth')
]);

module.exports = Plotly;

Then elsewhere in your code:

var Plotly = require('./path/to/custom-plotly');

To learn more about the plotly.js module architecture, refer to our modularizing monolithic JS projects post.

Non-ascii characters

Important: the plotly.js code base contains some non-ascii characters. Therefore, please make sure to set the charset attribute to "utf-8" in the script tag that imports your plotly.js bundle. For example:

<script type="text/javascript" src="my-plotly-bundle.js" charset="utf-8"></script>

Webpack Usage with Modules

Browserify transforms are required to build plotly.js, namely, glslify to transform WebGL shaders and cwise to compile component-wise array operations. To make the trace module system work with Webpack, you will need to install ify-loader and add it to your webpack.config.json for your build to correctly bundle plotly.js files.

Bugs and feature requests

Have a bug or a feature request? Please first read the issues guidelines.

Documentation

Official plotly.js documentation is hosted on plot.ly/javascript.

These pages are generated by the Plotly documentation repo built with Jekyll and publicly hosted on GitHub Pages. For more info about contributing to Plotly documentation, please read through contributing guidelines.

You can also suggest new documentation examples by submitting a Codepen on community.plot.ly with tag plotly-js.

Contributing

Please read through our contributing guidelines. Included are directions for opening issues, using plotly.js in your project and notes on development.

Community

  • Follow @plotlygraphs on Twitter for the latest Plotly news.
  • Follow @plotly_js on Twitter for plotly.js release updates.
  • Implementation help may be found on community.plot.ly (tagged plotly-js) or on Stack Overflow (tagged plotly).
  • Developers should use the keyword plotly on packages which modify or add to the functionality of plotly.js when distributing through npm.
  • Direct developer email support can be purchased through a Plotly Pro plan.

Versioning

This project is maintained under the Semantic Versioning guidelines.

See the Releases section of our GitHub project for changelogs for each release version of plotly.js.

Clients for R, Python, Node, and MATLAB

Open-source clients to the plotly.js APIs are available at these links:

GitHub repo Getting started
R / RStudio ropensci/plotly plot.ly/r/getting-started
Python / Pandas / IPython notebook plotly/plotly.py plot.ly/python/getting-started
MATLAB plotly/matlab-api plot.ly/matlab/getting-started
node.js / Tonicdev / Jupyter notebook plotly/plotly-notebook-js
node.js cloud client plotly/plotly-nodejs plot.ly/nodejs/getting-started
Julia plotly/Plotly.jl plot.ly/julia/getting-started

plotly.js charts can also be created and saved online for free at plot.ly/plot.

Creators

Github Twitter
Alex C. Johnson @alexcjohnson
Étienne Tétreault-Pinard @etpinard @etpinard
Mikola Lysenko @mikolalysenko @MikolaLysenko
Miklós Tusz @mdtusz @mdtusz
Chelsea Douglas @cldougl
Ben Postlethwaite @bpostlethwaite
Chris Parmer @chriddyp
Alex Vados @alexander-daniel

Copyright and license

Code and documentation copyright 2017 Plotly, Inc.

Code released under the MIT license.

Docs released under the Creative Commons license.

plotly.js's People

Contributors

etpinard avatar alexcjohnson avatar jackparmer avatar bpostlethwaite avatar alexander-daniel avatar theengineear avatar andrefarzat avatar mdtusz avatar scjody avatar chriddyp avatar rreusser avatar n-riesco avatar mikolalysenko avatar monfera avatar bronsolo avatar carmeloosh avatar mkcor avatar doeg avatar troiska avatar nicolemgf avatar abourget avatar cldougl avatar shirlenator avatar perigee avatar dy avatar timelyportfolio avatar almosteverywhere avatar psalmody avatar satotake avatar keeganmccallum avatar

Watchers

Ray Lugo, Jr. avatar  avatar

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.