mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-27 08:48:12 +08:00
hook up parallel coords to real data
This commit is contained in:
@@ -6,7 +6,7 @@ import {
|
||||
height,
|
||||
innerHeight,
|
||||
color,
|
||||
dimensions,
|
||||
createDimensions,
|
||||
types,
|
||||
xscale,
|
||||
yAxis,
|
||||
@@ -18,7 +18,11 @@ Canvas Parallel coordinates with svg brushing via /* via https://bl.ocks.org/syn
|
||||
******************************************
|
||||
******************************************/
|
||||
|
||||
const drawParallelCoordinates = (data) => {
|
||||
const drawParallelCoordinates = (data, ranges) => {
|
||||
|
||||
const dimensions = createDimensions(ranges);
|
||||
|
||||
console.log('ranges', data)
|
||||
|
||||
const d3_functor = (v) => {
|
||||
return typeof v === "function" ? v : function() { return v; };
|
||||
@@ -191,6 +195,9 @@ const drawParallelCoordinates = (data) => {
|
||||
ctx.clearRect(0,0,width,height);
|
||||
ctx.globalAlpha = d3.min([0.85/Math.pow(selected.length,0.3),1]);
|
||||
|
||||
/* send the selected cells to redux */
|
||||
|
||||
|
||||
/* pass the result of the filter above to a fresh canvas, using RAF */
|
||||
render(selected);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user