1
This commit is contained in:
Alex Yatskov 2014-11-10 19:31:42 +09:00
parent 10aaeba534
commit 54b75d7dc1
2 changed files with 5 additions and 2 deletions

View File

@ -152,7 +152,10 @@
var columns = {}; var columns = {};
for (var feature in _ctx.query.features) { for (var feature in _ctx.query.features) {
columns[feature] = { value: 0.0, hints: [] }; columns[feature] = {
value: 0.0,
hints: []
};
} }
_ctx.grapher.setColumns(columns); _ctx.grapher.setColumns(columns);

View File

@ -128,7 +128,7 @@
var range = computeIndicatorRange(_data.value); var range = computeIndicatorRange(_data.value);
_elements.indicator = _canvas.rect( _elements.indicator = _canvas.rect(
_tickSize, range.min, _width - (_densitySize + _tickSize), (range.max - range.min) _tickSize, range.min, _width - (_densitySize + _tickSize), (range.max - range.min)
).attr({cursor: 'crosshair', fill: computeIndicatorColor()}).click(clicked); ).attr({cursor: 'crosshair', fill: computeIndicatorColor(_data.value)}).click(clicked);
// tick // tick
if (_range.contains(0.0)) { if (_range.contains(0.0)) {