【问题标题】:Get Selected Value of Area Chart获取面积图的选定值
【发布时间】:2015-10-17 14:02:16
【问题描述】:

我在编写一个使用 angularjs 更新 d3 面积图的简单指令时遇到问题。

Here is the demo

这是模型:

app.controller('chartController', ['$scope' , 'chartService', function ($scope, chartService) {

    $scope.data = chartService;
}]);

当我使用子图表选择范围时,我想在标签或输入中获取所选日期的值。

【问题讨论】:

  • 更新$scope.data的函数在哪里?

标签: javascript angularjs d3.js angularjs-directive angularjs-scope


【解决方案1】:

以下代码对我有用。

brush.extent()

可能对某人有帮助

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-06-29
    • 2014-08-27
    • 1970-01-01
    • 2017-06-20
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多