javascript - Move button inside the chart -


i have following project display signals on chart. , have implemented pdf export. want button on top or below legends. not able figure out.

<div id="chart"></div> <button class='export-pdf k-button'>save pdf</button> 

i created different solution 1 provided. wrapped chart div in relatively positioned div:

#chart-container { position: relative; } 

then give button absolute positioning absolutely positioned relatively wrapping container (and not window).

here jsfiddle: http://jsfiddle.net/iamjpg/beg04nwf/

good luck!