Giter Site home page Giter Site logo

Comments (4)

cmaurer avatar cmaurer commented on September 26, 2024

Take a look at forcex and forcey attributes.

http://cmaurer.github.io/angularjs-nvd3-directives/line.chart.html

from angularjs-nvd3-directives.

fopsdev avatar fopsdev commented on September 26, 2024

thanks, i've tried with forcey="[0,maxValue]" and different combinations but the view didn't change
so thats why i've tried to setup a plunker, well it's my first one and it doesn't work at all.
http://plnkr.co/edit/RHKSC6VjRBEGuw1RxIOk?p=preview
well maybe i'll give it another try later

from angularjs-nvd3-directives.

cmaurer avatar cmaurer commented on September 26, 2024

@fopsdev
A couple of things.

  1. In your controller, you created the vm object and associated it to 'this'. But 'this' is not the scope, so it was not visible to the directive. I added a line to associate vm to the scope $scope.vm = vm and the directive was able to see the data.
    http://plnkr.co/edit/Aw1NQZmcU7vhRRYwzeS7?p=preview

  2. I added the code to the directive for forcex and forcey and pushed it. You should be able to use it now on this chart.

  3. This is a chart that is in the directives, but I may not have finished enabling everything. You are blazing a trail here. You will most likely encounter more with this chart, so please do not hesitate to let me know if you encounter more issues.

Thanks,
Chris

from angularjs-nvd3-directives.

fopsdev avatar fopsdev commented on September 26, 2024

well what should i say? thanks a lot for your help, that was amazingly quick!
looks like this specific issue is nailed. lets explore the trail a little more :)

from angularjs-nvd3-directives.

Related Issues (20)

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.