javascript - Angular and Angularjs-nvd3-directives mark events on a line chart -
i'm using angularjs , angularjs-nvd3-directives create dashboard. mostly, i'm using line charts. nice if mark events on chart. let's have time series. draw marker (a dot or line, maybe custom tooltip) @ point in time.
is there way that?
thanks in advice.
if comes custom tooltips can add together attribute chart directive:
tooltipcontent="tooltipcontentfunction()"
and then, in controller
define function produces html:
$scope.tooltipcontentfunction = function(){ homecoming function(key, x, y, e, graph) { homecoming '<h1>my custom tooltip</h1>' + '<h3>' + key + '</h3>'; } };
javascript angularjs nvd3.js
No comments:
Post a Comment