javascript - How to get identical colors for categories between different plots in Dimple -
i have 2 plots displaying different aspects of same data. both have same attribute lastly in array:
chart_scatter.addseries(["time", "valuea", "valueb", "category"], dimple.plot.bubble); chart_scatter2.addseries(["time", "valueb", "valuea", "category"], dimple.plot.bubble);
you can find image in comment, not allowed post inline images yet.
i points colored same in both charts. if category 1364 should greenish in first plot , greenish in sec plot. how can accomplish that? using interpolated coloraxis not alternative colors not looking , imply order while info categorical.
you can pass assignments this:
chart_scatter.draw(); chart_scatter2._assignedcolors = chart_scatter._assignedcolors; chart_scatter2.draw();
javascript d3.js dimple.js
No comments:
Post a Comment