Setting a Runtime License on a SciChartSurface
Another static method which allows you to license SciChart (apply a trial or paid production or test license) is SciChartSurface.setRuntimeLicenseKey()
All of our instructions for licensing can be found at the page scichart.com/licensing-scichart-js. A quick code sample is below. Ensure that you call this function once before any SciChartSurface is shown with a valid runtime key.
SciChartSurface.setRuntimeLicenseKey |
Copy Code
|
---|---|
import {SciChartSurface} from "scichart/Charting/Visuals/SciChartSurface"; // Set a runtime key in JavaScript once before any SciChartSurface is created SciChartSurface.setRuntimeLicenseKey("YOUR_RUNTIME_KEY_HERE"); |
Notes on Licensing
- SciChart licensing is two-step. We have a developer license for localhost and a runtime key for production or staging sites.
- The Runtime Key controls how your app works on a website (with encoded domain in the key). This applies to production and staging (test) sites.
- Staging (test) sites will have a watermark. This is expected & by design. Production sites will not have a watermark.
- Development activity carried out on your local PC will require an activated developer license.
Full instructions how to activate developer licenses, how to add production & test domains to your account and how to include Runtime keys can be found at scichart.com/licensing-scichart-js.
Resolving Wasm errors on load
If you get an error when loading a SciChartSurface as follows:
Error: Could not load SciChart WebAssembly module. Check your build process and ensure that your scichart2d.wasm, scichart2d.data and scichart2d.js files are from the same version
Please see our related article Deploying Wasm or WebAssembly Data Files with your app
See Also