I’m trying to add values to nodes of plotly graph but there is an issue. Code: var values = nodes[nodeIndex].value; is not able to access the node values. Suggestions on how to fix this will be really helpful. EDIT0: I made the corrections suggested in the answer below but the I am still not able to see the line graph
Tag: plotly.js
plotly js – x and y axis hover info on the axis
Is it possible to get the hover info to be on the axis itself? I see an example in python plotly but cannot get it to work with javascript. In the image it’s the “1977” black hover label. I’m currently working with an ohlc chart if that makes a difference. Reference for the image below: https://plotly.com/python/hover-text-and-formatting/ Answer Not currently possible
How use plotly_click and plotly_selected simultaneously?
So I have a signal graph that is displayed on my html page. I want to give to the user the possibility to click at specific point to create a vertical line : Image with vertical bar. I want also let the user to draw a box in a specific area : Image with box area Both code are working
plotly js Uncaught TypeError: myPlot.on is not a function
I’m a newbie trying to learn. I have modified the plot code at plotly hover events The goal is to obtain hover events so that later I can show an image in a modal. My CSV does read in, and the plot does show in the browser. I get an error message: “Uncaught TypeError: myPlot.on is not a function” (in
Plotly.js for tidy data – Bar color
I’m new to plotly JS, but I have good experience with python – I want to get the same results as the following: Essentially to use the data value to add distinct colors to my bars, is there any easy way to obtain that results?, obviously I have a tidy dataset What I want to do is to color the
remove the weird whitespace around the plotly chart (Javascript)
I’m using the plotly library (Javascript) for plotting piechart, I’m using the flexbox for the layout. There’s a huge whitespace on the right side of the chart as shown in image below: In the image above you could see whitespace on the right side of the pie chart. I’ve used the flexbox property : flex-grow to make use of all
Add percentage symbol to gauge indictor in plotly.js
I have a gauge from plotly.js, which currently looks like this: I need to add the percentage symbol to the number (96 in this example). Trying to achieve this: My current data and layout are: Answer under value: 96, add number: { suffix: “%” }
Plotly.js 3D scatter plot is just black
This is something that has recently broken. Previously, I was getting normal plots when running the exact same code however now the plot is just a black screen. (Pictured Below) I am not sure what changed. I tried reverting to an older version of plotly but that did not fix it. I do not even know where to begin debugging
To highlight one point in Violin chart PlotlyJS
I am using Violin chart of PlotylyJS library, and it takes an array of elements and plots it on the chart. Is possible if I want to highlight one point with a different color from that array? Like if my array is I want to plot this on the graph but I want the point 65 to be highlighted with
Plotly.js gradient color on time series chart
I am working on a time series chart and wondering if it’s possible for a chart to have like a gradient background. This is the pen of what I currently have: https://codepen.io/boinx-fm/pen/RqogXV Attached is the sample background I’m trying to achieve: gradient background Thanks! Answer Plotly.js does not support gradient color at this moment. You can subscribe to https://github.com/plotly/plotly.js/issues/581 for