Exciting Update: Version 1.0.1 is now available, introducing high-performance technical indicators and custom drawing tools. Read more
Version: 1.0.0

Custom time scale

The CustomTimeScale module provides full control over the X-axis appearance, including text colors, grid lines, font, and axis background.

Overview

Edit custom-timescale.js to call window.ChartingAPI.setTimeScaleSettings(). Leave color fields empty for automatic theme-aware values.

Settings API

window.ChartingAPI.setTimeScaleSettings({
  textColor: '#707584', // Label text color
  lineColor: 'rgba(0,0,0,0.08)', // Grid line color
  lineWidth: 0.5, // Grid line thickness
  lineDash: [4, 4], // Grid dash pattern
  fontSize: '10px', // Label font size
  fontFamily: 'Inter, Arial, sans-serif',
  axisBackgroundColor: '#1a1a24' // X-axis row background
});

Options Reference

OptionTypeDescription
textColorstringColor of time labels on the X-axis.
lineColorstringColor of vertical grid lines.
lineWidthnumberGrid line thickness in pixels.
lineDashnumber[]Dash pattern for grid lines.
fontSizestringCSS font size string for time labels.
fontFamilystringCSS font family for time labels.
axisBackgroundColorstringX-axis row background color.