Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: Access to "pvc" or "pv" Protovis objects with AMD development

  1. #1

    Default Access to "pvc" or "pv" Protovis objects with AMD development

    Hiya!

    Quick question, how can I access the "pvc" or "pv" Protovis namespace objects trough the current AMD implementation of dashboards?

    Would like to use pv.Image, for instance, in order to add it as an extension to a graphic, but "pv" its undefined and don't know what import is be done with an AMD oriented development.




    Can I summon duarte.leao ?
    Join us at ##pentaho, a FreeNode IRC channel. active as ~iru

  2. #2

    Default

    Got it working with a bit of code digging.
    Hope it helps someone

    Code:
    // require config file
    requirePaths['cdf/lib/CCC/pv'] = CONTEXT_PATH + 'plugin/pentaho-cdf-dd/api/resources/system/pentaho-cdf/js/lib/CCC/protovis';
    
    // js file
    var pv = require('cdf/lib/CCC/pv');
    new pv.Image()
    Join us at ##pentaho, a FreeNode IRC channel. active as ~iru

  3. #3
    Join Date
    Mar 2012
    Posts
    645

    Default

    You should instead do:
    Code:
    // Use the ones you need
    var pvc = require("cdf/lib/CCC/pvc");
    var pv  = require("cdf/lib/CCC/protovis");
    var def = require("cdf/lib/CCC/def");

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.