epochjs / epoch

A general purpose, real-time visualization library.
http://epochjs.github.io/epoch
MIT License
4.97k stars 278 forks source link

More Versatile Domain and Range Options #121

Open rsandor opened 10 years ago

rsandor commented 10 years ago

Allow the basic chart's domain and range options to be given three different types:

  1. Array[2] - Where the first element is the minimum, and the second is the max
  2. (@data) -> return Array[2] - Function that is passed the data for the chart and returns a min-max tuple
  3. String - Name of a method on the chart instance that can be called to generate the min-max tuple.
rsandor commented 10 years ago

This may or may not be needed, let's see how the library is used and if it becomes a pain point before implementing.