Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
plotly-with-max-legend-height
Advanced tools
The open source javascript graphing library that powers plotly
Built on top of d3.js and stack.gl, plotly.js is a high-level, declarative charting library. plotly.js ships with over 30 chart types, including scientific charts, 3D graphs, statistical charts, SVG maps, financial charts, and more.
Contact us for Plotly.js consulting, dashboard development, application integration, and feature additions.
npm install plotly.js-dist
and import plotly.js as import Plotly from 'plotly.js-dist';
or var Plotly = require('plotly.js-dist');
.
<!-- Latest compiled and minified plotly.js JavaScript -->
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
<!-- OR use a specific plotly.js release (e.g. version 1.5.0) -->
<script src="https://cdn.plot.ly/plotly-1.5.0.min.js"></script>
<!-- OR an un-minified version is also available -->
<script src="https://cdn.plot.ly/plotly-latest.js" charset="utf-8"></script>
and use the Plotly
object in the window scope.
and use the plotly.js dist
file(s). More info here.
Starting in v1.15.0
, plotly.js ships with several partial bundles (more info here).
Starting in v1.39.0
, plotly.js publishes distributed npm packages with no dependencies. For example, run npm install plotly.js-geo-dist
and add import Plotly from 'plotly.js-geo-dist';
to your code to start using the plotly.js geo package.
If none of the distributed npm packages meet your needs, and you would like to manually pick which plotly.js modules to include, you'll first need to run npm install plotly.js
and then 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. For example, in CommonJS:
// 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.
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 src="my-plotly-bundle.js" charset="utf-8"></script>
Building instructions using webpack
, browserify
and other build frameworks are in BUILDING.md
Have a bug or a feature request? Please first read the issues guidelines.
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
.
Please read through our contributing guidelines. Included are directions for opening issues, using plotly.js in your project and notes on development.
plotly-js
) or
on Stack Overflow (tagged plotly
).plotly
on packages which modify or add to the functionality of plotly.js when distributing through npm.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.
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/create.
Github | ||
---|---|---|
Alex C. Johnson | @alexcjohnson | |
Étienne Tétreault-Pinard | @etpinard | @etpinard |
Mikola Lysenko | @mikolalysenko | @MikolaLysenko |
Dmitry Yv. | @dy | @DimaYv |
Ricky Reusser | @rreusser | @rickyreusser |
Robert Monfera | @monfera | @monfera |
Nicolas Riesco | @n-riesco | |
Miklós Tusz | @mdtusz | @mdtusz |
Chelsea Douglas | @cldougl | |
Ben Postlethwaite | @bpostlethwaite | |
Chris Parmer | @chriddyp | |
Alex Vados | @alexander-daniel |
Code and documentation copyright 2018 Plotly, Inc.
Code released under the MIT license.
Docs released under the Creative Commons license.
FAQs
The open source javascript graphing library that powers plotly
We found that plotly-with-max-legend-height demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.