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

Chart type #213

Closed
elsandyid opened this issue Mar 8, 2021 · 5 comments
Closed

Chart type #213

elsandyid opened this issue Mar 8, 2021 · 5 comments

Comments

@elsandyid
Copy link

It looks great for my needs, but I'he a question. Can I change the type of each chart I use? Like replace the candles with bars or something else?

@lakshanperera
Copy link

Yes, it is possible.
You can change the chart.type in the DataCube instance of your program to update the chart type.

chart.type='Candles'; // ==> CandleStick type
chart.type='Spline'; // ==> Line type
chart.type='XOhlcBars'; // ==> Bar type, but you need to install the free overlay pack

You can download the free overlay pack here

@elsandyid
Copy link
Author

Yes, it is possible.
You can change the chart.type in the DataCube instance of your program to update the chart type.

chart.type='Candles'; // ==> CandleStick type
chart.type='Spline'; // ==> Line type
chart.type='XOhlcBars'; // ==> Bar type, but you need to install the free overlay pack

You can download the free overlay pack here

Nice, but one more question. Can I just add the js file package for html view like your trading-vue-js-demo? Or I have to run it with npm?

@lakshanperera
Copy link

Hi @elsandyid

I don't think I have understood the question correctly, but if you are referring to the installation of the tvjs-overlays (free overlay pack), yes you have to install the npm package.

However, if you want to use few overlays only, you can also copy the relevant .vue component of the overlay (xOhlcBars.vue in your case) and the extra primitives that it uses to your project without installing the full npm package.

@elsandyid
Copy link
Author

sorry for a confusing question @lakshanperera
I mean can I wrote just for html code (browser) only with all the library include. Cause I have check the tradingvuedemo and it still can view the chart (without . vue file)

@lakshanperera
Copy link

Yeah but during development, we have to use vue, later it will be converted into just htmland js (though DOM will be manipulated at runtime by JS)

@C451 C451 closed this as completed Mar 11, 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

3 participants