reflex-examples icon indicating copy to clipboard operation
reflex-examples copied to clipboard

Request for an example using lightweight-charts library

Open jik0730 opened this issue 2 years ago • 0 comments

Hi, thanks for all of these works. I am a big fan of Pynecone framework.

I am using Pynecone for building chart web-app that uses lightweight-charts as a charting framework, which is built by TradingView. I am quite new to react so after following the guide in docs about wrapping react I was not able to launch any chart from the library. It would be really helpful to have any example of using lightweight-charts with datasets.

I have tried this but not working (it says SyntaxError: Cannot use import statement outside a module):

class TradingView(pc.Component):
    library = "lightweight-charts"
    tag = "ColorType"

Thanks.

jik0730 avatar Feb 05 '23 09:02 jik0730