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 precedence.

When multiple methods define the same entity, the one with higher precedence will be applied. Here, a lower number means higher precedence, for example:

  • 1 — takes effect first, meaning it will override other approaches
  • 8 — takes effect only if no higher-precedence method/property overrides the same entity
Methods/PropertiesDescriptionPrecedence
#
#
#
#
#
#
#
#

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