With reference to following Implementation of Streamgraph http://bl.ocks.org/WillTurman/4631136 If we have 8 Keys then there will be 8 Layers mapped to 8 different colors.
Now If we have the following dataset:
[T1][T2][T3][T4]
[ 1][ 2][--][--]
[ 3][ 4][ 5][--]
[ 6][--][--][17]
[ 7][--][--][--]
[ 8][ 9][10][11]
[--][13][--][--]
[--][--][15][16]
Here 1-16 are datapoints with weight x
-- are null datapoints with no weight
I need to implement the above table with the following Criteria:
- 1 & 2 be Color A
- 3,4,5 be Color B
- 6 be Color C
- 17 be Color D
- 7 be Color E
- 8,9,10,11 be Color F
- 13 be Color G
- 15,16 be Color H
So How should I assign different color to the same layer
Can the same layer map to different color? by giving the following input parameter:
Layer/Key
Date
Value
Color
Date
Value
Color
– Ronak Agrawal Jan 05 '15 at 06:43