Closed GergoEB closed 1 year ago
i don't see anything obviously wrong, but i cannot help you troubleshoot code i cannot run and get to fail. please make a runnable jsfiddle like https://jsfiddle.net/0bvks7cw/1/ that exhibits the issue.
Solved, i reordered the graphs by taking innerhtml element it was inside of, this probably was the cause... how can i reorder but safely?
i'm still not sure exactly what you're asking
My initial issue was because of the fact I took the parent element of the graph and took their innerhtml and used it to reorder the elements on the page, this is what caused the error. What is the correct way to do this? Or do I just give uplot the new element after editing it?
took their innerhtml and used it to reorder the elements on the page
innerHTML is not how you move elements around the DOM in JavaScript. i don't think the issue here is with uPlot but with general DOM/JS familiarity.
after editing it
"editing it" is not a DOM concept. i have no idea what you mean.
please make a jsfiddle like i originally asked in https://github.com/leeoniya/uPlot/issues/837#issuecomment-1581923050. i can re-open this once there is runnable code.
Im trying to make a graph with the following code:
It works, until i place it into 1 specific project in which case it just half creates the chart:
Failed chart
and working chart:
Not sure why this could be, i tried printing the chart object to console but the 2 are identical. I also tried taking the code that is generated by js and placing it into a plain html file, it works then (so no css interference)
Any help appreciated