667 questions
6
votes
1
answer
96
views
How can I ensure legends take up the full width?
I am trying to customize the behavior of a horizontal legend in Plotly.js for varying viewport widths.
Minimal example:
<head>
<script src="https://cdn.plot.ly/plotly-latest.min.js&...
2
votes
1
answer
81
views
How to reset selection across multiple plots to avoid accumulation?
Ah, and is there any hack or workaround on the latest version to reset the selection? Maybe simulating the double click event on an empty area of the plot. This is what I want to achieve:
I cannot ...
0
votes
1
answer
70
views
How can I make the axis labels of a plotly heatmap contain a number?
When I create a plotly heatmap and set the axis labels, the plot gets destroyed if there is a label that can also be interpreted as a number. See the following example:
<!DOCTYPE html>
<html&...
0
votes
1
answer
47
views
Plotly.d3 is missing in Plotly.js v2.25.2
In older versions of Plotly, we used Plotly.d3 for DOM manipulation and adding custom elements inside charts. After upgrading to v2.25.2, Plotly.d3 is no longer available. This completely breaks code ...
2
votes
1
answer
69
views
Rotate a label in Plotly Treemap with JavaScript
Sometimes there are narrow bricks on treemaps. Plotly decreases the font size of such labels, so you cannot read them. But another way is making these labels horizontal. As far as I understood the ...
0
votes
0
answers
75
views
adding labels on the links of sankey charts using plotly.js
I tried adding labels on the links of my sankey that would show the value of the link. I just tried adding "label" property to the link also in the trace of the sankey chart, but this did ...
2
votes
0
answers
72
views
Plotly js time series graph with overlaying axes - hovermode not showing all data on gridline
I want to create a time series plot in Plotly.js with overlaying x-axes, where the hover tooltip displays data from both axes simultaneously. It is currently only displaying the data from the second ...
2
votes
1
answer
174
views
Tooltip in ShadowDOM not showing
I’m building a custom Sankey widget as a web component. I’m using plotly.js and the plot renders correctly, but hover tooltips don’t appear at all. Does plotly.js currently support hover tooltips for ...
2
votes
1
answer
69
views
Rectangle selector tool across multiple charts in Plotly
I'm trying to select multiple charts under each other with Plotly, in JavaScript. The best I could do so far is to create a stacked chart, but it still does not allow selection of multiple rows.
The ...
1
vote
1
answer
82
views
Allow multiple traces in stacked bar chart against days of the year in y-axis
I have the following code which produces the following output:
Two problems here:
The second trace is showing as line instead of grouped or stacked
bar
I want to show some text inside the each bar ...
1
vote
1
answer
83
views
Horizontal histogram chart - show date on horizontal axis
I found the following Plotly chart on CodePen
<head>
<!-- Load plotly.js into the DOM -->
<script src='https://cdn.plot.ly/plotly-3.0.1.min.js'></script>
</head>
...
1
vote
1
answer
45
views
Title in the JSON file for a Plotly plot cannot be rendered by react-plotly.js library in a React Web App
In my React Web App, I would like to use "react-plotly.js" library to render a Plotly plot from the JSON file exported from Python.
An example of the JSON file is:
{
"data"...
2
votes
0
answers
49
views
How can i set the Y-Axis of a Rangeslider in Plotly to a fixed Range
I'm working with Plotly in JavaScript and came across an issue related to auto-scaling the Y-axis.
I managed to prevent the main Y-axis from rescaling by using Plotly.relayout, which works well. ...
0
votes
0
answers
55
views
Plotly onRelayout not working on mobile devices
I am developing a Web Application where I am using Plotly to render 3D Charts. Now I want to persist the camera scene and for it I am using onRelayout.
My Current Code:
import Plotly from 'plotly.js';
...
0
votes
0
answers
39
views
How to define contour levels is irregular intervals for a contour plot type “level” - Plotly
i have same problem like this thread https://community.plotly.com/t/custom-contour-levels-for-a-contour-plot
The problem is : Is there a definitive way to plot custom contour levels yet? I’m ...