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
0 answers

Running multi-paged Plotly-Dash app with callbacks and graphs within Flask

Intro: I already have a multi-page Dash app running with each page into a separate layout file and is callable from main index page. What works well? Running a standalone Dash app, ($python index.py), index page is shown with other entries and…
Moni
  • 73
  • 2
  • 8
4
votes
1 answer

Generating different marker shapes in plotly/cufflinks

This post is similar to this one (Change Marker Shapes in Plotly .js), but I can't seem to get anything to work in python. First off, I am trying to make a multi-line graph (which I have done in both plt and plotly...code below), but being…
t3c
  • 109
  • 1
  • 7
4
votes
1 answer

Python - plotly assigning scatterplot colors by label

I'm trying to replicate one of the basic examples in Plotly R into Plotly Python, but finding it impossible. The same problem is also solved in R here: Plotly assigning colors based on label trace0 = go.Scatter( x = x1, y = y1, mode = 'markers', …
orangenarwhals
  • 365
  • 1
  • 5
  • 18
4
votes
1 answer

julia plotly set plot figure size

When I call the plot() function the resulting plot always has a fixed size when it opens in my browser. I have tried to pass a layout argument to the function in many forms but it always throws an "unhandled layout type" error. Example code: using…
4
votes
1 answer

R Plot_ly list Plots Multiple Plots in .Rmd R-Studio Run Mode, but not when Knitted

I am trying plot multiple plots from a list of data.frames. I am using Markdown to render the data. Within R-Studio, when I click the ">" run button, I get all the plots. The code I am trying to use is: ### Plot each list ```{r…
Jacksonsox
  • 1,114
  • 15
  • 25
4
votes
1 answer

How to add a title to a R Plotly table

I have created a table using the ropensci/plotly library. I have tried to add a title several ways. Here is my code: library(plotly) data <- read.csv("data.csv") plot_ly( type = 'table', columnwidth = c(33, 32, 32), columnorder = c(0, 1,…
sectechguy
  • 2,037
  • 4
  • 28
  • 61
4
votes
2 answers

How to plot normal distribution with percentage of data as label in each band/bin?

While plotting normal distribution graph of data, how can we put labels like in image below for percentage of data in each bin where each band has a width of 1 standard deviation using matplotlib/seaborn or plotly ? Currently, im plotting like…
CYAN CEVI
  • 813
  • 1
  • 9
  • 19
4
votes
2 answers

Quadratic regression line using R plotly

I am quite new to R and really new in plotly. I am trying to plot a quadratic (i.e. 2nd-degree polynomial) regression line. Once some prices vs years, and once the same prices vs a list of certain integer numbers (which can be the same), let's say…
Giannis K
  • 61
  • 5
4
votes
1 answer

How to plot grouped bar chart with multiple y axes in python plotly

I need to plot a grouped bar chart with two y axes and one x axis. The plot looks like the following if drawn in matplotlib I want it by python plotly but I could not find a solution. There seems to be a similar question two years ago, but I did…
Royalblue
  • 639
  • 10
  • 22
4
votes
1 answer

Naming legends of 3D Surface plots in R Plotly

I was wondering if there is a way to name the legends that are displayed by plotly for multiple surfaces on the same plot equivalent to the trace method: Using the multiple surface example on…
RK1
  • 2,384
  • 1
  • 19
  • 36
4
votes
3 answers

Plotly figures in jupyter notebook take huge amounts of memory

I may be doing something really stupid, but I've been using plotly offline in my jupyter notebook using import plotly.offline as py py.init_notebook_mode(connected=True) from plotly.graph_objs import * I'm trying to display a sequence of images…
meldefon
  • 41
  • 1
  • 2
4
votes
2 answers

Error in Python Code when plotting in Seaborn

I am trying to plot distribution graph in python using seaborn . But I am getting error which I am not able to solve given below. Code: sns.distplot(df['nn']) Error: cannot convert float NaN to integer Is there any efficient way to solve this by…
Zhoe
  • 147
  • 2
  • 9
4
votes
2 answers

Using Plotly in Shiny App based on a HTML template fails

I am building a Shiny app based on an HTML template and I would like to use plotly for charts. I am struggling with insertion the chart into the template. The following code works fine: library(shiny) library(plotly) shinyApp( ui <-…
mattino
  • 95
  • 7
4
votes
0 answers

ggplotly in a ShinyApp failed after "install and restart" in a R-package

I have a ShinyApp in a R package. One of the figure is made with {ggplot2} and function ggplotly. When I run the App in a fresh Rstudio session, the figure works. However, if I build my package using 'Install and Restart', then the following error…
Sébastien Rochette
  • 6,536
  • 2
  • 22
  • 43
4
votes
1 answer

plotly visualisation is too slow for United states county map

My data set has about 90K rows with follwing columns state_name, county_name, county_lat, count_long, value_x A similar direct example just for California counties here Although it works fine for one sate, when I do for all the states in US, the…