API Docs for:
Show:

mixins.graph-area-utils Class

Extends Ember.Mixin
Module: utils/nf/array-helpers

Utility functions for drawing an area.

Item Index

Methods

Methods

createAreaFn

(
  • xScale
  • yScale
  • interpolator
)
Function

Creates a d3 area function from a given set of scales and an interpolator

Parameters:

  • xScale Function

    a d3 scale

  • yScale Function

    a d3 scale

  • interpolator String

    the name of the d3 interpolator to use.

Returns:

Function:

a function that when called will create SVG path data.