Following the techanJS example I was able to create candlestick charts with day data. But documentation does not shows how to format date for weekly, monthly and yearly candlestick or ohlc charts.
How to create weekly, monthly or yearly candlestick, ohlc chart with with techan JS?
Ended up using the following format.