Need advice about which tool to choose?Ask the StackShare community!

Plotly.js

358
691
+ 1
69
Recharts

139
257
+ 1
36
Add tool

Plotly vs Recharts: What are the differences?

Introduction:

Plotly and Recharts are both popular data visualization libraries used for creating interactive charts and graphs in websites. While both libraries serve the same purpose, there are key differences between the two. In this article, we will explore the main differences between Plotly and Recharts.

  1. Implementation:

Plotly is primarily an open-source JavaScript library that provides a wide range of chart types and customization options. It supports various programming languages like Python, R, and Julia, making it versatile for different use cases. On the other hand, Recharts is a charting library specifically designed for React applications. It is built on top of existing SVG elements and offers a simple and declarative API for creating charts in React.

  1. Interactivity:

One of the major differences between Plotly and Recharts is the level of interactivity they provide. Plotly offers extensive interactivity features, allowing users to zoom, pan, and hover over the charts to view data points and values. It also supports interactive modebars for exporting the charts and enabling various modes. Recharts, on the other hand, provides basic interactivity features like tooltip display on hover but has more limited capabilities compared to Plotly.

  1. Chart Types:

Plotly provides a wide variety of chart types, ranging from basic line charts to more complex 3D and geo chart types. It also supports subplots, multiple axes, and small multiples, making it suitable for creating complex visualizations. Recharts, on the other hand, offers a more limited set of chart types, including bar charts, line charts, area charts, and scatter charts. While Recharts covers most common use cases, it may not be as versatile as Plotly when it comes to chart types.

  1. Customization Options:

Plotly provides extensive customization options, allowing users to fully customize every aspect of the charts, including colors, labels, titles, annotations, and more. It also provides a wide range of layout and styling options to create visually appealing charts. Recharts, on the other hand, has a more limited set of customization options compared to Plotly. While it allows users to customize basic styling elements like colors and labels, it may not provide as much control over the overall appearance of the chart.

  1. Ease of Use:

Plotly can sometimes have a steep learning curve due to its extensive features and syntax. However, once familiarized, it provides powerful charting capabilities. Recharts, on the other hand, aims to provide a simpler and more intuitive API for creating charts in React. It follows a declarative approach, making it easier for React developers to integrate and work with charts in their applications.

  1. Community Support and Documentation:

Plotly has a large and active community with extensive documentation and resources available. It has been around for longer and is widely adopted by developers and data scientists. Recharts, being specifically designed for React applications, also has a good community support and documentation, although it may not be as extensive or well-established as Plotly.

In Summary, Plotly is a versatile and powerful data visualization library with extensive customization options and interactivity, while Recharts is a simpler and more specialized charting library specifically designed for React applications, offering a more intuitive API.

Advice on Plotly.js and Recharts
Needs advice
on
HighchartsHighchartsChart.jsChart.js
and
RechartsRecharts

I have used highcharts and it is pretty awesome for my previous project. now as I am about to start my new project I want to use other charting libraries such as recharts, chart js, Nivo, d3 js.... my upcoming project might use react js as front end and laravel as a backend technology. the project would be of hotel management type. please suggest me the best charts to use

See more
Replies (1)
Darren Adams
Senior Developer at Burning Glass Technologies · | 2 upvotes · 154.6K views
Recommends
on
HighchartsHighcharts

I've used Highcharts with both Angular Js Reactive applications (render as ReactJs) and also a bit of D3. Personally I found Highcharts to be the easiest to use but, with still quite a good level of customisability if you need it. graphs and charts then give D3 a try.

See more
Manage your open source components, licenses, and vulnerabilities
Learn More
Pros of Plotly.js
Pros of Recharts
  • 16
    Bindings to popular languages like Python, Node, R, etc
  • 10
    Integrated zoom and filter-out tools in charts and maps
  • 9
    Great support for complex and multiple axes
  • 8
    Powerful out-of-the-box featureset
  • 6
    Beautiful visualizations
  • 4
    Active user base
  • 4
    Impressive support for webgl 3D charts
  • 3
    Charts are easy to share with a cloud account
  • 3
    Webgl chart types are extremely performant
  • 2
    Interactive charts
  • 2
    Easy to use online editor for creating plotly.js charts
  • 2
    Publication quality image export
  • 11
    Very intuitive API
  • 8
    Built for React, from scratch
  • 7
    Responsive
  • 5
    Composable chart elements
  • 3
    Easy to use
  • 2
    MIT license

Sign up to add or upvote prosMake informed product decisions

Cons of Plotly.js
Cons of Recharts
  • 18
    Terrible document
  • 2
    Not considered time series charts

Sign up to add or upvote consMake informed product decisions

What is Plotly.js?

It is a standalone Javascript data visualization library, and it also powers the Python and R modules named plotly in those respective ecosystems (referred to as Plotly.py and Plotly.R). It can be used to produce dozens of chart types and visualizations, including statistical charts, 3D graphs, scientific charts, SVG and tile maps, financial charts and more.

What is Recharts?

Quickly build your charts with decoupled, reusable React components. Built on top of SVG elements with a lightweight dependency on D3 submodules.

Need advice about which tool to choose?Ask the StackShare community!

What companies use Plotly.js?
What companies use Recharts?
Manage your open source components, licenses, and vulnerabilities
Learn More

Sign up to get full access to all the companiesMake informed product decisions

What tools integrate with Plotly.js?
What tools integrate with Recharts?

Sign up to get full access to all the tool integrationsMake informed product decisions

What are some alternatives to Plotly.js and Recharts?
Highcharts
Highcharts currently supports line, spline, area, areaspline, column, bar, pie, scatter, angular gauges, arearange, areasplinerange, columnrange, bubble, box plot, error bars, funnel, waterfall and polar chart types.
Bokeh
Bokeh is an interactive visualization library for modern web browsers. It provides elegant, concise construction of versatile graphics, and affords high-performance interactivity over large or streaming datasets.
Marvel
A super simple tool that turns any image (including PSDs) or sketch into interactive prototypes for any device. Powered by Dropbox.
Matplotlib
It is a Python 2D plotting library which produces publication quality figures in a variety of hardcopy formats and interactive environments across platforms. It can be used in Python scripts, the Python and IPython shells, the Jupyter notebook, web application servers, and four graphical user interface toolkits.
Storyline
Storyline makes it easy to create, test & publish Alexa skills in minutes with a visual interface and pre-built templates.
See all alternatives