Quantcast
Channel: Pentaho Community Forums
Viewing all articles
Browse latest Browse all 16689

tooltipformat function help

$
0
0
Hello,

I have the following code in the tooltipformat function of a CCC Bar Chart and it works perfectly:

function f(scene){
var fix = def.html.escape;
var vars = scene.vars;
var series = fix(vars.series.label);
var category = fix(vars.category.label);
var value = fix(vars.value.label);

if(vars.series.label == "label25")
{
indicador="Customized text";
}

return "<div style='text-align:left'>" +
"<b>Indicador</b>: " + indicador + "<br/>" +
"<b>Data</b>: " + category + "<br/>" +
"<b>Número</b>: " + value +
"</div>";
}

but applying the same criterion to CCC Line chart or Pie chart, it doesn't work.
In fact I'm loosing the tooltip when inform the function with that code.

How,Where can I activate logs? or see them?
Where can I find the behaviour of these components on the tooltip aspects?
Can anyone help me, please?

Thanks
Regards

Francesc

Viewing all articles
Browse latest Browse all 16689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>