PDA

View Full Version : [OPEN] ExtJS 6.5.1 classic: Ext.chart.series.Bar3D wrong category axis type in docs



fabricio.object
27 Jul 2017, 7:28 AM
In the docs here: http://docs.sencha.com/extjs/6.5.1/classic/Ext.chart.series.Bar3D.html

It says:



Note: 'bar3d' series is meant to be used with the Ext.chart.axis.Category axis as its x-axis.


In other words, it points towards using Ext.chart.axis.Category (http://docs.sencha.com/extjs/6.5.1/classic/Ext.chart.axis.Category.html) class for its x-axis.

But when I load it, I get an error (not warning, the page fails to load!):



'bar3d' series should be used with a 'category3d' axis. Please refer to the 'bar3d' series docs.


So, I guess the docs is not consistent with the code, right?

Notice it will only raise the error when in debug mode. Strange though, shouldn't it be throwing a warning instead? See here:
Ext.chart.series.Bar3D.updateXAxis() code (http://docs.sencha.com/extjs/6.5.1/classic/src/Bar3D.js.html#line115).

Gary Schlosberg
27 Jul 2017, 2:23 PM
Thanks for the report! I have opened a documentation bug in our bug tracker.