Closed MaxEvron closed 8 years ago
I think that you have the same problem that I found with the drillDown.js add-ins used in association with the highLight feature.
One think that you can try, is to put a call to "deleteHighLight(ctx,data);" just before the update function.
If it does not work, can you send your code to my email address so that I can try to debug the problem and find a solution.
Regards, François
Thanks François. Could you please tell me what is data
, here? Is this the previous or the new data?
For safety, you can do it for both data; But please, take contact by mail for subsequent questions about that problem; Otherwise, followers receive lot of mails they are not interested in.
Problem fixed with last published version.
Thanks to @MaxEvron for his help - He founds the root of the problem.
Hey,
I use a page where users can select a report and set some parameters to retrieve associated data. When I retrieve the data for the very first time since the page is loaded, I call the following:
new Chart(document.getElementById("mycanvas").getContext("2d")).Line(data, options));
If the user choose another report or set others parameters, then when I retrieve other data, I call the following :
updateChart(document.getElementById("mycanvas").getContext("2d"), data, options, true, true);
My options are as follow:
With
chartMouseFocus
andchartMouseBlur
some personal functions to highlight data in an isolated html<table>
.On the screen, the chart is redrawn the right way and highlight works fine when retrieving data for the very first time. But, after retrieving new data and calling
updateChart
, even if the chart is redrawn the right way, hovering the chart suddenly replaces the freshly redrawn chart with the one created from the data loaded the very first time.Thus, it seems updateChart does not do all the job.