I have no experience using SVG
. I'm trying to add an icon via the SVGRenderer
function but I'm not able to change some properties of the icon. I was able to recreate the icon via the path
but I can't change height
or width
of the icon, I want to make it smaller.
I'm using react-highcharts
wrapper. This is the function call:
Highcharts.SVGRenderer.prototype.symbols.stockTools = function() {
var path = [
"M22.7 19l-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-.4.5-1.1.1-1.4z"
];
return path;
};
Here is documentation for that function and here a live demo.