zeppelin折线图节点对象操作?

volc1612 发布于 2017/03/22 16:12
阅读 137
收藏 0

%angular
<head>
    <meta charset="UTF-8">
</head>
<form class="form-inline">
  <div class="form-group">
     <label for="paragraphId">筛选条件:</label>
     <select class="form-control input-sm ng-pristine ng-valid ng-scope ng-not-empty ng-touched" ng-model="name">
        <option value="" select='true'>地区名称</option>
        <option value="本溪">本溪</option>
        <option value="营口">营口</option>
        <option value="鞍山">鞍山</option>
        <option value="抚顺">抚顺</option>
    </select>
   </div>
    <button type="button" class="btn btn-primary" ng-click="z.angularBind('name',name, '20170319-140724_1125226313');z.runParagraph('20170319-140724_1125226313')">查询</button>
</form>
<script>
    // var idArray = ["20170319-140724_1125226313"];
    var idArray = ["20170321-092916_289042299"];
    var paragraphId = idArray[0];
    var $paragraphScope = angular.element("#" + paragraphId + "_paragraphColumn_main").scope();
    // 获取所有节点信息
    var config = $paragraphScope.paragraph.results.msg[0];
    console.log(config);
    var result = $paragraphScope.paragraph.results.msg[0];
    console.log(result);
    var app = angular.element("#" + paragraphId + "_paragraphColumn_main");
    var groups = $($('.nv-groups')[1]);
    // 获取组对象
    var groupOne = $(groups.children('g'));
    // 获取第一组
    var group = $(groupOne[0]);
    // group.pie.dispatch.on("elementClick",function(params){
    //    console.log(0);
    // });
</script>

如何获取各节点的值添加鼠标点击事件

加载中
返回顶部
顶部