ChartLabel.MaskText

Syntax

MaskText: String

Description

The MaskText property sets label text mask.

Comments

Use JSON or the setMaskText method to set the property value and the getMaskText method to get the property value.

Example

To execute the example, the HTML page must contain the BubbleChart component named bubbleChart (see Example of Creating the BubbleChart Component). Create a text label with the mask that allows to show information concerning bubble chart area size:

// Get bubble chart area
var chartArea = bubbleChart.getChartArea();
// Create a new label
var label = new PP.Ui.ChartLabel({    
    MaskText: "Bubble chart area width : {%Width:#,#}, height: {%Height:#,#}",
});
// Render label
label.draw(false, chartArea._GridLayer, {
    Width: chartArea.getWidth(),
    Height: chartArea.getHeight()
});

After executing the example a text label is rendered in the bubble chart using the mask: "Bubble chart area width: {%Width:#,#}, height: {%Height:#,#}":

See also:

ChartLabel