function getSparkline($metric, $metric_col, $period = '', $height = 25, $width = 250, $map = array(), $add_state = true) { $map['metric'] = $metric; $map['metric_col'] = $metric_col; $map['period'] = $period; $map['height'] = $height; $map['width'] = $width; return owa_template::getWidget('base.widgetSparkline', $map, false, $add_state); }