The Nathean Analytics Dashboard Widget is a JQuery widget that be embedded in a third part website. The widget requires JQuery version 1.9 or greater and JQueryUI 1.10 or greater.

The widget requires inclusion of two Nathean Analytics javascript files (logixCommon.min.js & logixDash.min.js) as well as Jquery and Jquery UI. The widget will load any additional resources internally. The required JS files can be found in /Scripts/Widgets of the Nathean Analytics installation folder.

Sample HTML Page using the Nathean Analytics Dashboard Widget:

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
 <title>Dash Widgets</title>
 <meta name="viewport" content="width=device-width, initial-scale=1.0" />
 <script src="http://localhost/Areas/Visualiser/Scripts/jquery-1.9.1.js"></script>
 <script src="http://localhost/Areas/Visualiser/Scripts/jquery-ui-1.10.3/jqueryui.js"></script>
 <script src="http://localhost/Scripts/Widgets/logixCommon.js"></script>
 <script src="http://localhost/Scripts/Widgets/logixDash.js"></script>
</head>
<body>
 <div id="widgetContainerDiv"></div>
 <script>
 $(document).ready(function () {
 BuildLayout("#widgetContainerDiv");
 });
 function BuildLayout(layoutDiv) {
 var options = {
 dashboardID: 2,
 userToken: 'OAuth va2VuX3NlY3JldCUzZENPREElM2FwdWJsaXNoZXIlM2E',
 authenticationToken: 'Logix',
 baseURL: 'http://localhost'
 };
 $(layoutDiv).dashwidget(options);
 }
 </script>
</body>
</html>

Please refer to the API guide for retrieving the userToken, dashboardID etc. The baseURL is the URL of Nathean Analytics

Revision: 1
Last modified: Jun 22, 2020

Feedback

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.

Post your comment on this topic.

Post Comment