PrimeFaces Piechart: Tooltips are not displaying in my local environment

前端 未结 1 974
闹比i
闹比i 2021-01-06 03:51

I have recreated the example page shown in the primefaces showcase at:

http://www.primefaces.org/showcase/ui/chart/pie.xhtml

The pie chart successfully displ

相关标签:
1条回答
  • 2021-01-06 04:37

    I have faced the same problem. Using an extender fixed it :

    • Facelet :

      <script type="text/javascript">
          function pieExtender() {
              this.cfg.highlighter = {
                  show: true,
                  tooltipLocation: 'n',
                  useAxesFormatters: false,
                  formatString: '%s = %d'
              };
          }
      </script>
      
    • Managed Bean :

      pieModel.setExtender("pieExtender");
      

    For more tweaking see : http://www.jqplot.com/docs/files/plugins/jqplot-highlighter-js.html

    0 讨论(0)
提交回复
热议问题