Skip to content

Commit

Permalink
use d3-scale-chromatic for palettes
Browse files Browse the repository at this point in the history
  • Loading branch information
nicgirault committed Feb 15, 2017
1 parent 8e95bd0 commit 8ca6b48
Show file tree
Hide file tree
Showing 43 changed files with 823 additions and 1,951 deletions.
9 changes: 4 additions & 5 deletions demo/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ var heatmap = [
]

links = [
['january', 1, 10, 'february', 20, 25, 0],
['january', 1, 10, 'february', 20, 25, 1],
['february', 1, 10, 'march', 20, 25, 1],
['march', 1, 10, 'april', 3, 7, 2],
['april', 1, 10, 'may', 20, 25, 3],
Expand Down Expand Up @@ -568,6 +568,7 @@ circos
.layout(
{
ticks: {display: false},
cornerRadius: 0,
onClick: function(){console.log('You clicked on the layout layer!');}
},
layout_data
Expand Down Expand Up @@ -635,11 +636,9 @@ circos
.chords(
'l1',
{
usePalette: false,
logScale: false,
opacity: 0.7,
color: function(d, i) {
return i % 2 === 0 ? 'blue' : 'red';
},
color: 'Greens',
tooltipContent: function(d) {
return d.source.id + ' ➤ ' + d.target.id + ': ' + d.value;
},
Expand Down
Loading

0 comments on commit 8ca6b48

Please sign in to comment.