Skip to main content

ScalarValue

This type is mainly used to allow more possibilities and ways to enter props

We currently allow following three types :

1. Number​

Definition​

In Typescript: number
Example: 3,5

Utilities​

The value is converted using Axis scale

Example​

2616

2. Pixels​

Definition​

In Typescript: '${number}'
Explanation: String number
Example: '3','5'

Utilities​

The value is in pixels, independent from scale and Axis

Example​

100px200px400px

3. Percentage​

Definition​

In Typescript: '${number}%'
Explanation: String number ends with "%"
Example: '3%','5%'

Utilities​

The value is converted depending on Axis domain

Examples​

10%20%50%