LocusEnergy / ember-sparkles

Collection of composable D3 components built with ember-d3-helpers
http://locusenergy.github.io/ember-sparkles/#/line-chart
MIT License
56 stars 9 forks source link

Example of bar chart doesn't work #37

Closed yarigpopov closed 8 years ago

yarigpopov commented 8 years ago

Hi!

I tried to run an example of bar chart, but failed.

I'm getting an error Assertion Failed: r/get expects argument to be not be undefined which occurs when the value of inputKey in this line is calculated with read function of ember-htmlbars/streams/utils

  function read(object) {
    if (object && object[_emberHtmlbarsStreamsStream.IS_STREAM]) {
      return object.value();
    } else {
      return object;
    }
  }

object.value() returns undefined from [Child] array.

here I put a repo with the code. I used chrome 52 in macOS and 2.7.2version of Ember.

screen shot 2016-09-01 at 16 24 34

Could you please help to resolve the issue?

ghost commented 8 years ago

@chilicoder thanks for trying this out and catching this! the documentation had been updated but I forgot to publish a new version - upgrade to ember-sparkles v0.4.12 in package.json and this should work for you (I just tested with your repo on my machine). Please let us me know if you run into any problems, and good luck!

ghost commented 8 years ago

closing this until further notice – please feel free to comment / reopen if this issue isn't resolved for you.

yarigpopov commented 8 years ago

Thanks! Now it works!