Skip to content

Commit

Permalink
add tooltip CTRL+C
Browse files Browse the repository at this point in the history
  • Loading branch information
nicgirault committed Mar 15, 2017
1 parent c5754c3 commit 9adf5e9
Show file tree
Hide file tree
Showing 11 changed files with 736 additions and 34 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Changelog

### 2.0.2 - 2017-03-16

- Add CTRL+C shortcut to copy tooltip content.
- Add tooltip on axes
2 changes: 1 addition & 1 deletion demo/chords.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ var drawCircos = function (error, GRCh37, cytobands, data) {
opacity: 0.7,
color: '#ff5722',
tooltipContent: function (d) {
return d.source.id + ' ➤ ' + d.target.id + ': ' + d.value
return '<h3>' + d.source.id + ' ➤ ' + d.target.id + ': ' + d.value + '</h3><i>(CTRL+C to copy to clipboard)</i>'
}
}
)
Expand Down
Loading

0 comments on commit 9adf5e9

Please sign in to comment.