oncojs / lolliplot

Chart to aid in understanding mutations and their location on a gene.
Apache License 2.0
22 stars 5 forks source link

Allow mutation fill color to be configurable #32

Closed cheapsteak closed 7 years ago

cheapsteak commented 7 years ago

Proposed API

lolliplot({
  getMutationColor: function (d) { /*return a string */}
})

e.g.

lolliplot({
  getMutationColor: (d) => ({high: '#f00', low:'#fff', unknown: '#777'})[d.impact]
})
alex-wilmer commented 7 years ago

I like this idea

cheapsteak commented 7 years ago

closed by #45