Skip to content

override

Overrides allow you to customize visualization settings for specific fields or series. This is accomplished by adding an override rule that targets a particular set of fields and that can each define multiple options.

override.byType.new('number')
+ override.byType.withPropertiesFromOptions(
  panel.standardOptions.withDecimals(2)
  + panel.standardOptions.withUnit('s')
)

Index

Fields

obj byName

fn byName.new

byName.new(value)

PARAMETERS:

  • value (string)

new creates a new override of type byName.

fn byName.withPropertiesFromOptions

byName.withPropertiesFromOptions(options)

PARAMETERS:

  • options (object)

withPropertiesFromOptions takes an object with properties that need to be overridden. See example code above.

fn byName.withProperty

byName.withProperty(id, value)

PARAMETERS:

  • id (string)
  • value (any)

withProperty adds a property that needs to be overridden. This function can be called multiple time, adding more properties.

obj byQuery

fn byQuery.new

byQuery.new(value)

PARAMETERS:

  • value (string)

new creates a new override of type byFrameRefID.

fn byQuery.withPropertiesFromOptions

byQuery.withPropertiesFromOptions(options)

PARAMETERS:

  • options (object)

withPropertiesFromOptions takes an object with properties that need to be overridden. See example code above.

fn byQuery.withProperty

byQuery.withProperty(id, value)

PARAMETERS:

  • id (string)
  • value (any)

withProperty adds a property that needs to be overridden. This function can be called multiple time, adding more properties.

obj byRegexp

fn byRegexp.new

byRegexp.new(value)

PARAMETERS:

  • value (string)

new creates a new override of type byRegexp.

fn byRegexp.withPropertiesFromOptions

byRegexp.withPropertiesFromOptions(options)

PARAMETERS:

  • options (object)

withPropertiesFromOptions takes an object with properties that need to be overridden. See example code above.

fn byRegexp.withProperty

byRegexp.withProperty(id, value)

PARAMETERS:

  • id (string)
  • value (any)

withProperty adds a property that needs to be overridden. This function can be called multiple time, adding more properties.

obj byType

fn byType.new

byType.new(value)

PARAMETERS:

  • value (string)

new creates a new override of type byType.

fn byType.withPropertiesFromOptions

byType.withPropertiesFromOptions(options)

PARAMETERS:

  • options (object)

withPropertiesFromOptions takes an object with properties that need to be overridden. See example code above.

fn byType.withProperty

byType.withProperty(id, value)

PARAMETERS:

  • id (string)
  • value (any)

withProperty adds a property that needs to be overridden. This function can be called multiple time, adding more properties.

obj byValue

fn byValue.new

byValue.new(value)

PARAMETERS:

  • value (string)

new creates a new override of type byValue.

fn byValue.withPropertiesFromOptions

byValue.withPropertiesFromOptions(options)

PARAMETERS:

  • options (object)

withPropertiesFromOptions takes an object with properties that need to be overridden. See example code above.

fn byValue.withProperty

byValue.withProperty(id, value)

PARAMETERS:

  • id (string)
  • value (any)

withProperty adds a property that needs to be overridden. This function can be called multiple time, adding more properties.