charting-library-examples
charting-library-examples copied to clipboard
Alternatives to use charting-library with React-javascript
Hello,
First of all, thanks for the great work, I've been using this for a while and it works great.
I came here for ideas, I want to export my app as a React component so another react-app can just import the build and use it as <CustomApp />, but I'm having issues with charting-library, so far the only way that I have made this work is by copying the charting-library files to the public folder and referencing them in an <script> tag in the <head> of my index.html, but that is not ideal for my app, is there another way to use this awesome charts?
I'm also wondering this, it's not an ideal approach to make users copy charting_library into their server bases. Webpack is perfectly capable of dynamically loading chunked modules which are contained in an NPM module. I believe it could be able to detect these modules should be chunked and copy them with chunks preserved into the dist folder? I wonder if there is a way to get TV to behave like a modern library, it looks like it's been compiled that way at least 🤔
and referencing them in an
@jesusLM94 Actually, it's unnecessary to referencing in html file. I hope that it could be done in import-way, just see angular example. That example just import the library from file without referencing it in html file.
I wonder if there is a way to get TV to behave like a modern library, it looks like it's been compiled that way at least
@DominicTobias-b1 I completely agree that it's so much better to have npm package for charting library (or something like that), but due charting library's distribution policy it can't be done in that way, unfortunately.
Thanks, it's a shame as I find the Lightweight Charts to be a significantly nicer user experience. Just NPM install and setData for initial snapshot and update, which is exactly what I need without the rigidity of trying to fit my modern Apollo GraphQL WS API around Datafeed
You've given people access to a private Github repo right? Why couldn't we also get access to a private NPM source?