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 price scale

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

Overview

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

Settings API

window.ChartingAPI.setPriceScaleSettings({
  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: '10.5px', // Label font size
  fontFamily: 'Inter, Arial, sans-serif',
  axisBackgroundColor: '#1a1a24' // Y-axis column background
});

Options Reference

OptionTypeDescription
textColorstringColor of price labels. Leave empty for auto theme.
lineColorstringColor of horizontal grid lines.
lineWidthnumberGrid line thickness in pixels.
lineDashnumber[]Dash pattern for grid lines, e.g. [4, 4].
fontSizestringCSS font size string for price labels (e.g. '10.5px').
fontFamilystringCSS font family for price labels.
axisBackgroundColorstringY-axis column background color.