toSVGFormat(element: SVGElement);
element. SVG element, to which border settings must be applied.
The toSVGFormat method determines border settings for the specified SVG element.
Executing the example requires that the HTML page contains the BubbleChart component named bubbleChart (see Example of Creating the BubbleChart Component). Set X axis caption borders in a bubble tree:
// Set border var pen = new PP.Pen({ Color: "Red", Opacity: 0.5, Style: PP.PenStyle.Dotted, Width: 2, }); // Get X axis caption var label = bubbleChart.getChartArea().getAxisY().getCaption(); // Set SGV element border pen.toSVGFormat(label.getDomNode().firstChild);
After executing the example the X axis caption is highlighted with red dotted line:
See also: