tradingview / lightweight-charts

Performant financial charts built with HTML5 canvas
https://www.tradingview.com/lightweight-charts/
Apache License 2.0
9.16k stars 1.59k forks source link

Crosshair vertLine doesn't match with tickMarkFormatter #1692

Open TH3AL3X opened 1 week ago

TH3AL3X commented 1 week ago

The timezone thing it's working, but it's not matching with vertLine crosshair chart.applyOptions({ timeScale: { timeVisible: true, tickMarkFormatter: (time, tickMarkType, locale) => { return new Date(time * 1000).toLocaleString('es-ES', { timeZone: zona_horaria, hour: '2-digit', minute: '2-digit' }); }, } });

illetid commented 2 days ago

@TH3AL3X could you pls provide a codesandbox example of how to reproduce the issue. I didn't able to reproduce with code snippet you've provided

TH3AL3X commented 2 days ago

@TH3AL3X could you pls provide a codesandbox example of how to reproduce the issue. I didn't able to reproduce with code snippet you've provided

I already stopped using the library, but for example if you have the timeZone in Europe WET (UTC±00:00), forcing it, it showing everything correctly in the timebar line under chart, but when you put the crosshair, it showing other timezone, not the forced one....

Also the chart is not really responsive.