CategorizedDateTimeAxis is not suitable for financial intraday charts of instruments with low liquidity and pre/afterhours charts. It discards time periods (minutes) with no trades, ‘compresses time’ and makes picture confusing. They don’t do it in good trading platforms.
DateTimeAxis would help here. But is there any hack to remove time periods when market closed, weekend, holidays?
If not please consider it as new feature request. It can be implemented as a collection of time periods to remove or show.
What you’re looking for is a Discontinuous DateTime Axis and unfortunately we don’t support it yet. It has been requested a few times so I’ll bump it up the priority list 🙂
Just out of interest, the illiquid markets you are trading – are there regular market open/closed hours? Are you able to provide holiday calendars for the exchanges etc…? I ask because if you say ‘do not render these hours’ you will also need to tell it holiday days and weekends.
Please login first to submit.