Posted on October 17, 2016 by Vishwas R
Today we are releasing 1.9.5 Beta 1 with the most requested feature, multiple axes and a few bug fixes. Below is a summary of this release.
Do download the latest version from our download page and let us know your feedback
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)
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.
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
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
6. bind the data to the chart
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?
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:
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.
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?
The bug has been fixed in v1.9..5.1. Kindly download the latest version and let us know your feedback.
Your email address will not be published. Required fields are marked *
Notify me of follow-up comments by email.
Notify me of new posts by email.
Approx one per month