Renders an AdminLTE info-box card with an embedded sparkline chart, combining the InfoCardBar layout with a Sparkline sub-report.
INFOCARDSPARK — set as ReportType in def_report.
def Render(self, Param1="", Param2="", Param3="") -> str:
Parameters are unused. Delegates sparkline rendering to ObjReportSparkline.Report, embedding its output inside the card. Expects the query to return rows where [0] is a percentage, [1] is the main numeric value, and [2] is the bottom description. Returns an HTML string.
RpcGetseries(Data)RPC endpoint. Re-executes the report query via sql_get_list and returns the raw result list.
Options read from self._Options JSON:
| Key | Effect |
|---|---|
color |
CSS background-color of the card. Supports $param$ placeholders. |
label |
Unused label field (parsed but not rendered). |
card_width |
CSS width of the outer card container (default: auto). |
card_height |
CSS height of the outer card container (default: auto). |
icon |
Ion icon class (default: ion ion-bag). |
title |
Text displayed in the info-box-text span. |
Requires axion.rpc.js, jquery.min.js, and jquery.sparkline.min.js. The sparkline is rendered by a separate ObjReportSparkline instance that shares data_list, _Reportcode, and _Options from this report.