While trying 1.9.5.b1, I got below error message. 1.9.2 is working perfectly with the same chart option. Can you figure it out why? TypeError: Cannot read property ‘textBlock’ of undefined at Function.Axis.setLayoutAndRender (canvasjs.js:13884) at Chart.render (canvasjs.js:2870) Reply
Thanks for your report. We are unable to reproduce the issue, can you please provide the case in which you are getting this error so that we can look into it and resolve it. Can you kindly create jsfiddle with the issue. Reply
This occurs when I create dynamic DOM including chart div without data, then try to render it. This works with 1.9.2 but NOT with 1.9.5 beta! Below is short summary of my code. 1. create dynamic chart DOM (layout of the div for the chart) 2. var compiled = $compile(dom)($scope); //compile dynamic DOM angular.element($(‘#chartId’)).prepend(compiled); 3. create chart option dynamically (line chart, with xy zoom enabled) 4. create the chart with chart option & chart div id created in step 1,2 & 3 var chart = new CanvasJS.Chart(chartId, chartOption); 5. render the chart without data –> at this step, the error occurs chart.render(); //error!!! 6. bind the data to the chart Reply
We followed the given steps and are unable to reproduce the issue. Please have a look at this jsfiddle and can you update it with the issue? Reply
This is happening to me also with 1.9.5 trial version. I am using it with Enyo. If I render the chart with no data, it give the same error as above. I can not duplicate it on the jsfiddle you linked.
I should point out that I first noticed this while making it hide/show line chart series when the legends were clicked. If I make them all invisible, it gets the error. It also errors if I just call render with the dataPoints set to [].
I have found the problem. It only happens with: axisY:{ includeZero: false }, The jsfiddle you linked also fails when this is used.
Hi! Awesome release. One question: Is the Api support for getting the chart as image built in this version? Thanks. Reply
Hi. After configured a segond Y-axis and activated with on my second dataseries, we can see that unchecking a dataseries from the chart, involves that chart disapear completely. Why? Reply
Riber, The bug has been fixed in v1.9..5.1. Kindly download the latest version and let us know your feedback. Reply