42 lines
940 B
JavaScript
42 lines
940 B
JavaScript
/**
|
|
* Use this type instead of `AxisScaleConfig` when the values
|
|
* shouldn't be provided by the user.
|
|
*/
|
|
|
|
/**
|
|
* Config that is shared between cartesian and polar axes.
|
|
*/
|
|
|
|
/**
|
|
* Use this type for advanced typing. For basic usage, use `XAxis`, `YAxis`, `RotationAxis` or `RadiusAxis`.
|
|
*/
|
|
|
|
export function isBandScaleConfig(scaleConfig) {
|
|
return scaleConfig.scaleType === 'band';
|
|
}
|
|
export function isPointScaleConfig(scaleConfig) {
|
|
return scaleConfig.scaleType === 'point';
|
|
}
|
|
export function isSymlogScaleConfig(scaleConfig) {
|
|
return scaleConfig.scaleType === 'symlog';
|
|
}
|
|
|
|
/**
|
|
* The data format returned by onAxisClick.
|
|
*/
|
|
|
|
/**
|
|
* Identifies a data point within an axis.
|
|
*/
|
|
|
|
/**
|
|
* The axis configuration with missing values filled with default values.
|
|
*/
|
|
|
|
/**
|
|
* The x-axis configuration with missing values filled with default values.
|
|
*/
|
|
|
|
/**
|
|
* The y-axis configuration with missing values filled with default values.
|
|
*/ |