Giter Site home page Giter Site logo

ember-nvd3's Introduction

A reusable chart library for D3.js as Ember components.

Live demo: http://glavin001.github.io/ember-nvd3/dist/

Alternatively take a look at Ember-C3 for your charting needs.


Usage

bower install --save ember-nvd3

Include D3 and NVD3 styles and scripts

<!-- NVD3 Styles -->
<link rel="stylesheet" href="bower_components/nvd3/nv.d3.min.css">
<!-- D3 Script -->
<script src="bower_components/d3/d3.min.js"></script>
<!-- NVD3 Script -->
<script src="bower_components/nvd3/nv.d3.min.js"></script>

Include Ember NVD3 styles and scripts

<!-- Ember NVD3 Script -->
<script src="bower_components/ember-nvd3/build/ember-nvd3.js"></script>

Usage Examples

Developing

After cloning repository, install library dependencies.

npm install
bower install

Then build with grunt.

grunt serve

Contributing

See CONTRIBUTING.md for more information.
Clone this JS Bin from http://jsbin.com/kawur/1/edit and submit it with your bug reports.

Documentation

Uses grunt-jsdoc to create documentation. To create simple run

grunt docs

ember-nvd3's People

Contributors

frozenfire92 avatar glavin001 avatar lukes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ember-nvd3's Issues

Command fails when docs/ not previously created

grunt serve
Running "open:docs" (open) task
Warning: Command failed: The file /Users/glavin/Development/ember-nvd3/docs/index.html does not exist.
 Use --force to continue.

Aborted due to warnings.

Assertion failed: You must use Ember.set() to access this property (of <Ember.NVD3.LineWithFocusChart:ember438>)

Hello everyone, i'm building my first emberjs application and i'm working with this plugin, basically this is my view

<div>
    <h4>{{name}}</h4>
    {{nvd3-line-with-focus-chart data=chartInfo}}
</div>

and this is my controller

AcornsTest.StockController = Ember.ObjectController.extend({
  init: function() {
    "use strict";
    this._super();

    this.send('generateChartInfo');
  },

  actions: {
    generateChartInfo: function() {
      "use strict";

      this.set('chartInfo', ['rommel']);
    }
  }
});

but i get this error: Assertion failed: You must use Ember.set() to access this property (of Ember.NVD3.LineWithFocusChart:ember438)

the weird thing is that if i have a view like this:

<div>
    <h4>{{name}}</h4>
    {{chartInfo}}
</div>

... it works perfectly!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.