Menu

C3.js and Plotly.js javascript file template

ART Help
Pierre
2020-05-28
2020-05-29
  • Pierre

    Pierre - 2020-05-28

    Hi,

    I'm using C3.js and Plotly.js charts and according to the manual it should be possible to add a javascript template file to set options. My question is what options can be set? The documented options in ART or the "all" options available in C3.js / Plotly.js?

    And, what should be the structure of such a template file? Can somebody provide a working example?

    Thanks!

     

    Last edit: Pierre 2020-05-28
  • Timothy Anyona

    Timothy Anyona - 2020-05-29

    If you set the options defined in the manual, you may not need a javascript file, at least for the plotly charts. The demo has some sample c3.js reports and you can find the template files in the js-templates folder of the webapp. The javascript file has no particular format. It just allows you to do additional customization according to the c3 or plotly documentation.

     
  • Pierre

    Pierre - 2020-05-29

    Hi Timothy, thanks it works now.

     

Log in to post a comment.