dimple.js - modify shape to be unfilled bubble depending on value of 'Channel' -
looking suggestions on how can modify example dimple.js code in link below output filled/unfilled circle depending on value of 'channel' variable?
http://dimplejs.org/examples_viewer.html?id=bubbles_vertical_grouped
picture below example of result looking achieve.
you can do:
chart.assigncolor("supermarkets", "transparent", "blue");
where third parameter whatever want outline colour be. if want thicker borders picture can after drawing with:
svg.selectall("circle").style("stroke-width", 5);
to bit more specific can assign series variable , access them way:
var series = mychart.addseries("channel", dimple.plot.bubble); mychart.draw(); series.shapes.style("stroke-width", 5);
or can set stroke-width in css.
Comments
Post a Comment