Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: CDE Line Chart Legend Click Mode

  1. #1
    Join Date
    May 2016

    Question CDE Line Chart Legend Click Mode

    Hi all,

    I have a line chart with legend on my dashboard. I want to show all line on execute. and when i click the legend, it only shows the line i clicked. (not as the default: it remove the line i click)

    Is there any way i can do this??

    Thanks a lot!

  2. #2
    Join Date
    Mar 2012


    This can be done by overriding code that gets executed when you click a legend item.
    See also "FAQ > Interaction > Synced series visibility of multiple charts ..."

    Specify the following in preExecution:

    function f() {
      var comp = this;
      this.chartDefinition.legend = {
          scenes: {
            item: {
              execute: function() {
                var series = this.getValue();
                setTimeout(function() {
                    function replaceChartVisibleSeries(series, chart) {
                      var datums =, {visible: true});
            , false);
                      datums ={series: series});
            , true);
                      chart.render(true, true, false);                
                    replaceChartVisibleSeries(series, comp.chart);
                }, 0);

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.