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: html
Get image from object and display on HTML
I want to get an image from an object in JavaScript and display it via HTML. The text parts are working fine, like the movie name etc., but I cannot see my image. The only thing I see is black_adam.jpg as text. The image is in the same folder as my index.html. I tried to add a slash in front
How to populate JSON data into HTML form with fetch()?
I want to populate HTML form input fields with JSON data I get from my API. I can display the data in a table with the following code, but I cannot make it work with a form. I tried to address the form with something like or instead of and , but it doesn’t work. Does anyone know if I
Jquery sort div based on multiple conditions
I have this short bit of code to sort / ascend div by number. But I want to add other conditions to sort by. Right now, it’s only sorting it just based on points class. But I want it to also apply conditions on times and combine with points. Generally these divs sort ascend from large number to low number.
Try to hide a class when “mouseleve”?
I try to solve a problem. I have a video player on my website. I want to manipulate some classes i created like the navigation bar on the bottom of the video. The video player has a navigation bar. I want to hide the navigation bar when my mouse is not above the video: I try to move hide the
How to make a popup that only pops up once per user?
I’m a beginner in web development, and I’m trying to program a website for my class. So I watched a video on making a popup, but the popup comes up every time the user reloads the page. I need help, please. Here’s my HTML code: Here is my JS code: I tried to find an answer on google, but those
Calculate total price on different percentage for each increment
I am trying to write a calculator for price estimation so that : for 1000 MTU price will be 0.035 so total will become 35 for 2000 MTU price will be 0.034 total will become 67 for 3000 MTU price will be .0329 total will become 98.79 and so on…. I write the following code but its giving NaN error.
want to style the all dots of pre built html canvas background
The code is different, I apologize may I didn’t ask the question the right way, you can understand well in principle, When I’m hovering the dots get colours and connect to each other, other dots are invisible, I want that all dots should be visible all time. live example available on codepen, https://codepen.io/tati420/pen/RwBamQo?editors=1111 Answer If I understand your question correctly,
JS onClick how to remove it when I click anywhere on the webpage
I am making a form and input where, when I click on the input the border of the form changes it’s color and what I want to happen is that when I click anywhere else it goes back to it’s original color. -HTML -CSS -JS I tried making this one but I can’t put it on the whole document When
How to set textarea height using min-height?
I am trying to create a message input field, using textarea. The reason I am using textarea is to be able to dynamically change the height. To be able to dynamically change the height of the textarea and the parent divs, I have implemented this code. The code works, just fine. To be able to use this JavaScript code I