Skip to content

Trading Session Chart

Business-day time scale skips weekends on the X axis while keeping epoch timestamps in tooltips.

Business-day skips weekends on the X axis; continuous keeps calendar gaps. Data includes Sat/Sun timestamps.

Code

typescript
import { createStackedChart } from 'velo-plot/trading'

const stack = createStackedChart({
  container,
  panes: [/* price + volume */],
  xAxis: {
    type: 'time',
    timeScale: { calendar: 'business-day', session: '24x7' },
  },
})

Session presets

PresetDescription
24x7Weekends only (default MVP)
NYSEReserved for session-hour filtering

Released under the MIT License.