Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: Stacked default percentage disable

  1. #1

    Default Stacked default percentage disable

    Hi,

    Is there any way to configure the appearance of the percentage in the tooltip of stacked bars without redefining the complete tooltip?

    Think this is the JIRA where it was added, but can't get access to that "options.percentage" property to disable it.

    http://jira.pentaho.com/browse/CDF-149
    http://jsfiddle.net/duarteleao/caBZD/

    In most cases it makes sense, but we've done a pyramid age with stacked bars, in which we don't want to show them.
    Join us at ##pentaho, a FreeNode IRC channel. active as ~iru

  2. #2
    Join Date
    Mar 2012
    Posts
    645

    Default

    Checkout the tooltip markup template here: https://github.com/webdetails/ccc/bl.../tipsy.css#L39.
    The class ccc-tt-valuePct is present in the span that holds the % value, so you can target this class, in a CSS, to hide it.
    You should probably also specify the chart's tooltipClassName option and use that class to create a CSS rule that does not affect other chart's tooltips.

  3. #3

    Default

    hover debugging was never easy, thanks for the insight @duarte, got it working
    Join us at ##pentaho, a FreeNode IRC channel. active as ~iru

Tags for this Thread

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.