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.

result looking for

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

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -