TomNeyland / angular-dc

AngularJS directives for dc.js
http://tomneyland.github.io/angular-dc/
MIT License
112 stars 58 forks source link

Input box Filter #50

Open abensrhir opened 9 years ago

abensrhir commented 9 years ago

How can i filter a dimension based on an input box value ?

using the pie example, i added an inputbox tied to a model called calypso, and from the controller , i'm watching the calypso value change and filtering by that value:

$scope.$watch('calypso', function() {
       console.log(parseInt($scope.calypso,10));
       $scope.runDimension.filter(parseInt($scope.calypso,10));
   });

console.log picks the value change , but the chart doesn't get updated.

abensrhir commented 9 years ago

Do you have any idea about this matter @TomNeyland ?