cxviz-timeseries
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -0,1 +1,7 @@ | ||
2015-06-22, Version 1.0.2 | ||
========================= | ||
* keep current timeline selection visible on the chart when 0 (seanbrookes) | ||
2015-06-03, Version 1.0.1 | ||
@@ -2,0 +8,0 @@ ========================= |
20
index.js
@@ -523,2 +523,3 @@ 'use strict'; | ||
.on('mousemove', getHoverX) | ||
.on('mouseout', removeHoverX) | ||
.on('click', handleClick); | ||
@@ -530,3 +531,3 @@ } | ||
var rec = self.getRecordAt(ts); | ||
var x = self.x(rec.date) | 0; | ||
var x = self.x(rec.date) | 1; | ||
self.selectionX = x; | ||
@@ -542,2 +543,5 @@ self.selectLine | ||
function removeHoverX() { | ||
self.hoverLine.attr('style', 'display: none'); | ||
} | ||
function getHoverX() { | ||
@@ -558,3 +562,6 @@ var coords = d3.mouse(this); | ||
var rec = this.getRecordAt(ts); | ||
var x = this.x(rec.date) | 0; | ||
var x = this.x(rec.date) | 1; | ||
if (x === 0) { | ||
x = 1; | ||
} | ||
this.selectionX = x; | ||
@@ -588,3 +595,7 @@ this.hoverAt(ts); | ||
var x = self.x(record.date) | 0; | ||
// keep the line visible on first record | ||
var x = self.x(record.date) | 1; | ||
if (x === 0) { | ||
x = 1; | ||
} | ||
@@ -604,3 +615,3 @@ self.hoverLine | ||
.attr('y1', 0).attr('y2', self.innerHeight) | ||
.attr('style', 'display: visible'); | ||
.attr('style', 'display: block'); | ||
@@ -622,2 +633,3 @@ self.disableHoverLine(); | ||
}) | ||
.attr('style', 'display: block') | ||
.attr('stroke-width', 1); | ||
@@ -624,0 +636,0 @@ } |
{ | ||
"name": "cxviz-timeseries", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Strongloop TimeSeries Graph Visualization", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
7235486
30303