Permalink
Browse files

Fix index issue in finance demo tick formatter.

  • Loading branch information...
1 parent ac9a8e6 commit d8654f061c56a7c02070cf6eeb6749ad7a05b0b2 @cesutherland cesutherland committed Apr 2, 2012
Showing with 4 additions and 3 deletions.
  1. +4 −3 demos/finance.js
View
@@ -3,6 +3,7 @@ function example () {
var
V = envision,
container = document.getElementById('demo'),
+ summaryTicks = financeData.summaryTicks,
options, vis;
options = {
@@ -15,11 +16,11 @@ function example () {
trackFormatter : function (o) {
var
- data = financeData,
- index = o.index,
+ data = o.series.data,
+ index = data[o.index][0],
value;
- value = data.summaryTicks[index].date + ': $' + data.price[1][index] + ", Vol: " + data.volume[1][index];
+ value = summaryTicks[index].date + ': $' + summaryTicks[index].close + ", Vol: " + summaryTicks[index].volume;
return value;
},

0 comments on commit d8654f0

Please sign in to comment.