Questions tagged [plotly]

Plotly.js is an open source, high-level, declarative charting library, built on top of d3.js and stack.gl. It ships with over 40 chart types, including 3D charts, statistical graphs, and SVG maps. Use [r-plotly] for the R package and [plotly-python] for the Python package.

You can use Plotly to import and analyze data, create beautiful, interactive, browser-based graphs, and then collaborate on your graphs with others. Plotly also has a Python sandbox (NumPy supported), and has APIs for Python, R, MATLAB, Arduino, Julia, Perl, and REST.

You can see more in the gallery.

enter image description here

Resources

13887 questions
4
votes
1 answer

Multiple filters and drop down menus for plotly in R

I have a waterfall chart that I would like to have two drop down filter boxes for (one worked fine but it's the second one I am having trouble with). It seems to come up with the correct chart initially, but when I click a drop down box the chart…
Marco
  • 55
  • 1
  • 4
4
votes
2 answers

Trouble with plotly charts

I am giving myself an intro to plotting data and have come across some trouble. I am working on a line chart that I plan on making animated as soon as I figure out this problem. I want a graph that looks like this: However this code I have now:…
Michael Jones
  • 77
  • 1
  • 8
4
votes
1 answer

Use Dash (plot.ly) in PyQt5 GUI

I am running into a problem while trying to create a dashboard with Dash (plotly), while using a GUI created with PyQt5. I have tried to have the following example code both as a module and at the end of my code: import dash import…
Sd Junk
  • 272
  • 3
  • 15
4
votes
4 answers

How to efficiently create interactive directed network graphs (with arrows) on Python?

In order to construct a directed network graph, Plotly's current approach seems to be using annotations. This works when there are few edges and one can manually populate each one through the figure layout, e.g., this example. But if I'm creating a…
aspire
  • 155
  • 1
  • 1
  • 9
4
votes
1 answer

How to plot a standard density curve using plotly?

How to plot a density curve in python using plotly? Specifically, I would like to do that for some standard densities. UPDATE: So far, the best way of achieving what I ask for (in a Jupyter notebook): import numpy as np from scipy import…
Sandu Ursu
  • 1,181
  • 1
  • 18
  • 28
4
votes
1 answer

Plot and Dash: Object of type 'Response' is not JSON serializable

I want to build a Dashboard where most of the content (headers, graphs, etc.) are dependent on a main input from the user. Therefore, I want to create many callbacks so that output is dependent on the user input. But this seems to cause many…
Kim O
  • 551
  • 1
  • 8
  • 19
4
votes
2 answers

Saving plotly plots in one pdf file

I am trying to save plotly plots generated within a for a loop into one pdf fil, but here is says we need to pay for it Is there any updates on this feature? Do we really need to pay to save as pdf?
owise
  • 1,055
  • 16
  • 28
4
votes
2 answers

Split points by a factor in a plotly scatter plot

Probably an easy one. I have data points (with error bars) that I'd like to plot. There are two levels of grouping factors: group and cluster: set.seed(1) df <-…
dan
  • 6,048
  • 10
  • 57
  • 125
4
votes
1 answer

How to plot a nested pie chart using plotly in R?

I am trying to plot a nested pie chart, but the output didn't reflect the reality. Let's say: library('plotly') library('dplyr') data <- data.frame(c('cat', 'dog', 'deer','chicken', 'cat', 'dog','duck', 'monkey',…
Tan
  • 41
  • 1
  • 3
4
votes
1 answer

Return datapoints selected in a plotly scatterplot

I created a plotly scatterplot from a ggplot2 using ggplotly. I would like to obtain a table of the datapoints selected / zoomed into, but I can't find a way to do this. library(ggplot2) library(plotly) p <-…
Carmen Sandoval
  • 2,266
  • 5
  • 30
  • 46
4
votes
5 answers

How to install cufflinks in Python3?

I am using Python 3 on macOS. I have cufflinks installed but IDLE shows ModuleNotFoundError: No module named 'cufflinks' I have used multiple commands in the terminal such as: pip install cufflinks conda install cufflinks conda install -c bioconda…
Tuan Ding Wei
  • 41
  • 1
  • 1
  • 2
4
votes
2 answers

How to plot 3D Bar chart/ Pie Chart/ Donut using Plotly

I have found code to make bar charts and pie charts in plotly also other 3D plots. A simple bar chart works like this: from plotly.offline import plot from plotly.graph_objs import * trace1 = Bar( x=['cats', 'dogs', 'monkeys'], y=[20, 14,…
Naima
  • 101
  • 1
  • 4
  • 9
4
votes
1 answer

R plotly: Adjust absolute marker size on 3D scatterplot

I am creating a 3D scatterplot using plotly in R and I would like to reduce the marker size of all points. library(plotly) plot_ly(iris,x=~Petal.Width,y=~Sepal.Width,z=~Petal.Length) %>% add_markers(color=~Species) I tried to set the sizes…
mindlessgreen
  • 11,059
  • 16
  • 68
  • 113
4
votes
1 answer

creating subplots in python plotly

I am fairly new to python and ploty (<3 months of actual coding at this point). I am trying to create subplots in plotly. I have created graphs in plotly using the code below(code snippets attached below as well), but I can't seem to get them to…
t3c
  • 109
  • 1
  • 7
4
votes
2 answers

Import Plotly.js in Angular

I followed the instructions from this SO answer to integrate plotly in the application. Unfortunately I experience typescript errors, when trying out the standard examples of plotly.js. The argument types of Plotly.newPlot(...) seem to be not…
d4rty
  • 3,970
  • 5
  • 34
  • 73