Table Of Contents

Previous topic

gxp.GoogleStreetViewPanel

Next topic

gxp.LayerUploadPanel

gxp.Histogram

Extends
xtype
gxp_histogram
class gxp.Histogram(config)

A component for displaying a simple histogram. Quantities will always be stretched so the highest quantity takes up 100% of the available height.

new gxp.Histogram({
    quantities: [1,2,3,4,5,4,3,2,1],
    renderTo: document.body
});

Config Options

Configuration properties in addition to those listed for Ext.BoxComponent.

quantities

Array(Number) Array of quantities for the histogram.

Public Methods

Public methods in addition to those listed for Ext.BoxComponent.

Histogram.setQuantities()
Parameters:quantitiesArray(Number) Array of quantities for the histogram.

Updates the quantities that were originally configured with quantities.