SMART datagrid v.1 > Classes > SignalBarCellRenderer

Back  Forward

DataLudi.SignalBarCellRenderer.barRate  property

It specifies the maximum height of bar which will be taken up within data cell in rates. 

If it is 1, the height of the biggest bar will be displayed equally as the cell height excluding GridStyles.paddingTop, paddingBottom

Defaults to 1.0.

Getter
function barRate(): Number
Setter
function setBarRate(value: Number)
Code -1
    var columns = [{
        name: "2000",
        fieldName: "2000",
        width: "100",
        renderer: {
            type: "signal",
            maximum: 10,
            barCount: 8,
            barRate: 0.8
        },
        styles: {
            textAlignment: "far",
            shapeColor: "#080"
        }
    },
    ...
    ];
    grid.setColumns(columns);
See Also
startRate
endRate
barGap
barCount
Examples
Signal Bar Cell Renderer