Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can we use this in react ? or does react has similar library like this ? #205

Closed
eminvergil opened this issue Feb 7, 2021 · 6 comments
Closed

Comments

@eminvergil
Copy link

eminvergil commented Feb 7, 2021

Can we use this in react ? or does react has similar library like this ?
If there is no library like this in react i think we should start an open source project.

@C451
Copy link
Collaborator

C451 commented Feb 8, 2021

There is no similar project AFAIK. Please feel free to start, but I must say that the lib has a lot of vue-specific tricks.

@NorthMcCormick
Copy link

I have never used Vue (I use Stencil and other web tech, though) and have been trying to find this exact kind of lib.

My first searches say no... Can anyone shed light on if I can run these charts inside web components? It's worth asking!

Anyways, awesome lib :)

@JohannesHoppe
Copy link

You can export the chart as a custom element. See: https://github.com/karol-f/vue-custom-element
Then you can embed your custom element anywhere! 😃

@NorthMcCormick
Copy link

NorthMcCormick commented Feb 13, 2021

@JohannesHoppe Thank you for the resource. I am going to give this a shot. This will be my first time ever working in Vue. If anyone has experience and wants to throw together a working example before I can please do 😁

Edit: I've made some progress. I've got a basic wrapper setup for a custom component. https://github.com/NorthMcCormick/trading-vue-js-Web-Component-Example

@JohannesHoppe
Copy link

First time Vue here, too! 😆

Great progress so far. I did something very similar on top of a plain Vue CLI project. In my version you can use properties to hand over data, too. I could prepare another demo in some hours, if you are still interested?

JohannesHoppe added a commit to JohannesHoppe/trading-vue-js-web-component-example that referenced this issue Feb 13, 2021
@JohannesHoppe
Copy link

@NorthMcCormick Check out this demo. This should provide you with everything you need. Have fun with it! 😃

Source:
https://github.com/JohannesHoppe/trading-vue-js-web-component-example

Demo:
https://johanneshoppe.github.io/trading-vue-js-web-component-example/

@C451 C451 closed this as completed Feb 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants