customBars: false,
fillGraph: false,
fillAlpha: 0.15,
- fillStepPlot: false,
connectSeparatedPoints: false,
stackedGraph: false,
// TODO(danvk): any other styles that are useful to set here?
this.graphDiv.style.textAlign = 'left'; // This is a CSS "reset"
+ this.graphDiv.style.position = 'relative';
enclosing.appendChild(this.graphDiv);
// Create the canvas for interactive parts of the chart.
this.lastRow_ = row;
for (var setIdx = 0; setIdx < this.layout_.points.length; ++setIdx) {
var points = this.layout_.points[setIdx];
- var setRow = row - this.getLeftBoundary_(setIdx);
- if (setRow < points.length) {
- var point = points[setRow];
- if (point.yval !== null) this.selPoints_.push(point);
+ for (var pointIdx = 0; pointIdx < points.length; ++pointIdx) {
+ var point = points[pointIdx];
+ if (point.idx == row) {
+ if (point.yval !== null) {
+ this.selPoints_.push(point);
+ }
+ break;
+ }
}
}
} else {