.. ================================================== .. FOR YOUR INFORMATION .. -------------------------------------------------- .. -*- coding: utf-8 -*- with BOM. .. include:: ../../../Includes.txt AggregateToBarChart ^^^^^^^^^^^^^^^^^^^ This is a callback (output-only) in order to show a detail view for aggregated data. So what you do is, you configure your detail view in a way that it would actually find more than one entry (altough, of course, a detail view only takes the first entry). Now apply this callback handler to a numeric value and it will collect all data that fits the configuration you specified (except the "limit 1" detail limitation) and create a bar chart from that. bHideSummary ------------ Boolean. If set to true, no summary (including average) is shown (at the top). sAverage -------- String (one of mean, mode, median). Additionally to the bar chart, an average is displayed (if set). If so, you may want to specify what kind of average to use. Default and example: :: mean nDigits ------- Number of digits after the comma for all calculated values (like percent or average values). Default is 1. bHideEmptyBars -------------- Boolean. If set to true, bars of values that do not have any data are not shown at all (otherwise they are shown to be 0). Default is false (thus, showing empty bars). sOrderBy -------- String (one of name or size). Specifies in which order to show the bars. Default is name meaning that the entries are sorted (ascending) by their value. If set to size they are (ascending as well) sorted by the amount of entries (their percentage, respectively). nMaxWidth --------- Number. Amount of pixels that a bar should be long if it would be a 100% bar. Default is 400. nMin ---- Number. Minimum value, only necessary if you do not hide empty bars. nMax ---- Number. Maximum value, see nMin. sWrapSingle ----------- String. Wrapper for single bars (and the summary). Default: ::
|
sConcatenate ------------ String. Connects the single (wrapped) bars. Default is empty. sWrap ----- String. Wrapper for the total thing. Default is empty.