Skip to content

Plugin_DataLabels

Thomas Möller edited this page Jan 9, 2022 · 2 revisions

Class name

Plugin_DataLabels

Purpose / Description

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

Methods

Properties


Detailed description

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

SavePluginToDisk

Description:

Calling this method saves the datalabels plugin in the path of the database.

Sample code:

BAC.Scripts.Plugin_DataLabels.SavePluginToDisk

Related to:

--

CDN

Description:

With this property you pass the url of the cdn of the datalabels plugin.

Default value:

https://cdn.jsdelivr.net/npm/chartjs-plugin-colorschemes

Sample code:

BAC.Scripts.Plugin_DataLabels.CDN = "https://cdn.jsdelivr.net/npm/chartjs-plugin-datalabels@0.7.0"

Related to:

Source, PathFilename

PathFilename

Description:

With this property you pass the path to the datalabels plugin.

Default value:

CurrentProject.Path & "\chartjs-plugin-datalabels.min.js"

Sample code:

BAC.Scripts.Plugin_DataLabels.PathFilename = CurrentProject.Path & "\chartjs-plugin-datalabels.min.js"

Related to:

Source, CDN

Source

Description:

With this property you can specify where the file for the datalabels plug-in 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.Plugin_DataLabels.Source = chScriptSource.CDN

Related to:

CDN, PathFilename