Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 

AmChartsComponent

A DataFlex custom component wrapper for the amCharts library.

Master branch is for amCharts v4. Use the "v3" branch for amCharts v3.

Getting started

Install DataFlex. This workspace is setup for version 20.0, but should be easy to migrate.

Install Node.js. Version 12 or later will do nicely.

Install dependencies - from your AmChartsComponent folder run:

> npm ci

Build the component client-side files (will be placed in AppHtml/amCharts/):

> npm run build

To run the demo application

Start the DataFlex Studio and open the AmChartsComponent workspace. The studio will copy themes and the JavaScript engine into the AppHtml folder.

Register the web application from the studio menu "Tools > Register WebApp...".

Hit F5 to run the application.

To use to component in another application

Copy client-side files into your application:

> xcopy AppHtml\amCharts <path to app>\AppHtml\amCharts /e /i

Either copy AppSrc/cAmChart.pkg to your application AppSrc folder, or add AmChartsComponent as a library ("Tools > Maintain Libraries... > Add Library...").

Include the Core-JS polyfill and custom component in your index.html:

<script src="https://unpkg.com/core-js-bundle@3.6.5/minified.js"></script>
<script src="amCharts/index.js"></script>