HorizontalLegendLayout Class
yui3/src/charts/js/CartesianChartLegend.js:48
Parent Module: charts
Contains methods for displaying items horizontally in a legend.
Index
Methods
_positionLegendItems
-
items
-
maxWidth
-
maxHeight
-
totalWidth
-
totalHeight
-
padding
-
horizontalGap
-
verticalGap
-
hAlign
Displays items horizontally in a legend.
Parameters:
-
items
ArrayArray of items to display in the legend.
-
maxWidth
NumberThe width of the largest item in the legend.
-
maxHeight
NumberThe height of the largest item in the legend.
-
totalWidth
NumberThe total width of all items in a legend.
-
totalHeight
NumberThe total height of all items in a legend.
-
padding
NumberThe left, top, right and bottom padding properties for the legend.
-
horizontalGap
NumberThe horizontal distance between items in a legend.
-
verticalGap
NumberThe vertical distance between items in a legend.
-
hAlign
StringThe horizontal alignment of the legend.
_setRowArrays
-
items
-
limit
-
horizontalGap
Creates row and total width arrays used for displaying multiple rows of legend items based on the items, available width and horizontalGap for the legend.
getStartPoint
-
w
-
totalWidth
-
align
-
padding
Returns the starting x-coordinate for a row of legend items.
Parameters:
Returns:
Number