BAkpi.json 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395
  1. {
  2. "copyright": "Licensed Materials - Property of IBM. IBM Cognos Products: BI Cloud(C) Copyright IBM Corp. 2019. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.",
  3. "features": [{
  4. "id": "com.ibm.bi.dashboard",
  5. "collectionItems": [{
  6. "containerId": "com.ibm.bi.dashboard.live-visualizations",
  7. "type": "KPI",
  8. "id": "kpi",
  9. "label": "%kpiCaption",
  10. "caption": "%kpiCaption",
  11. "icon": "visualizations-kpi",
  12. "placeholderIcon": "dashboard-analytics/images/placeholders/kpisummary.svg",
  13. "renderer": "dashboard-analytics\/visualizations\/renderer\/kpi\/KpiView",
  14. "scope": "default",
  15. "control": "dashboard-analytics\/visualizations\/renderer\/kpi\/control\/KpiControl",
  16. "supportsFormatAction": true,
  17. "supportsAdvancedProperties": false,
  18. "supportsCustomGroupAction": false,
  19. "supportsSortAction": true,
  20. "supportsFilterAction": true,
  21. "archetypes": ["kpi"],
  22. "preferredSize": {
  23. "width": 300,
  24. "height": 170
  25. },
  26. "propertyPrefixes": {
  27. },
  28. "propertyList": [
  29. {
  30. "id": "elementColor",
  31. "type":"colorClass",
  32. "editor": {
  33. "sectionId": "visualization.color",
  34. "position": 1,
  35. "uiControl": {
  36. "type": "ColorPicker",
  37. "label": "%prop_elementColor",
  38. "addButton": true,
  39. "showHexValue": true,
  40. "open": false,
  41. "ariaLabel": "%prop_elementColor",
  42. "paletteType": "DashboardColorSet",
  43. "missingIsLast": true
  44. }
  45. }
  46. }, {
  47. "id": "textAlignment",
  48. "defaultValue": "center",
  49. "editor": {
  50. "sectionId": "visualization.chart",
  51. "uiControl": {
  52. "type": "IconPicker",
  53. "label": "%prop_textAlignmentLabel",
  54. "items": [{
  55. "name": "left",
  56. "label": "%prop_textAlignmentLeftLabel",
  57. "value": "common-left-align"
  58. }, {
  59. "name": "center",
  60. "label": "%prop_textAlignmentCenterLabel",
  61. "value": "common-center-align"
  62. }, {
  63. "name": "right",
  64. "label": "%prop_textAlignmentRightLabel",
  65. "value": "common-right-align"
  66. }]
  67. }
  68. }
  69. }, {
  70. "id": "baseValueProperties",
  71. "editor": {
  72. "sectionId": "visualization.chart",
  73. "uiControl": {
  74. "label": "%prop_baseValuePropertiesLabel",
  75. "type": "SectionLabel"
  76. }
  77. }
  78. }, {
  79. "id": "baseValueSize",
  80. "defaultValue": "auto",
  81. "editor": {
  82. "sectionId": "visualization.chart",
  83. "uiControl": {
  84. "preRenderCallback": {
  85. "feature" : "Dashboard.KpiPropertyCallbacks",
  86. "callbackFunction": "preRenderValueSizeProperty",
  87. "callbackParams": []
  88. },
  89. "onChange": {
  90. "feature" : "Dashboard.KpiPropertyCallbacks",
  91. "callbackFunction": "onChangeValueSizeProperty",
  92. "callbackParams": []
  93. },
  94. "type": "DropDown",
  95. "label": "%prop_baseValueSize",
  96. "ariaDescribedby": "%prop_baseValueSizeDescription",
  97. "options": [{
  98. "label": "auto",
  99. "value": "auto"
  100. }, {
  101. "label": "24",
  102. "value": "24"
  103. }, {
  104. "label": "32",
  105. "value": "32"
  106. }, {
  107. "label": "48",
  108. "value": "48"
  109. }, {
  110. "label": "64",
  111. "value": "64"
  112. }]
  113. }
  114. }
  115. }, {
  116. "id": "showItemLabel",
  117. "defaultValue": true,
  118. "editor": {
  119. "sectionId": "visualization.chart",
  120. "uiControl": {
  121. "label": "%prop_showBaseLabelLabel",
  122. "type": "ToggleButton",
  123. "ariaLabel": "%prop_showBaseLabelDescription"
  124. }
  125. }
  126. }, {
  127. "id": "baseValueLabel",
  128. "editor": {
  129. "sectionId": "visualization.chart",
  130. "uiControl": {
  131. "preRenderCallback": {
  132. "feature" : "Dashboard.KpiPropertyCallbacks",
  133. "callbackFunction": "preRenderBaseLabelProperty",
  134. "callbackParams": []
  135. },
  136. "type": "InputLabel",
  137. "name": "baseValueLabel",
  138. "ellipses": false,
  139. "multilingual": true,
  140. "label": "%prop_baseLabelText",
  141. "ariaLabel": "%prop_baseLabelTextDescription",
  142. "newLook": true,
  143. "handleReturnKey": true
  144. }
  145. }
  146. }, {
  147. "id": "targetValueProperties",
  148. "editor": {
  149. "sectionId": "visualization.chart",
  150. "uiControl": {
  151. "label": "%prop_targetValuePropertiesLabel",
  152. "type": "SectionLabel"
  153. }
  154. }
  155. }, {
  156. "id": "targetValue",
  157. "editor": {
  158. "sectionId": "visualization.chart",
  159. "uiControl": {
  160. "preRenderCallback": {
  161. "feature" : "Dashboard.KpiPropertyCallbacks",
  162. "callbackFunction": "preRenderTargetValueProperty",
  163. "callbackParams": []
  164. },
  165. "customValidatorCallback": {
  166. "feature" : "Dashboard.KpiPropertyCallbacks",
  167. "callbackFunction": "validateTargetValueProperty",
  168. "callbackParams": []
  169. },
  170. "type": "InputLabel",
  171. "name": "targetValue",
  172. "ellipses": false,
  173. "showInlineError": true,
  174. "label": "%prop_targetValueText",
  175. "ariaLabel": "%prop_targetValueTextDescription",
  176. "placeHolderText": "%prop_targetValueTextPlaceholder",
  177. "newLook": true,
  178. "handleReturnKey": true
  179. }
  180. }
  181. }, {
  182. "id": "showTargetValue",
  183. "defaultValue": true,
  184. "editor": {
  185. "sectionId": "visualization.chart",
  186. "uiControl": {
  187. "type": "ToggleButton",
  188. "label": "%prop_showTargetValueLabel",
  189. "ariaLabel": "%prop_showTargetValueDescription"
  190. }
  191. }
  192. }, {
  193. "id": "showTargetDistance",
  194. "defaultValue": true,
  195. "editor": {
  196. "sectionId": "visualization.chart",
  197. "uiControl": {
  198. "type": "ToggleButton",
  199. "label": "%prop_showTargetDistanceLabel",
  200. "ariaLabel": "%prop_showTargetDistanceDescription"
  201. }
  202. }
  203. }, {
  204. "id": "targetValueSize",
  205. "defaultValue": "auto",
  206. "editor": {
  207. "sectionId": "visualization.chart",
  208. "uiControl": {
  209. "preRenderCallback": {
  210. "feature" : "Dashboard.KpiPropertyCallbacks",
  211. "callbackFunction": "preRenderValueSizeProperty",
  212. "callbackParams": []
  213. },
  214. "onChange": {
  215. "feature" : "Dashboard.KpiPropertyCallbacks",
  216. "callbackFunction": "onChangeValueSizeProperty",
  217. "callbackParams": []
  218. },
  219. "type": "DropDown",
  220. "label": "%prop_targetValueSize",
  221. "ariaDescribedby": "%prop_targetValueSizeDescription",
  222. "options": [{
  223. "label": "auto",
  224. "value": "auto"
  225. }, {
  226. "label": "14",
  227. "value": "14"
  228. }, {
  229. "label": "16",
  230. "value": "16"
  231. }, {
  232. "label": "24",
  233. "value": "24"
  234. }, {
  235. "label": "32",
  236. "value": "32"
  237. }]
  238. }
  239. }
  240. }, {
  241. "id": "showTargetLabel",
  242. "defaultValue": true,
  243. "editor": {
  244. "sectionId": "visualization.chart",
  245. "uiControl": {
  246. "type": "ToggleButton",
  247. "label": "%prop_showTargetLabelLabel",
  248. "ariaLabel": "%prop_showTargetLabelDescription"
  249. }
  250. }
  251. }, {
  252. "id": "targetValueLabel",
  253. "editor": {
  254. "sectionId": "visualization.chart",
  255. "uiControl": {
  256. "preRenderCallback": {
  257. "feature" : "Dashboard.KpiPropertyCallbacks",
  258. "callbackFunction": "preRenderTargetLabelProperty",
  259. "callbackParams": []
  260. },
  261. "type": "InputLabel",
  262. "name": "targetValueLabel",
  263. "ellipses": false,
  264. "multilingual": true,
  265. "label": "%prop_targetLabelText",
  266. "ariaLabel": "%prop_targetLabelTextDescription",
  267. "newLook": true,
  268. "handleReturnKey": true
  269. }
  270. }
  271. }, {
  272. "id": "timeProperties",
  273. "editor": {
  274. "sectionId": "visualization.chart",
  275. "uiControl": {
  276. "label": "%prop_timePropertiesLabel",
  277. "type": "SectionLabel"
  278. }
  279. }
  280. }, {
  281. "id": "showSparkline",
  282. "defaultValue": true,
  283. "editor": {
  284. "sectionId": "visualization.chart",
  285. "uiControl": {
  286. "type": "ToggleButton",
  287. "label": "%prop_showSparkline",
  288. "ariaLabel": "%prop_showSparklineDescription"
  289. }
  290. }
  291. }, {
  292. "id": "kpiPropertySpacer1",
  293. "editor": {
  294. "sectionId": "visualization.chart",
  295. "uiControl": {
  296. "type": "SectionLabel",
  297. "label": ""
  298. }
  299. }
  300. }],
  301. "propertyLayoutList": [{
  302. "type": "Group",
  303. "id": "visualization",
  304. "label": "%tabName_visualization"
  305. }, {
  306. "type": "Section",
  307. "id": "color",
  308. "label": "%sectionName_colorPalette",
  309. "position": 1
  310. }, {
  311. "type": "Section",
  312. "id": "chart",
  313. "label": "%sectionName_chart",
  314. "position": 4
  315. }],
  316. "datasets": [{
  317. "name": "data"
  318. }, {
  319. "name": "sparkline"
  320. }
  321. ],
  322. "defaultDatasetId" : "data",
  323. "thumbnailConfig": {
  324. "unsupportedBrowsers": ["IE"]
  325. },
  326. "dataSlots": [{
  327. "id": "actual",
  328. "type": "ordinal",
  329. "caption": "%kpiSlotBaseValue",
  330. "multiItems" : false,
  331. "maxItems": 1,
  332. "datasetIdList": ["data"],
  333. "role": "response",
  334. "sortable": false,
  335. "mldTitleProperty": "baseValueLabel",
  336. "format": {
  337. "type": "number",
  338. "maximumFractionDigits": 2,
  339. "decimalFormatLength": "short"
  340. }
  341. }, {
  342. "id": "goal",
  343. "type": "ordinal",
  344. "icon": "target",
  345. "caption": "%kpiSlotTargetValue",
  346. "multiItems" : false,
  347. "optional": true,
  348. "maxItems": 1,
  349. "datasetIdList": ["data"],
  350. "role": "response",
  351. "sortable": false,
  352. "mldTitleProperty": "targetValueLabel",
  353. "mldIndicatorIfUnmapped": true,
  354. "format": {
  355. "type": "number",
  356. "maximumFractionDigits": 2,
  357. "decimalFormatLength": "short"
  358. }
  359. }, {
  360. "id": "sparkline.time",
  361. "type": "category",
  362. "icon": "time",
  363. "caption": "%kpiSlotTimeValue",
  364. "multiItems": true,
  365. "maxItems": 10,
  366. "optional": false,
  367. "showRequiredMarker": false,
  368. "datasetIdList": ["sparkline"],
  369. "role": "response",
  370. "sort": "asc",
  371. "sortOrder": 1,
  372. "multiplier": false,
  373. "stackItems": true
  374. }, {
  375. "id": "sparkline.actual",
  376. "type": "ordinal",
  377. "hidden": true,
  378. "caption": "%kpiSlotBaseValue",
  379. "multiItems": false,
  380. "maxItems": 1,
  381. "datasetIdList": ["sparkline"],
  382. "defaultFromSlot": {
  383. "id": "actual"
  384. },
  385. "role": "response",
  386. "sortable": false
  387. }],
  388. "isRecommendable": true,
  389. "usages": ["Other"]
  390. }]
  391. }]
  392. }