Skip to content

How to display time on timescale (intraday data)? #642

Answered by timocov
timocov asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, it's possible.

Firstly, you need to be sure, that you provide proper time value for every data item - it should be unix timestamp (number).

Secondly, you need to set up time scale to show time part of the dates. It could be done via providing a proper options:

  • set timeVisible to true if you'd like to display time (hours and minutes) on time scale
  • set secondsVisible to true if you'd like to display seconds along with hours and minutes (note that it won't affect anything if timeVisible is disabled)

See intraday data example https://jsfiddle.net/TradingView/bmL0vont/.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@cegv14
Comment options

@jrm0695
Comment options

@timocov
Comment options

@tiger2014
Comment options

@osmar-pj
Comment options

Answer selected by timocov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants