title: how to custom chart in primefaces
body: <p>in primefaces 6.0, i want to custom chart throught <em>Extender</em> (<a href="https://www.primefaces.org/docs/guide/primefaces_user_guide_6_0.pdf" rel="nofollow noreferrer">https://www.primefaces.org/docs/guide/primefaces_user_guide_6_0.pdf</a> page 93)
  code below:</p>
  
  <pre><code>&lt;p:chart type="line" model="#{chartViewLine.lineModel1}"/&gt;
  </code></pre>
  
  <p>and Bean, i set:</p>
  
  <pre><code>private LineChartModel lineModel1;
  ...
  lineModel1 = initLinearModel();
  lineModel1.setExtender("extender"); //this wil custom with js
  </code></pre>
  
  <p>and Script:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
   //&lt;![CDATA[
   function extender() {
       this.cfg.seriesDefaults = {
           pointLabels: {show: false}
       };
   }
  
  //]]&gt;
  &lt;/script&gt;
  </code></pre>
  
  <p>but, nothing happened. i'm tried </p>
  
  <pre><code>&lt;p:chart type="line" model="#{chartViewLine.lineModel1}" widgetVar="test1"/&gt;
  function extender() {
   this = PF('test1');
   this.cfg.seriesDefaults = {
       pointLabels: {show: false}
   };
  </code></pre>
  
  <p>}
  but still like that, please help me, how to custom it!</p>