DataGenerator

A data generator for MapD3 charts

DataGenerator
Returns
object: The dataGenerator instance.
Example
mapd3.DataGenerator()
  .setConfig({
    keyType: "time",
    range: [0, 100],
    pointCount: 200,
    groupCount: 2,
    lineCount: 4
  })
  .generateTestDataset()
Instance Members
setConfig
generateTestDataset

Chart

A base chart for line/area/stacked area/bar/stacked bar charts.

Chart
Parameters
container (object) The DOM element or selector for the container
Returns
object: The chart instance.
Example
mapd3.Chart(document.querySelector('.chart'))
   .setConfig({
     width: 800,
     height: 400,
     keyType: "time",
     chartType: "line"
   })
   .setData(data)
Instance Members
setConfig
setData
render
getEvents

EventManager

Get access to all exposed events

EventManager
Parameters
onBrush (function) : brushStart, brushMove, brushEnd
onBinning (function) : change
onDomainEditor (function) : domainChange, domainLockToggle
onBrushRangeEditor (function) : rangeChange
onLabel (function) : axisLabelChange
onHover (function) : hover
onPanel (function) : mouseOverPanel, mouseOutPanel, mouseMovePanel
Instance Members
onPanel
onBrush
onBinning
onDomainEditor
onBrushRangeEditor
onLabel
onHover