Javascript examples for highcharts:Chart Image
renderer fill colour of embedded SVG image
<html> <head> <title>Highcharts Demo</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> <script type="text/javascript"> $(function() {//from ww w. ja v a2s.c o m $('#container').highcharts({ xAxis: { categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'] }, series: [{ data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4] }] }, function(chart) { // on complete chart.renderer.path([]) .attr({ d: "M31.8,14.8c-2.1-0.6-4.3,0.7-4.9,2.8l-6.7,25.1c-0.6,2.1,0.7,4.3,2.8,4.9c0.3,0.1,0.7,0.1,1,0.1c1.8,0,3.4-1.2,3.9-3 l6.7-25.1C35.2,17.6,34,15.4,31.8,14.8z", fill: 'black', transform: "translate(100,100)" }) .add(); }); }); </script> </head> <body> <script src="https://code.highcharts.com/highcharts.js"></script> <div id="container" style="height: 300px"></div> </body> </html>