Chartjs-Chart.JS not working in Xpages, chart not defined errror

0👍

I added my resources in a differend way, and now it seems to work .
Thank you for Per Henrik Lausten to point me in the good direction

   <xp:this.resources>
   <xp:headTag tagName="script">
   <xp:this.attributes>
    <xp:parameter name="type" value="text/javascript" />
    <xp:parameter name="src" value="https://code.jquery.com/jquery-3.4.1.min.js" />
   </xp:this.attributes>
  </xp:headTag>

  <xp:headTag tagName="script">
   <xp:this.attributes>
    <xp:parameter name="type" value="text/javascript" />
    <xp:parameter name="src" value="https://cdn.jsdelivr.net/npm/chart.js@2.8.0" />
   </xp:this.attributes>
  </xp:headTag>
 </xp:this.resources>

Leave a comment