Good afternoon everyone, I'm working with highcharts graphics, everything works fine, but I have a problem. I'm using Ajax to create all the charts, however the "standing" chart has certain "little mistakes" that do not let me make it so dynamic. What I'm going to do When I send a call to a function that the chart creates, it does it correctly, you can choose the month you want to consult, but when you change the month, it responds. I realized that the JS's of high charts give you additional information to where I am sending to call everything. I have tried to clean it when it starts my function with:
document.getElementById("container").innerHTML = "";
But it does not, I have explored a bit with the developer tools and I have this in the div when there is already a graph:
<div id="container" data-highcharts-chart="0"></div>
Can someone tell me how to do a total cleansing of the div?
Annex corresponding photos.
This is how the code looks when I have not done anything yet.
So you see when I've already sent a graphic, everything is perfect. This for example is the month of July, all that information is put, I want to assume that is what is attached as part of the operation of the graph
This is how I see it when I want to call March, it does not do it anymore and it does not show the graph.
As you can see, the div is nowhere to be found, but it has certain labels inside.
Thanks for your support