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

how do you add a custom html mark to the tradingvie arealine #99

Open
addsave opened this issue Oct 12, 2023 · 1 comment
Open

how do you add a custom html mark to the tradingvie arealine #99

addsave opened this issue Oct 12, 2023 · 1 comment

Comments

@addsave
Copy link

addsave commented Oct 12, 2023

``In the react framework, how do you add a custom html mark to the tradingvie arealine diagram? I looked at the shap and mark in the api and it seems that it cannot customize content with styles (such as a combination of pictures and text). I hope to get your help. Thank you so much

The following is my current code, which can only form a circle mark, which does not meet my needs:
getMarks: (symbolInfo, startDate, endDate, onDataCallback, resolution) => { console.log('getMarks', symbolInfo, startDate, endDate, onDataCallback, resolution); var Arr = [ { id: 1, time: Date.now() / 1000 - 45, color: 'red', text: '<div>3333</div>', label: 'test', labelFontColor: 'yellow', minSize: 30, }, ] let res = onDataCallback(Arr); console.log(res, "=====getMarks running"); },

@kdunaev-tv
Copy link

kdunaev-tv commented Oct 25, 2023

Unfortunately, it is currently not possible to customize the shape of bar marks. We are collecting requests for this functionality. At the moment it is not possible to say whether this will be implemented or any ETAs.

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

2 participants