ChartMarker.getLength

Syntax

getLength();

Description

The getLength method returns length in pixels for bubble chart axis label.

Comments

This method returns a Number type value.

Example

To execute this example, the HTML page must contain the BubbleChart component named bubbleChart (see Example of Creating the BubbleChart Component). Create a new bubble chart label and get its length:

// Define brush
var stroke = new PP.SolidColorBrush({
    Color: "#3366FF"
});
// Define label parameters
var settings = {
    Length: 15,
    Chart: bubbleChart,
    Thickness: 10,
    Stroke: stroke
};
// Create a new label
var marker = new PP.Ui.ChartMarker(settings);
// Get and show label length value
console.log("Label length: " + marker.getLength());

After the example execution the browser console shows label length value:

Label length: 15

See also:

ChartMarker