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 20 chart types, including 3D charts, statistical graphs, and SVG maps. For the plotly r package, please use the r-plotly tag.

-1
votes
0answers
17 views

Plot multiple columns on line graph

I have a table that has looks like this ... ticker,price1y,price2y,price3y,price5y, aapl,12,23,47,69, tsla,-9,24,54,190, att,-10,23,34,35, I would like to plot these using pandas plotly in dash to ...
0
votes
0answers
11 views

Assign color to each plotly scatter point through a HEX color vector

I am having an issue with plotly in R. In base R, I am able to create a scatterplot with a different color for each datapoint through the following code > plot(dh$x,dh$y,col=dh$colors,pch=16) Yet ...
0
votes
0answers
16 views

Prefered 3-d plot library for WxPython

I am building a GUI application using Wxpython which requires 3-d scatter plots. I have tried using the following libraries but with shortcomings: 1. Matplotlib: Very slow rendering, panning and ...
1
vote
0answers
11 views

Animated bar graph not showing transitions, only key frames in Plotly.js

I have been attempting to animate a stacked bar graph with three datasets using Plotly.js using the addFrames function. I want to animate the length of the bar (the x-value) and the width of the bar. ...
0
votes
1answer
14 views

'lines' and 'lines+markers' mode is not working in plotly python

I am trying to plot a time series plot with plotly's 'lines+markers' mode although I was successful in plotting both lines and markers with some columns , I am unsuccessful for few columns and on ...
0
votes
0answers
17 views

How to download and install packages (like plotly and dash) to an offline computer for use with Anaconda

I am new to Python/Anaconda and I need to add packages (e.g. Dash, Plotly) to my Anaconda installation. My Anaconda installation is on a computer that can't touch the internet. I have gone to ...
0
votes
2answers
23 views

Is there a way to Obfuscate or Mask values in a Data Frame column?

I'm trying to mask all the IPs in a DataFrame column. I have a DataFrame with columns that contain IP addresses. For privacy and security reasons, I need to hide\mask the first 2 octets when the ...
0
votes
1answer
12 views

Is there functionality in plotly to do something similar to hjust/vjust or position_dodge in R?

I'm hoping to adjust the location of points and lines in a dumbbell plot to separate the bars rather than overlaying them, similar to position dodge or hjust/vjust in R. The code below produces ...
0
votes
0answers
13 views

Unable to set colorscale according to -ve and +ve values

I am new to Plotly I am trying to specify the colour green for positive digit and red for negative on a heatmap. Tried different ways but no luck in final figure. When I print, i can see the colour ...
0
votes
0answers
16 views

How to make a plot in plotly using pandas - value_counts() as one choice in axis

I would like to plot a bar chart in plotly with x-axis being days of the week and y-axis being the count of emails received per weekday. I have the data in pandas dataframe in this manner: ...
1
vote
2answers
22 views

visualize two columns in the same data set

I am trying to group and sort four columns, count values and chart them in the same bar graph to see the trend how the count has changed. Year Month Bl_year Month 2018 Jan 2019 Jan 2018 ...
0
votes
0answers
21 views

How to render a list of plotly plots using flask

I am looking to display multiple Plotly plots that are stored in a list. I have successfully created the plots and stored them in a list. But I am having a problem getting those plots to render. I ...
3
votes
1answer
15 views

Plotly.extendTraces only work with two traces but not with three

function getData() { return Math.random(); }; function plotGraph(graph_div) { let UPDATE_INTERVAL = 300; Plotly.plot(graph_div, [{ y: [1, 2, 3].map(getData), name: 'x', mode: '...
0
votes
1answer
20 views

How to fix 'Value error' in Python(Using plotly)

I'm using plotly distribution in python, I'm creating a geographical graph of USA-States but when I try to execute the code I'm getting a 'Value error', I need help to fix this error import plotly....
0
votes
0answers
18 views

plotly error when I create graph and assign a value for it

I got an error with my code which is "Unexpected keyword argument value, I don't know why ? when I create a graph I assign a value for each of them and still show me the same error. html.Div([ ...
0
votes
0answers
16 views

Trouble Generating Map contained in Plotly Object

I'm new to plotly and reviewing a number of the sample dashboards provided on the website demonstrating functionality. In particular, when running the following script that is supposed to generate a ...
0
votes
0answers
67 views

R plot_ly row or dataframe in PowerBI custom visuals

I am following: http://radacad.com/create-custom-visual-with-r-and-json-part3 Here it is mentioned that with below R code, we can plot the chart: Values<-data.frame(X,Y,Legend,Row,Column) g=...
1
vote
0answers
24 views

geom_rect missing when converting ggplot2 to ggplotly

I'm trying to put together a ggplotly graph with three elements (geom_point, geom_line, and geom_rect) and it looks fine in ggplot2. However, when I convert to ggplotly, the geom_rect disappears. I'm ...
0
votes
2answers
32 views

Problem with plotly Charts Being Deprecated in RStudio

I'm trying to get familiar with plotly's functionality and syntax and have tried several of the scripts provided to compose and render plots of data. However, when generating the plotly output using ...
-1
votes
0answers
27 views

Exclude one aesthetic from legend in plotly from a multiple aesthetic ggplot

When I plot the following dot plot using ggplot and specify not to show a legend for the color aesthetic, all works as expected. The legend only shows the size and alpha aesthetics. p <- ggplot(...
0
votes
1answer
12 views

Add shape (path) to ternary plot

I would like to add a shape (triangle) to a scatterternary to highlight where a user has zoomed to. I can capture the zoomed coordinates, but I cannot generate a shape that displays on the ternary ...
0
votes
0answers
14 views

Impossible to install python package with anaconda on corporate laptop

I have anaconda install on my corporate laptop. I want to install 2 python packages( Potply & Fuzzywuzzy) but each time I try I have the same error message Solving environment: failed ...
0
votes
0answers
5 views

Create a shareable link api_create

I want to share my graph that I made with plotly "I have tried Sys.setenv("plotly_domain"="https://plot.ly/~tariq566.com") and then creating a chart link chart_link= api_create(pN,filename="rf")" ...
1
vote
1answer
21 views

Create a Gap Analysis with R plotly

I want to create a GAP Analysis with native plotly (not ggplotly) to get all the event_click informations for a future drill down. Here my code with ggplotly. I just havn't succeed to do that with ...
0
votes
1answer
9 views

Is it possible to use plot.ly dash with JS directly, without python and without server?

Plot.ly Dash is a way to generate interactive widgets from declarative specification in python. The final widget consist of two parts - UI front-end in React.JS and server in Python. I wonder if it'...
-1
votes
0answers
18 views

Number of overlapped datapoints in a chart

I need a way to show that a single data point in a chart is a representative of lets say X overlapped data points. For example you have a scatter plot and the number of dots is less than your actual ...
2
votes
1answer
42 views

How do I create an interactive plot in python that generates a new plot depending on where i clicked?

I have sales data across stores, for each month and for different categories of products. Say I have a heatmap of sales quantities across stores and months on either axes. Now when I click on ...
0
votes
0answers
13 views

How to display one of two plots in R plotly on hover or menu selection?

I've made 2 different versions of a series of plots with ggplot, showing the expression level of a set of genes in single cells. In the first version, all cells are plotted with the same transparency,...
0
votes
1answer
24 views

I have a drop-down menu and I need a plot to be reactive to the choice the person makes. I am having a hard time making it work on my dashboard

I am having a hard time correctly making my chart reactive to the choice made in a drop-down menu. I have made it work using different data but can not make it work now. I am also looked up about ...
0
votes
0answers
13 views

How to edit button highlight color in Plotly dropdown menu?

I added a dropdown menu to my Python Plotly chart (Plotly 3.6.1). Now, I'd like to change the highlight color of the button (e.g. on hover) from default white to a different color. Is there any way to ...
0
votes
0answers
16 views

Update plot with real time socket stream

We have a socket client on a raspberrypi sending sensor data to a remote server where we have a dashboard. I wish to plot the realtime socket stream in the dashboard I'm making with electron-python. ...
0
votes
1answer
35 views

Can we change the style of selected points?

In this boxplot generated by plotly.js, after selecting points, the non-selected points get an opacity of 0.2. Is it possible to change the styling of selected and non-selected points ? var ...
2
votes
0answers
14 views

Python - Plotly - dynamic y-axis selection on a multiple axes plot

I have a dataframe of multiple columns, each containing a time series. I want to compare two time series plots at a time, for which I am plotting them overlayed with two y-axes as given in the example ...
0
votes
1answer
18 views

How to set the range of Y axis in Plotly line plot?

I have the following code to create the line plot with Plotly. How can I set the range of Y axis to always have it in [0; 10]? layout = go.Layout( title=go.layout.Title( text="...
1
vote
0answers
11 views

Different Box Plot Series Traces Within Plotly Subplots

I am trying to create a series of sub plots each containing box plots using Plotly. At the moment I have managed to create the following plot; . Unfortunately, this is not exactly what I want. I ...
-1
votes
0answers
27 views

Scatter plot with shiny

Following is the code i want to edit. The link to the shiny code is http://shiny.rstudio.com/gallery/movie-explorer.html. But Whenever I try to edit the code I mess it up. I just want to filter with "...
0
votes
1answer
18 views

error somewhere in the code while adding colorscale in dash barplot

I have written some code to represent a barplot with a colorscale, in dash. The expected result looks something like this but with only one dropdown menu https://brandatastudio.shinyapps.io/...
0
votes
1answer
21 views

dash core dropdown callback update problem

I have created 2 dropdowns. both of them fires on single button. 4 days back this layout was working great. But since few days back only one callback is firing and not other one. I tried to look into ...
0
votes
0answers
10 views

My bootstrap accordion menu stopped working after I included require.js, how to resolve this?

I have a web built with django , which takes a jupyter notebook and renderes the notebook on the web. the notebook requires require.js and plotly.js as javascript libraries. I have an accordion ...
0
votes
0answers
18 views

R plotly Sankey diagram with annotated columns

I'm trying to create an annotated Sankey diagram. I'd like the final version to look along the lines of this manually annotated diagram: The easy part of getting the Sankey diagram: sankey_diagram &...
2
votes
1answer
30 views

3D surface plot never shows any data

The 3D surface plot in plotly never shows the data, I get the plot to show up, but nothing shows up in the plot, as if I had ploted an empty Data Frame. At first, I tried something like the solution ...
1
vote
1answer
19 views

R plotly: Add text in polar scatter plot

Let's say I have a simple scatter plot using R plotly. And I want to put text at each points of scatter plot as shown. Simple R polar chart: library(plotly) p <- plot_ly( type ='scatterpolar',...
0
votes
1answer
21 views

Add text to 3D plot in plotly

So I'm making a 3d plot with plotly by using the x,y and z-axes. I'd like it to be an interactive plot so I can look at it from all angles, and so far so good because it is working. However, now I'm ...
1
vote
1answer
101 views

How do I plot Linear Regression?

I wish to learn how to use Plotly with Python for data analysis. I have been using this website as reference. My current code looks like this: from plotly import tools import plotly as py import ...
0
votes
0answers
37 views

How do I plot linear regression with Plotly in Python? [duplicate]

I am new to Python and Anaconda and I am trying to plot linear regression on a data set in Python using Plotly. I have followed some online guides (i.e. https://plot.ly/scikit-learn/plot-ols/) Edit: ...
1
vote
1answer
31 views

Animating change with plotlyProxy in shiny?

I have a Shiny app with plotly graphs that are modified via plotlyProxy() in response to user input. Right now the graph modification is instantaneous and abrupt, so I'm trying to use plotly's ...
0
votes
1answer
26 views

IPython interactive widget is not updating plotly when downloaded as html

I'm using Jupyter Notebook and trying to create an interactive plot. I really like how simple the ipywidgets.interactive is to use and having the ability to lay things out in VBox or HBox. The problem ...
1
vote
1answer
33 views

R plotly polar chart simple customizing

Hi R and plotly experts, I am trying my hands on plotly lately. Here is my simple minimal design code: library(plotly) df <- data.frame( r = c(0,1,2,2,1.5,3, 1, 2, 3, 4, 5, 6), theta = c(0,...
-2
votes
0answers
17 views

how to split data frame in pandas using python , and make also chart for every splited data frame

i am using plotly and pandas data frame to create chart. If i have big data frame and in that data frame have multiple data sets with different type of chart. How can plot chart. Like have 5 data ...
0
votes
2answers
33 views

Jupyter Notebook not uploading CSV file, despite trying various solutions

Error message I am trying to upload a CSV file on Jupyter Notebooks, and I have tried using the solutions on this post: Why do I get a SyntaxError for a Unicode escape in my file path? There were a ...

http://mssss.yulina-kosm.ru