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

Feature Request #77

Closed
MuslemRahimi opened this issue May 17, 2023 · 5 comments · Fixed by #78
Closed

Feature Request #77

MuslemRahimi opened this issue May 17, 2023 · 5 comments · Fixed by #78

Comments

@MuslemRahimi
Copy link

Hi,

Is it possible to add the feature that the last value of a lineseries is pulsing, see https://tradingview.github.io/lightweight-charts/docs/api/enums/LastPriceAnimationMode.

Would appreciate it alot.

Thanks

@trash-and-fire
Copy link
Owner

Yes. It is possible. It will be added in 2.2.0. Thanks for this find.

@MuslemRahimi
Copy link
Author

In the meantime, how can i add the animation. At the moment i have:
`
const options = {
layout: {
background: {
color: '#1A1A27',
},

},
grid: {
vertLines: {
color: '#1A1A27',
visible: false,
},
horzLines: {
color: '#1A1A27',
visible: false,
},
},
crosshair: {
// hide the horizontal crosshair line
horzLine: {
visible: false,
labelVisible: false,
},
// hide the vertical crosshair label
vertLine: {
labelVisible: false,
style: 0,
},
},
rightPriceScale: {
visible: false,
borderColor: 'rgba(197, 203, 206, 0.8)',
},
leftPriceScale: {
visible: false,
borderColor: 'rgba(197, 203, 206, 0.8)',
},
handleScale: {
mouseWheel: false,
},
handleScroll: {
mouseWheel: false,
horzTouchDrag: false,
vertTouchDrag: false,
pressedMouseMove: false,
},
timeScale: {
borderColor: '#FFFFFF',
textColor: '#FFFFFF',
visible: false,
fixLeftEdge: true,
fixRightEdge: true,
},
lastPriceAnimation: LastPriceAnimationMode.OnDataUpdate,
};`

@trash-and-fire
Copy link
Owner

You can use applyOptions on the series ref, or wait until I publish the next version today.

@MuslemRahimi
Copy link
Author

You can use applyOptions on the series ref, or wait until I publish the next version today.

Ah nice, i will wait then

@trash-and-fire trash-and-fire linked a pull request May 18, 2023 that will close this issue
@trash-and-fire
Copy link
Owner

Done in 2.2.0

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

Successfully merging a pull request may close this issue.

2 participants