I’m a C# developer looking to evaluate working with SciChartJS for a possible future project.
I’ve created a .NET Blazor Project working with JavaScript Interop and I would like to extend the CustomChartModifier2D in TypeScript.
I’ve not used npm to install SciChart into the project, rather I’m using the CDN approach in my _Host.cshtml file.
<script src="https://cdn.jsdelivr.net/npm/scichart@3.2.491/index.min.js" crossorigin="anonymous"></script>
I’ve been searching online for a SciChartJS TypeScript definition file so that I can leverage TS Strongly Typed system in my test project.
Is there one? Or do I need to build my own, or even is there an already made example of extending SciChart with TypeScript somewhere I’ve missed?
Thank you
- David P asked 3 weeks ago
- last edited 3 weeks ago
- You must login to post comments
Hi David,
We publish Typings with the npm package, and also they are distributed with the browser bundle script on JSDelivr. Here’s a direct link to the typings:
https://cdn.jsdelivr.net/npm/scichart@3.2.516/index.d.ts
However, I personally have no experience using TypeScript outside of an npm environment, I wasn’t aware you can even include it in pure JS applications.
Does that help? If you need something else let me know
Finally, if you’re not aware, there is an OSS Blazor implementation which uses our JSON/Builder API to create charts. Take a look here to see how they’ve done it. https://github.com/NRTDP/SciChartBlazor
Best regards
Andrew
- Andrew Burnett-Thompson answered 3 weeks ago
- last edited 3 weeks ago
- You must login to post comments
Please login first to submit.