Charts.JS in a page

This section is for posting questions which are not directly related to WYSIWYG Web Builder.
Examples of off topics: web server configuration, hosting, programming related questions, third party scripts.

Note that these questions will generally not be answered by the administrators of this forum.
Post Reply
User avatar
MorningLight
 
 
Posts: 132
Joined: Tue Jul 04, 2017 12:15 pm

Charts.JS in a page

Post by MorningLight »

Hi All,

Is it possible to add a bar-chart from Charts.JS (http://www.chartjs.org/samples/latest/) into a WWB page?
I don't know where exactly to load the script file and how to put, for instance, this code:
http://www.chartjs.org/docs/latest/

Is it possible to put them into a Layoutgrid?

Thanks for any help.
Kind regards,
David
User avatar
BaconFries
 
 
Posts: 5328
Joined: Thu Aug 16, 2007 7:32 pm

Re: Charts.JS in a page

Post by BaconFries »

You can insert external scripts/code using the HTML Object along with using Page HTML placing the code were required this could between the <head>code here</head>tags* or between the <body>here</body>tags*
https://www.wysiwygwebbuilder.com/add_html.html
You may also need to use the File Publisher Object for any external files needed these will also require you to insert the paths of these into the HTML for them to work.
Please note that in general there is no support/assistance with external code or scripts as it is out with help offered.

I cannot say if they can be used in Layout Grids or not but can see no reason why not.
User avatar
MorningLight
 
 
Posts: 132
Joined: Tue Jul 04, 2017 12:15 pm

Re: Charts.JS in a page

Post by MorningLight »

Thank you again Bacon Fries.
I got success following your recommendations.
:D

Kindest regards,
David
Post Reply