plotly

Plotly and Websockets

此生再无相见时 提交于 2021-02-10 14:40:30
问题 Currently I am trying to use Plotly to make a live pie chart with data coming in from a websocket connection. However, I cant seem to get the data from the socket to the graph. Right now I see two ways of doing it. One is to get the data out of the onmessage function, such as returning a value to the parent function. The other is putting the Plotly code into the onmessage function. Neither are currently working. I'm not planning on talking about getting data out of the onmessage function in

Place Plotly Bar Chart and Box Plot in Front of Line Traces

那年仲夏 提交于 2021-02-10 14:26:36
问题 I have created subplots in Plotly that each contain a bar chart (or boxplot ) and three trace lines. I have created traces at y= 1,2,3 to act as ablines like in ggplot . What the plots look like: and . Problem: I want to have it so the bars of the bar chart are in front of the trace lines so you should only be able to see the trace lines in between the bars. My code currently: (I have excluded the code that generates the subplots as I don't think it is needed) generate_plotly_barPlot <-

Place Plotly Bar Chart and Box Plot in Front of Line Traces

て烟熏妆下的殇ゞ 提交于 2021-02-10 14:25:42
问题 I have created subplots in Plotly that each contain a bar chart (or boxplot ) and three trace lines. I have created traces at y= 1,2,3 to act as ablines like in ggplot . What the plots look like: and . Problem: I want to have it so the bars of the bar chart are in front of the trace lines so you should only be able to see the trace lines in between the bars. My code currently: (I have excluded the code that generates the subplots as I don't think it is needed) generate_plotly_barPlot <-

Hide labels in plotly donut chart r

◇◆丶佛笑我妖孽 提交于 2021-02-10 14:14:50
问题 I am working on a Shiny app where I am plotting a Donut chart. The slices depend on the variable selected and sometimes are too small. In such cases the labels are displayed outside the chart like in the image below. Is there a way to altogether hide all the labels (values with % sign) in the chart and only allow the hover action to show the details? An reproducible code for a Donut Chart is as below: library(plotly) library(tidyr) library(dplyr) # Get Manufacturer mtcars$manuf <- sapply

Hide labels in plotly donut chart r

时光总嘲笑我的痴心妄想 提交于 2021-02-10 14:10:20
问题 I am working on a Shiny app where I am plotting a Donut chart. The slices depend on the variable selected and sometimes are too small. In such cases the labels are displayed outside the chart like in the image below. Is there a way to altogether hide all the labels (values with % sign) in the chart and only allow the hover action to show the details? An reproducible code for a Donut Chart is as below: library(plotly) library(tidyr) library(dplyr) # Get Manufacturer mtcars$manuf <- sapply

R Plotly: subplot with table

你说的曾经没有我的故事 提交于 2021-02-10 12:39:20
问题 I can't figure out how to make a table subplot work properly using R and Plotly. The following demonstrates what I mean. I have two plots, one scatter and one table. Using the subplot function, the table plot does not behave as expected. I either lose interactivity on the scatter plot, or have overlapping scatter/table plots. Please let me know if I'm missing something or if this is a bug. I'm using plotly version 4.9.0 Thanks in advance! library(plotly) df <- data.frame(x = 1:10, y = 1:10)

Plotly: How to customize colors in a donut chart?

折月煮酒 提交于 2021-02-10 08:13:19
问题 I would like to ask you if you could help me in customizing of colors in a donut chart created by plotly. The problem is following - I have to recreate a dashboard (from an excel file to a html file). A part of the dashboard is a chart providing us with information about early production of each entity. The chart is a donut chart type by plotly. As each entity is defined by a specific color (defined in RGB) throughout whole dashboard, I need to keep these colors in the donut chart as well.

Plotly: How to customize colors in a donut chart?

若如初见. 提交于 2021-02-10 08:05:33
问题 I would like to ask you if you could help me in customizing of colors in a donut chart created by plotly. The problem is following - I have to recreate a dashboard (from an excel file to a html file). A part of the dashboard is a chart providing us with information about early production of each entity. The chart is a donut chart type by plotly. As each entity is defined by a specific color (defined in RGB) throughout whole dashboard, I need to keep these colors in the donut chart as well.

Plot dash chart side by side

被刻印的时光 ゝ 提交于 2021-02-10 06:14:53
问题 i have 2 charts and i want it to display side by side . Barchart and piechart side by side and probably the same barchart below these 2 charts.i have tried a lot and i would really appreciate some help. this is the below code import dash import dash_core_components as dcc import dash_html_components as html import plotly.graph_objs as go from dash.dependencies import Output, Input, State import numpy as np import pandas as pd import plotly.figure_factory as ff from pandas import read_excel

Plot dash chart side by side

依然范特西╮ 提交于 2021-02-10 06:14:12
问题 i have 2 charts and i want it to display side by side . Barchart and piechart side by side and probably the same barchart below these 2 charts.i have tried a lot and i would really appreciate some help. this is the below code import dash import dash_core_components as dcc import dash_html_components as html import plotly.graph_objs as go from dash.dependencies import Output, Input, State import numpy as np import pandas as pd import plotly.figure_factory as ff from pandas import read_excel