Showing vertical bars on certain time intervals in Gantt Chart Light Library
How can I highlight specific time intervals using vertical bars in Gantt Chart and relarted controls within
Gantt Chart Light Library?
You can show vertical bars to highlight certain time intervals in the chart area using a customized Scale object instance added to the Scales collection of the control, having the following properties values set:
- HeaderHeight: zero (the pseudo-scale object should be hidden in the chart header);
- ScaleType: Custom;
- Intervals: collection of specific time intervals to be highlighted; you should update the interval collections whenever the timeline page changes, i.e. when TimelinePageChanged event occurs;
- Background: brush to be used for highlighting time intervals (i.e. for filling vertical bars).
For sample code for creating custom scale items, please follow this related article.