tradingview / charting-library-examples

Examples of Charting Library integrations with other libraries, frameworks and data transports
MIT License
1.33k stars 744 forks source link

[Help] How can I integrate charting library with gastby? #242

Open anhcnt197vn opened 2 years ago

anhcnt197vn commented 2 years ago

I tried to integrate with gastby but still got an error:

Screenshot 2021-08-30 at 12 32 18 AM

Please check my step:

  1. Put charting_library and datafeeds into static folder in the root project. And then the error above was occured!
anhcnt197vn commented 2 years ago

Mr @timocov could you please help me?

timocov commented 2 years ago

@anhcnt197vn I think this pinned issue https://github.com/tradingview/charting-library-examples/issues/36 is about the similar issue so you can use the same approach to solve it https://github.com/tradingview/charting-library-examples/issues/36#issuecomment-411023104.

anhcnt197vn commented 2 years ago

@anhcnt197vn I think this pinned issue #36 is about the similar issue so you can use the same approach to solve it #36 (comment).

Mr @timocov thank you for your answer! It's work! But I found another error about UDFCompatibleDatafeed undefined, I read issue #240 but it didn't help me at all. I copied the DataFeed folder to the public folder but it doesn't seem to be loaded. Could you please help me?

Screenshot 2021-09-06 at 3 51 16 PM

timocov commented 2 years ago

@anhcnt197vn you need either to include datafeeds file similarly to this or import datafeed explicitly in your file.