Permalink
Switch branches/tags
Commits on Apr 23, 2012
  1. Release 1.0.0.

    mbostock committed Apr 23, 2012
  2. Comparison chart improvements.

    Use slightly darker colors for the primary metric for greater contrast. Observe
    the minimum value of the extent. Consistent overplotting.
    mbostock committed Apr 23, 2012
  3. Remove version test.

    mbostock committed Apr 23, 2012
  4. Update README.

    mbostock committed Apr 23, 2012
Commits on Apr 22, 2012
  1. Fix a Firefox error.

    mbostock committed Apr 22, 2012
Commits on Apr 21, 2012
  1. Add the ability to dispose of contexts & charts.

    You can now stop a context by calling stop. You can also remove an associated
    horizon chart by calling horizon.remove on a given selection. Similar methods
    are available for the other chart components.
    mbostock committed Apr 21, 2012
  2. Slight tweak to logic.

    mbostock committed Apr 21, 2012
Commits on Apr 20, 2012
  1. Expose context.metric.

    You can now write your own metric implementations. Hooray!
    mbostock committed Apr 20, 2012
Commits on Apr 13, 2012
Commits on Apr 6, 2012
Commits on Apr 5, 2012
  1. Fix a positioning bug with rule.

    Also, bump version to 0.1.0.
    mbostock committed Apr 5, 2012
  2. Fix race conditions and order dependence.

    Metrics are now stored in a single array, rather than creating a temporary copy.
    In addition, we make sure that new values are written to the correct place, even
    if multiple context change events are received while requests are in-flight.
    
    Metrics now listen to a "beforechange" event which occurs immediately before the
    "change" event, allowing the metrics to update their stored values (shifting, if
    necessary) before any charts attempt to display them. New values are appended to
    the end of the array on a successful "prepare" event, thus avoiding any conflict
    or temporary missing data. This also means that the first metric change event
    reports times that are consistent with change, rather than with prepare.
    mbostock committed Apr 5, 2012
  3. Fix bug in double-buffered update.

    The horizon chart gets notified by both the metric and the context, so we must
    distinguish between the two when shifting previously-drawn pixels.
    mbostock committed Apr 5, 2012
  4. Fix another potential race condition on change.

    If the valuesNext start time doesn't match the change start time, we must shift
    the values to match the display.
    mbostock committed Apr 5, 2012
  5. Swap to new array on context change.

    This guarantees that the metric is consistent with the context. Previously, the
    metric was inconsistent after a successful request (from beforechange) and the
    next change event.
    mbostock committed Apr 5, 2012
  6. Avoid race condition using temporary array.

    Previously, we'd be missing values between the beforechange event and subsequent
    change event. Also, using a temporary array is safer for concurrent requests.
    mbostock committed Apr 5, 2012
  7. Add focus rules!

    mbostock committed Apr 5, 2012
Commits on Apr 4, 2012
Commits on Apr 3, 2012
  1. Update start0 immediately.

    Otherwise, if we have failed requests, we won't update the window correctly.
    There appears to be a related bug with concurrent requests; I'll fix that later.
    mbostock committed Apr 3, 2012
  2. Increase the default delays.

    A longer client delay is needed when many metrics are fetched simultaneously.
    mbostock committed Apr 3, 2012
  3. Faster initialization.

    The previous code made a few assumptions about when metrics were created. Now
    the context notifies beforechange and change listeners of the current time
    window immediately, so they can make requests as soon as they are bound.
    mbostock committed Apr 3, 2012
  4. Change default heights.

    The horizon chart default height is now 30px. To match aspect ratios, the
    default comparison chart height is now 120px.
    mbostock committed Apr 3, 2012
  5. Allow scale to be customized.

    mbostock committed Apr 3, 2012