Create stepped graph? | Ben Bimber | 2013-01-28 15:04 |
Status: Closed | ||
hi alan, i think i'm missing something. i was able to inject additional data points and use the path geom to create a contiguous line that was stepped, mimicking the graph in the first link. however, is it possible to create a non-contiguous line? this would be something like the graph in the second link. Maybe I misunderstand your post, but the only way I can see to accomplish a non-contiguous line is to append one layer per segment. it would be something like: for each data point { //add one layer w/ a Path Geom. plot.addLayer(new LABKEY.vis.Layer({ geom: new LABKEY.vis.Geom.Path(...), aes: { y: function(row){ //this would return a value if we expect to draw the segment, and null if not. } } } is there a better pattern to follow? |
||