Migrating Ember-sparkles (d3 chart library) from 2.9.1 to 2.10


I’m trying to make ember-sparkles (d3 charts) work in v2.10

the wierd thing is that html is rendering, but I see nothing on the page Here is a screen of 2.10

and here is a screen of 2.9.1

I put the code of the example in this repo

v2.9.1 lies in branch ember2_9

Does anybody has any clue how to find the reason


I deployed the code on surge for your convenience: http://hungry-brain-2-10-0.surge.sh/ http://hungry-brain-2-9-1.surge.sh/


Next steps of investigation

width of rectangles doesn’t evaluate.

The code for this evaluation is in ember-sparkles/addon/templates/components/e-s/bar-chart.hbs

                    (if with-transition (d3-transition transition) (d3-noop))
                    (d3-attr 'width' xScale.bandwidth)
                    (d3-attr 'height' (pipe outputKey yScale (e-s/bar-height height)))
                    (d3-attr 'x' (pipe inputKey xScale))
                    (d3-attr 'y' (pipe outputKey yScale))
                    (d3-style 'opacity' 1)

if I log xScale.bandwidth it shows a function. but in helper it is undefined


have you opened a bug report for this in ebmer ?


I’m not sure that it is Ember. So far I created an issue in ember-sparkles repo