Cognos Analytics

 View Only
  • 1.  Custom Visualization - Suburst

    Posted Mon November 04, 2019 02:07 AM
    Very  happy to see visualization customization option finally added to  Cognos Analytics.. Integration is seamless and custom charts behave like native charts once imported.

    I am trying to create sunburst visualization with legend, however facing below challenges,

    1) Converting data to hierarchical JSON. Is there any api method available for this conversion
    2) Current D3 chart includes HTML elements to display legends, however Cognos only allows to access chart element (_node). Is there way we can add more DIV elements and add more content from visualization.

    It will be great if IBM provides additional sample on how to handle above two scenarios with sunburst sample.

    Ref: https://bl.ocks.org/kerryrodden/7090426

    Regard,
    Rajesh Vanam

    ------------------------------
    Rajesh Kumar Vanam
    ------------------------------

    #CognosAnalyticswithWatson


  • 2.  RE: Custom Visualization - Suburst

    Posted Mon November 04, 2019 04:03 AM
    Hi there - Sunburst visualisation is already included in the product - no need to create via custom vis.

    ------------------------------
    Nick Waters
    ------------------------------



  • 3.  RE: Custom Visualization - Suburst

    Posted Mon November 04, 2019 07:49 AM
    @Nick Waters I am looking for sunburst chart to use my own hierarchical data to display as level/node.
    Current sunburst chart which is available in dashboard/exploration is auto generated chart to display how underlying data predicts given target.  ​

    ------------------------------
    Rajesh Kumar Vanam
    ------------------------------



  • 4.  RE: Custom Visualization - Suburst

    Posted Tue November 12, 2019 03:19 AM
    Hi Rajesh,
    1) The current API does not support accessing the hierarchical (stacked) tuple information yet. However we are adding this in a next release, so you can expect to see this feature very soon.
    2) In your custom visualization you are not limited to d3 charts. In the 'create' method of your visualization, you can add any html DOM element to the passed _node parameter. The _node is an HTMLElement and serves as the root element of your visualization. You can add anything you like under this element. Also note that while it is possible to make your own implementation of a legend, Cognos Analytics can provide a built-in legend implementation for you. You have some control over the content of this legend by overriding the 'updateLegend' method. Here are some links with more info on this:
    - https://www.ibm.com/support/knowledgecenter/en/SSEP7J_11.1.0/com.ibm.swg.ba.cognos.dg_custom_vis.doc/ca_customviz_lib_legends.html
    https://ibm.github.io/ca_customvis/docs/11.1.x/classes/renderbase.html#updatelegend

    Regards,
    Ton Steijvers

    ------------------------------
    Ton Steijvers
    ------------------------------