{"id":276,"date":"2008-10-03T15:23:06","date_gmt":"2008-10-03T22:23:06","guid":{"rendered":"http:\/\/www.nicholasgoodman.com\/bt\/blog\/2008\/10\/03\/how-to-disable-drill-through-on-pentaho-charts\/"},"modified":"2008-10-03T15:23:06","modified_gmt":"2008-10-03T22:23:06","slug":"how-to-disable-drill-through-on-pentaho-charts","status":"publish","type":"post","link":"http:\/\/www.nicholasgoodman.com\/bt\/blog\/2008\/10\/03\/how-to-disable-drill-through-on-pentaho-charts\/","title":{"rendered":"How to Disable Drill Through on Pentaho Charts"},"content":{"rendered":"<p>I have some dashboard pages which show charts that are purely informational.  They don&#8217;t need to click to anywhere.  In fact, since I&#8217;m loading these charts via AJAX calls I do not want them to be linked.  I want them to be images without any URLs and no clicks.<\/p>\n<p><a href=\"http:\/\/www.nicholasgoodman.com\/bt\/blog\/wp-content\/uploads\/2008\/10\/200810031517.jpg\" onclick=\"window.open('http:\/\/www.nicholasgoodman.com\/bt\/blog\/wp-content\/uploads\/2008\/10\/200810031517.jpg','popup','width=642,height=445,scrollbars=no,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=yes,left=0,top=0');return false\"><img decoding=\"async\" src=\"http:\/\/www.nicholasgoodman.com\/bt\/blog\/wp-content\/uploads\/2008\/10\/200810031517.jpg\" border=\"1\" hspace=\"4\" vspace=\"4\" alt=\"200810031517\" \/><\/a><br \/>\nAll of those bars \/ lines etc I just want to have hovers (to see the values, but no click through locations).<\/p>\n<p>However, after looking through all the documentation and code for it, I couldn&#8217;t find a single way to suppress the generation of hyperlinks for the charts.  Sure, I could get the image from the ChartComponent but then I wouldn&#8217;t get the hover values.  Until it occurred to me.  Why not just make a URL link that does nothing?<\/p>\n<p>Adding the following fragment to the chart definition can make the link, in essence, do nothing and not even refresh the page.  Meets my needs.<\/p>\n<blockquote><p>&lt;use-base-url&gt;false&lt;\/use-base-url&gt;<br \/>\n&lt;url-template&gt;javascript:;&lt;\/url-template&gt;<\/p><\/blockquote>\n<p>Not ideal though.  It still shows the user a clickable area so the user may think the application isn&#8217;t working properly.  I think <a href=\"http:\/\/jira.pentaho.com\/browse\/BISERVER-2222\">BISERVER-2222<\/a> will be better in the long term but a stop gap measure that helps my customers for sure.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have some dashboard pages which show charts that are purely informational. They don&#8217;t need to click to anywhere. In fact, since I&#8217;m loading these charts via AJAX calls I do not want them to be linked. I want them to be images without any URLs and no clicks. All of those bars \/ lines [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[16,11],"tags":[],"_links":{"self":[{"href":"http:\/\/www.nicholasgoodman.com\/bt\/blog\/wp-json\/wp\/v2\/posts\/276"}],"collection":[{"href":"http:\/\/www.nicholasgoodman.com\/bt\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.nicholasgoodman.com\/bt\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.nicholasgoodman.com\/bt\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.nicholasgoodman.com\/bt\/blog\/wp-json\/wp\/v2\/comments?post=276"}],"version-history":[{"count":0,"href":"http:\/\/www.nicholasgoodman.com\/bt\/blog\/wp-json\/wp\/v2\/posts\/276\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.nicholasgoodman.com\/bt\/blog\/wp-json\/wp\/v2\/media?parent=276"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.nicholasgoodman.com\/bt\/blog\/wp-json\/wp\/v2\/categories?post=276"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.nicholasgoodman.com\/bt\/blog\/wp-json\/wp\/v2\/tags?post=276"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}