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
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
Generate chart in table cell according to json values
I need to create a bar or column chart inside a table cell of each row. i.e I need a graph to be populated for each category inside table cell. JSON: I need to create a bar or column chart inside a table cell of each row. I Want JSON values to be populated in the graph w.r.t each category.
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
Embed plotly graphs
so I know that with plolty and chart studio we can save our plots online and then have an embedded link ready but there is a file limit and after publishing three small plots I get errors and can’t publish anything else. Is there any chance I either convert Plotly graph as javascript (as it’s built with JS) and then
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
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
plotly js remove title and title area
How does on remove the title from a plotly js chart? Example chart I have is as follows This chart will have a title “false”, I have also tried var layout = { showtitle:false } setting the title to null: title:” or simply removing the title line, doesn’t display a title, but the title area which is approxiamtely 50px in