Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ScaleHelper

Util functions for d3 scales

Hierarchy

  • ScaleHelper

Index

Methods

Static createLinearTicks

Static createLogTicks

Static Private createMinorTicks

  • createMinorTicks(v: number, steps: number, stepSize: number): number[]
  • Internal. Creates minor ticks based around a value, number of steps and step size

    Parameters

    • v: number
    • steps: number
    • stepSize: number

    Returns number[]

Static createTicks

Static getDomainPixelSpan

  • getDomainPixelSpan(scale: Scale, domain?: Domain): number

Static getDomainRatio

  • getDomainRatio(scale: Scale): number

Static getDomainSpan

  • getDomainSpan(scale: Scale, absoluteValue?: boolean): number
  • Get the domain span of a scale

    Parameters

    • scale: Scale
    • Default value absoluteValue: boolean = true

    Returns number

Static getPixelRatio

  • getPixelRatio(scale: Scale): number

Static getRangeSpan

  • getRangeSpan(scale: Scale): number

Generated using TypeDoc