@@ -1173,7 +1173,7 @@ angular.module('patternfly.charts').directive('pfSparklineChart', ["c3ChartDefau
11731173 * <ul style='list-style-type: none'>
11741174 * <li>.chartId - the unique id of this trends chart
11751175 * <li>.title - (optional) title of the Trends chart
1176- * <li>.layout - (optional) the layout and sizes of titles and chart. Values are 'large' (default), and 'small '
1176+ * <li>.layout - (optional) the layout and sizes of titles and chart. Values are 'large' (default), 'small', and 'compact '
11771177 * <li>.timeFrame - (optional) the time frame for the data in the pfSparklineChart, ex: 'Last 30 Days'
11781178 * <li>.units - unit label for values, ex: 'MHz','GB', etc..
11791179 * <li>.valueType - (optional) the format of the latest data point which is shown in the title. Values are 'actual'(default) or 'percentage'
@@ -1231,6 +1231,7 @@ angular.module('patternfly.charts').directive('pfSparklineChart', ["c3ChartDefau
12311231 <select pf-select class="pf-select-sm" ng-model="layout" id="layout">
12321232 <option value="large" ng-selected="true" selected>Large</option>
12331233 <option value="small">Small</option>
1234+ <option value="compact">Compact</option>
12341235 </select>
12351236 </div>
12361237 </form>
@@ -4349,7 +4350,7 @@ angular.module('patternfly.views').directive('pfDataToolbar',
43494350
43504351
43514352 $templateCache . put ( 'charts/trends/trends-chart.html' ,
4352- "<span><div ng-class=\"{'trend-card-large-pf': showLargeCardLayout,'trend-card-small-pf': showSmallCardLayout}\"><span class=trend-header-pf ng-if=config.title>{{config.title}}</span> <span ng-if=showActualValue><span class=trend-title-big-pf>{{getLatestValue()}}</span> <span class=trend-title-small-pf>{{config.units}}</span></span> <span ng-if=showPercentageValue><span class=trend-title-big-pf>{{getPercentageValue() + '%'}}</span> <span class=trend-title-small-pf>of {{chartData.total + ' ' + config.units}}</span></span><div pf-sparkline-chart config=config chart-data=chartData chart-height=getChartHeight() show-x-axis=showXAxis show-y-axis=showYAxis></div><span class=trend-footer-pf ng-if=config.timeFrame>{{config.timeFrame}}</span></div></span>"
4353+ "<span ng-switch on=config.layout><div ng-switch-default ng-class=\"{'trend-card-large-pf': showLargeCardLayout,'trend-card-small-pf': showSmallCardLayout}\"><span class=trend-header-pf ng-if=config.title>{{config.title}}</span> <span ng-if=showActualValue><span class=trend-title-big-pf>{{getLatestValue()}}</span> <span class=trend-title-small-pf>{{config.units}}</span></span> <span ng-if=showPercentageValue><span class=trend-title-big-pf>{{getPercentageValue() + '%'}}</span> <span class=trend-title-small-pf>of {{chartData.total + ' ' + config.units}}</span></span><div pf-sparkline-chart config=config chart-data=chartData chart-height=getChartHeight() show-x-axis=showXAxis show-y-axis=showYAxis></div><span class=trend-footer-pf ng-if=config.timeFrame>{{config.timeFrame}}</span></div><div ng-switch-when=compact><div class=\"row trend-compact-row\"><div class=col-md-4 style=padding-right:0px><span ng-if=showActualValue><span class=trend-title-compact-big-pf>{{getLatestValue()}}</span> <span class=trend-title-compact-small-pf>{{config.units}}</span></span> <span ng-if=showPercentageValue><span class=trend-title-compact-big-pf>{{getPercentageValue() + '%'}}</span> <span class=trend-title-compact-small-pf>of {{chartData.total + ' ' + config.units}}</span></span> <span class=trend-header-compact-pf ng-if=config.title>{{config.title}}</span></div><div class=col-md-8 style=padding-left:0px><div pf-sparkline-chart config=config chart-data=chartData chart-height=getChartHeight() show-x-axis=showXAxis show-y-axis=showYAxis></div></div></div></div></span>"
43534354 ) ;
43544355
43554356
0 commit comments