This repository showcases the usage of LightningChart® JS charting tools within a ElectronJS .
More information about LightningChart® JS can be found from our website, https://www.arction.com/lightningchart-js/
This project can be opened with code editor like Visual Studio with the html file. For further details and download links, please refer to the Get Started guide for ElectronJS here!
To run this project, run this project using visual studio code terminal
npm start
In order to send data to LightningChart® JS , by creating javascript function json data will be passed to javascript in order to run line series using evaluatejavascript function.
// Using Evaluate function sent json data to javascript for line series.
json = '[{ "X": 0, "Y": 0 },{ "X": 1, "Y": 8 },{ "X": 2, "Y": 12 },{ "X": 3, "Y": 18 },{ "X": 4, "Y": 22 },{ "X": 5, "Y": 32 },]';
const JsonData = eval(json);
window.data = JsonData;
Lineseries(data);
OR
fetch data from json file and send to the javascript file
// using getJson fetch data from json file
$.getJSON("data.json", function(json) {
window.scope = json;
});
Line_series(scope);
ECGChart(scope);
If you notice an error in the example code, please open an issue on GitHub. Official API documentation can be found on Arction website. If the docs and other materials do not solve your problem as well as implementation help is needed, ask on StackOverflow (tagged lightningchart). If you think you found a bug in the LightningChart JavaScript library, please contact support@arction.com. Direct developer email support can be purchased through a Support Plan or by contacting sales@arction.com.
© Arction Ltd 2009-2020. All rights reserved.