bar-border-width (nonlocal option definition)
public bar-border-width:any =1pt
Package: CURL.GUI.CHARTS

The border width to be applied to Shapes generated within a BarLayer.

Description

This option is parallel to the border-width option on various Shape objects, such as RectangleShape.border-width. In fact, at Shape generation time, its value is directly applied to each generated Shape as the border-width option, unless overridden by a user-provided BarLayer.ShapeFactory. Please refer to border-width for more information about the behavior of and accepted types for this option.

Notes

This option is provided because border-width is a local option. It is more convenient to set the border width for a plot at the ChartLayer level than at the individual Shape level.

Example


Example: Changing the border width within a BarLayer
{import * from CURL.GUI.CHARTS}
{import * from CHARTS-DOC,
    location = "../docstring-support/gui/charts-doc.scurl"
}


{let layer:BarLayer = 
    {BarLayer
        sample-records,
        "Age",
        "Points",
        x-axis-data = {ChartDataSeries sample-records, "Name"},
        bar-border-width = 1pt
    }
}

{LayeredChart
    width = 15cm,
    height = 7cm,
    layer
}

bar-border-width:
{TextField
    value = "1pt",
    {on ValueFinished at tf:TextField do
        set layer.bar-border-width = {evaluate tf.value}
    }
}