-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Open
Description
The following examples are failing on dc-v5 due to changes in the API.
No rush, we can deal with these in due time. But the examples are a manual test suite which needs to be fixed each major version, at least. They exercise weird features of dc.js!
Uncaught Error: Mandatory attribute chart.group is missing on chart[#search]
at TextFilterWidget$1.checkForMandatoryAttributes (base-mixin.ts:448)
at base-mixin.ts:466
at Array.forEach (<anonymous>)
at TextFilterWidget$1.render (base-mixin.ts:466)
at ChartGroup.renderAll (chart-group.ts:39)
at Object.renderAll (chart-registry.ts:164)
at text-filter-widget.html:73
Uncaught (in promise) TypeError: monthChart.filterHandler is not a function
at time-intervals.html:114
Uncaught (in promise) TypeError: chart.width(...).height(...).x(...).xUnits(...).brushOn(...).yAxisLabel(...).dimension(...).group(...)
.controlsUseVisibility(...).addFilterHandler is not a function
at bar-single-select.html:47
is attempting to set
.colors(["orange"])and this results in black bars.
when brushing
brush-ordinal.html:91 Assertion failed: console.assert
applyFilters @ brush-ordinal.html:91
filter @ filter-handler.ts:99
filter @ base-mixin.ts:660
replaceFilter @ base-mixin.ts:600
applyBrushSelection @ coordinate-grid-mixin.ts:918
(anonymous) @ coordinate-grid-mixin.ts:912
(anonymous) @ events.ts:42
setTimeout (async)
events.trigger @ events.ts:40
_brushing @ coordinate-grid-mixin.ts:911
(anonymous) @ coordinate-grid-mixin.ts:848
(anonymous) @ d3compat.ts:15
call @ d3.js:1224
emit @ d3.js:5162
start @ d3.js:5148
started @ d3.js:5254
(anonymous) @ d3.js:1985
brush-ordinal.html:92 Uncaught TypeError: Cannot read property 'filterType' of undefined
at MyDataAdapter.applyFilters (brush-ordinal.html:92)
at MyDataAdapter.filter (filter-handler.ts:99)
at BarChart$1.filter (base-mixin.ts:660)
at BarChart$1.replaceFilter (base-mixin.ts:600)
at BarChart$1.applyBrushSelection (coordinate-grid-mixin.ts:918)
at coordinate-grid-mixin.ts:912
at events.ts:42
no error, no data appears in table when brushing
focus-ordinal-bar.html:107 Uncaught (in promise) TypeError: focus.filterHandler is not a function
at focus-ordinal-bar.html:107
fails to focus charts 2-4. Probably this is another example made simpler by #1785
I'll be glad to help fix these sometime. For now I thought it would be helpful just to run through and log the bugs/errors.