javascript - How to create circle to outer of circle in line of chart in c3.js? -


i started learn c3.js. pretty work with.

i got stuck in part, hope can me go forward .

how create circle in outer of circle in line chart using c3.js .

this example code

var chart = c3.generate({   data: {     columns: [         ['data1', 30, 200, 100, 150, 150, 250],         ['data12', 30, 200, 100, 150, 150, 250]     ],     type: 'line'   }, }); 

it giving 1 small circle ( dot kind of ) want create 1 more circle different color , inside of circle need show small circle (dot kind of ) .

how that?

i have tried select circle , apply border .i have tried this

 d3.selectall('circle').each(function(){      this.style('border-radius: 20px;');   }); 

this wrong way, not working. how ?

is possible in c3.js?

you can set size of point using chart options

... point: {     r: 20 } ... 

and can draw border using css

#chart .c3-circle {     stroke: black;     stroke-width: 4; } 

(assuming drawing chart in container id chart)


fiddle - http://jsfiddle.net/yhz8k5k9/


enter image description here


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -