Skip to main content

Customization precedence

The library offers multiple approaches to modify the chart's appearance and behavior. This article lists these approaches and demonstrates an example to clarify their order of precedence.

Approaches

The table below provides an overview of customization methods/properties and their order of application. The methods/properties higher in the table will override any styles applied by the methods/properties lower on the list.

Methods/PropertiesDescriptionOrder
#
#
#
#
#
#
#
#

Example

You can check out the following example to understand how these approaches override each other. Change the flags' values provided at the beginning of the JavaScript file (lines 1-7) to easily manage the example.

The coloring of the candle bodies will vary based on the approach applied. Below, you will find the colors associated with each method/property.

  • applyOverrides → orange
  • load → blue
  • saved_data → red
  • settings_overrides → purple
  • settings_adapter → green
  • localStorage → black
  • overrides → yellow