Skip to content

ChartJs

Thomas Möller edited this page Oct 14, 2023 · 4 revisions

Class name

ChartJS

Purpose / Description

This class contains the properties related to the chart.js script.

Methods

Properties


Detailed description

The following sections contain a detailed description of the properties and methods.

SaveToDisk

Description:

Calling this method saves the chart.js file in the path of the database.

Sample code:

BAC.Scripts.ChartJS.SaveToDisk

Related to:

--

CDN

Description:

With this property you pass the url of the cdn of chart.js.

Default value:

https://cdnjs.cloudflare.com/ajax/libs/Chart.js/4.4.0/chart.umd.min.js

Sample code:

BAC.Scripts.ChartJS.CDN = "https://cdnjs.cloudflare.com/ajax/libs/Chart.js/4.4.0/chart.umd.min.js"

Related to:

Source, PathFilename

PathFilename

Description:

With this property you pass the path to the chart.js file.

Default value:

CurrentProject.Path & "\Chart.umd.min.js"

Sample code:

BAC.Scripts.ChartJS.PathFilename = CurrentProject.Path & "\chart.umd.min.js"

Related to:

Source, CDN

Source

Description:

With this property you can specify where the chart.js file is located.

Possible values are:

  • CDN
  • LocalFile

When you choose "CDN" then the url in the property CDN is inserted to the html file.

When you choose "LocalFile" then the path and file name in the property PathFilename is inserted to the html file.

Default value:

CDN

Sample code:

BAC.Scripts.ChartJS.Source = chScriptSource.CDN

Related to:

CDN, PathFilename

Clone this wiki locally