weekday tooltip
This commit is contained in:
parent
73beae051a
commit
ae596ebf8e
1 changed files with 2 additions and 2 deletions
|
|
@ -184,8 +184,8 @@ class ConfluenceChart {
|
|||
timeFormatter: time => {
|
||||
const daily = this.bars[0]?.tf === '1d';
|
||||
return new Date(time * 1000).toLocaleString(undefined, daily
|
||||
? { timeZone: 'UTC', year: 'numeric', month: 'short', day: 'numeric' }
|
||||
: { hour12: false, month: 'short', day: 'numeric', hour: '2-digit', minute: '2-digit' });
|
||||
? { timeZone: 'UTC', weekday: 'short', year: 'numeric', month: 'short', day: 'numeric' }
|
||||
: { weekday: 'short', hour12: false, month: 'short', day: 'numeric', hour: '2-digit', minute: '2-digit' });
|
||||
},
|
||||
},
|
||||
rightPriceScale: { borderVisible: false },
|
||||
|
|
|
|||
Loading…
Reference in a new issue