JavaScript/jQuery Chart - Skip Weekends and Holidays

If your dataset excludes non-working days, you can skip them on the axis as well by setting the workdaysOnly property to true. Use the workWeek array to specify which days are workdays. You can also include or exclude specific dates from the axis using the singleWorkdays and holidays arrays respectively.

JavaScript
  • $(function() {
  • $("#chartContainer").dxChart({
  • // ...
  • argumentAxis: {
  • workdaysOnly: true,
  • workWeek: [0, 1, 2, 3, 4, 5],
  • holidays: ["2017/1/16", "2017/2/20", "2017/5/29"]
  • singleWorkdays: ["2017/1/1"]
  • }
  • });
  • });
NOTE
This feature is available for the argument axis only.