Skip to content

Class: Scale

Base class for vega like scales which map from a data domain to a visual range, be it axis or color.

  • NOTE: this is an abstract class and should not be instantiated directly

URI: vega_scverse:Scale

classDiagram class Scale click Scale href "../Scale" Scale <|-- BaseAxisScale click BaseAxisScale href "../BaseAxisScale" Scale <|-- ColorScale click ColorScale href "../ColorScale" Scale : name Scale : type Scale --> "1" ScaleEnum : type click ScaleEnum href "../ScaleEnum"

Inheritance

Slots

Name Cardinality and Range Description Inheritance
name 1
String
Name of the scale direct
type 1
ScaleEnum
The type of scale which is a description of what kind of mapping is performed... direct

Usages

used by used in type used
GroupMark scales range Scale

Identifier and Mapping Information

Schema Source

  • from schema: https://w3id.org/scverse/vega-scverse/specification

Mappings

Mapping Type Mapped Value
self vega_scverse:Scale
native vega_scverse:Scale

LinkML Source

Direct

name: Scale
description: Base class for vega like scales which map from a data domain to a visual
  range, be it axis or color.
from_schema: https://w3id.org/scverse/vega-scverse/specification
abstract: true
attributes:
  name:
    name: name
    description: 'Name of the scale. Is used to refer to the scale in the rest of
      the view configuration. For scales used for

      axes typically `Y_scale` or `X_scale` optionally followed by `_n` where n stands
      for the index of the subplot.

      In case of a color mapping it is `color_` followed by a pseudo UUID.'
    from_schema: https://w3id.org/scverse/vega-scverse/scales
    identifier: true
    domain_of:
    - DataObject
    - Scale
    range: string
    required: true
  type:
    name: type
    description: "The type of scale which is a description of what kind of mapping\
      \ is performed between data domain and \nvisual range, e.g. `linear`."
    from_schema: https://w3id.org/scverse/vega-scverse/scales
    domain_of:
    - Transform
    - BaseFormat
    - Scale
    - Legend
    - Mark
    - TextMark
    - GroupMark
    range: ScaleEnum
    required: true

Induced

name: Scale
description: Base class for vega like scales which map from a data domain to a visual
  range, be it axis or color.
from_schema: https://w3id.org/scverse/vega-scverse/specification
abstract: true
attributes:
  name:
    name: name
    description: 'Name of the scale. Is used to refer to the scale in the rest of
      the view configuration. For scales used for

      axes typically `Y_scale` or `X_scale` optionally followed by `_n` where n stands
      for the index of the subplot.

      In case of a color mapping it is `color_` followed by a pseudo UUID.'
    from_schema: https://w3id.org/scverse/vega-scverse/scales
    identifier: true
    alias: name
    owner: Scale
    domain_of:
    - DataObject
    - Scale
    range: string
    required: true
  type:
    name: type
    description: "The type of scale which is a description of what kind of mapping\
      \ is performed between data domain and \nvisual range, e.g. `linear`."
    from_schema: https://w3id.org/scverse/vega-scverse/scales
    alias: type
    owner: Scale
    domain_of:
    - Transform
    - BaseFormat
    - Scale
    - Legend
    - Mark
    - TextMark
    - GroupMark
    range: ScaleEnum
    required: true