Category "plotly"

Is there a way to add the bin range label into the tooltip for a histogram using ggplotly in R?

library(tidyverse) library(ggplot2) library(plotly) data(mpg) ggplotly( mpg %>% ggplot(aes(x=hwy)) + geom_histogram(), tooltip = ("all")) When you

How to automate running of Jupyter Notebook cells periodically

I want to integrate my jupyter notebook with my website, where I have written the code to fetch real-time data from MySQL server and do real-time visualisation

How to change color of text in plotly scatter and different marker?

I want use plot.ly to plot iris dataset. It has an color parameter in scatter data work like hue in seabron but it only change the color of marker and cant chan

plotly sankey diagram positioning

I'd like to add some annotations to Plotly Sankey diagram. And I want to draw them right over the blocks of sankey nodes (with the same x-position) but couldn'

R: Plotly: Treemap: Color only lowest labels

By plotting a treemap, I added a color code (colorway) in order to have all main parents having the same color scheme. I would now recolor only the minor childs

Remove borders in plotly treemap

I'm currently plotting some data using the plotly R library for the plot type treemap. When plotting the data, I get a big top border (and smaller ones on right

Plotly: How to highlight weekends without looping through the dataset?

I am trying to plot three different timeseries dataframes (each around 60000 records) using plotly, while highlighting weekends (and workhours) with a different

How to sort Plotly bar chart in descending order

I have created a basic bar chart in plotly that I would like to sort by descending order. I couldn't find an easy way to specify this in the plotly syntax, so

Adding JavaScript to my Plotly Dash app (Python)

I'm building a dashboard using Dash in Python. I have configured all the graphs nicely (it's running on the server here) and the next step is to create a respon

Customize Hover Box Plotly: Python to Fit Text

Is there a way to customize the hover text box in plotly? The text I have to show up in the hover box is quite long and does not fit on the screen. Is there are

R plotly - Plotting grouped lines

I am migrating over from ggplot2 to plotly, in order to take advantage of the interactive features they offer. I do realize that the plotly library has a ggplo

Plotly: Range slider not being displayed for row count > 500

As is visible from the image, the scaffolding for the rangeslider is generated but the trace inside it is not. It is also fully functional otherwise. With some

plotly colorscale in scatter data plot

Using marker:{color:x} in javascript plotly (http://jsfiddle.net/d8bt1qof/), I can color-code my data: But how can I change the colorscale? Different colorscal

Uncaught Error: Script error for "plotly" http://requirejs.org/docs/errors.html#scripterror

I am learning plotly from someone's code, but every time when i try to run a particular code for look at the target column to see how balanced the dataset is, a

color discrete sequence in a plotly graph objects [duplicate]

how can i plot a pie chart with color sequence while using plotly.graph_objects instead of plotly.express. In plotly.express is it very easy t

plotly.py: change line opacity, leave markers opaque

Is it possible to change the line opacity but not the marker opacity? I found that I can set the opacity of the entire line including markers (opacity = .5) and

R plotly waterfall with offset base: hovertext activated on hover at wrong position

Recently, when using an offset (a non-zero base parameter) in a waterfall plot in plotly, I noticed that the boxes with hoverinfo were activated when the mouse

TypeError: __init__() got multiple values for argument 'marks'

I'm getting the following error of TypeError: __init__() got multiple values for argument 'marks' for the code below and I'm not sure how to best fix it. i know

Format y-axis as percent in plot.ly

How do I format the y-axis as percent in plot.ly?. in var layout I have the following settings for the y-axis: yaxis: { hoverformat: ",.0%"

Plotly: How to change length of whiskers (min/max) in a boxplot?

I know that 1.5 * IQR is a common rule, but I would like to plot other min/max if possible. I am using plotly (python). Basically, I would like to define a func