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
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
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.
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
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
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.
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,
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