Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.35 KB | None | 0 0
  1. {
  2. /*****************************************************************
  3. CAPABILITY RISK ANALYSIS CONFIG
  4. - Shows capabilities with technology risk
  5. Pie chart shows the breakdown of used software product versions
  6. - colors represent the internal lifecycle phases as of the input date
  7. - slices represent the number of applications using the SPVs
  8. Capability borders are colored according to capability status;
  9. Business Functions don't have a status field, so they are always
  10. considered 'Existing'
  11. ********************************************************/
  12. /************************************************************
  13. INITIALIZATION CONFIGS
  14. *************************************************************/
  15. initializationConfigs : {
  16. display1 : {
  17. defaultQueryParameters : {
  18. id : -1,
  19. orgId : -1,
  20. spvID : -1,
  21. // used to filter the viz for a particular software product version
  22. lifecycleType : "'Manufacturer Roadmap Lifecycle for Software Product Version'",
  23. //options for lifecycle type are:
  24. // Market Lifecycle for Software Product Version
  25. // Manufacturer Roadmap Lifecycle for Software Product Version
  26. // Internal Lifecycle for Software Product Version
  27. date : "2011-01-01 00:00:00",
  28. component : {
  29. id : -1
  30. },
  31. blueprint : {
  32. id : -1
  33. }
  34. },
  35. minimapConfig : {
  36. defaultScale : ".10",
  37. displayPolicy : "off"
  38. },
  39. initialHierarchyDepth : 2,
  40. maximumHierarchyDepth : 8,
  41. visualizationConfig : {
  42. initialFit : "fitAll",
  43. scrollBarsEnabled : true
  44. }
  45. }
  46. },
  47. /******************************************************************
  48. TOP LEVEL DISPLAY CONFIGS
  49. (There can be only one top level display at the current time)
  50. *******************************************************************/
  51. topLevelDisplayConfigs : {
  52. display1 : {
  53. displayMappingID : "topLevelDisplay"
  54. }
  55. },
  56. /************************************************************
  57. INSTANCE DATA CONFIGS
  58. (Maps the query results to the visualization content)
  59. *************************************************************/
  60. instanceDataConfigs : {
  61. Component : {
  62. id : "Component",
  63. displayMappingID : "ComponentDisplay",
  64. columnPrefix : "COMPONENT",
  65. parentKeyName : "COMPONENT_PARENT_ID"
  66. },
  67. BusinessFunction : {
  68. id : "BusinessFunction",
  69. displayMappingID : "BFDisplay",
  70. columnPrefix : "BUSINESSFUNCTION",
  71. parentKeyName : "COMPONENT_PARENT_ID",
  72. dataFields : {
  73. Phase : "PHASE_TYPE",
  74. Count : "NUM_APPS"
  75. //CompStatus : "COMPONENT_STATUS"
  76. },
  77. dataMapConfigs : {
  78. AppsForPhaseMap : {
  79. valueName : "Count",
  80. keyName : "Phase",
  81. id : "AppsForPhaseMap"
  82. }
  83. }
  84. }
  85. },
  86. /************************************************************
  87. DISPLAY MAPPING CONFIGS
  88. *************************************************************/
  89. displayMappingConfigs : {
  90. topLevelDisplay : {
  91. displayType : "NestedContainerDisplay",
  92. containerViewConfigID : "topLevelContainer"
  93. },
  94. ComponentDisplay : {
  95. displayType : "DynamicDepthInstanceDisplay",
  96. containerViewConfigID : "LabeledContainer",
  97. //childrenViewConfigID : "LabeledContainer",
  98. properties : {
  99. hierarchyDepth : 2
  100. }
  101. },
  102. BFDisplay : {
  103. displayType : "DynamicDepthInstanceDisplay",
  104. containerViewConfigID : "LabeledContainer",
  105. childrenViewConfigID : "PieAppsPerPhaseContainer",
  106. properties : {
  107. hierarchyDepth : 2
  108. }
  109. }
  110. },
  111. /************************************************************
  112. VIEW CONFIGS
  113. *************************************************************/
  114. viewConfigs : {
  115. topLevelContainer : {
  116. id : "topLevelContainer",
  117. component : "BasicContainer",
  118. styles : {
  119. layout : "vertical",
  120. borderStyle : "none",
  121. borderWeight : 0,
  122. borderColor : "0xFFFFFF",
  123. verticalGap : 4
  124. },
  125. properties : {
  126. }
  127. },
  128. LabeledContainer : {
  129. id : "LabeledContainer",
  130. component : "TitleContainer",
  131. stylizerIDs : ["borderColorStylizer","hierarchyDepthStylizer"],
  132. propertizerIDs : ["hierarchyDepthPropertizer"],
  133. styles : {
  134. layout : "horizontalFlow",
  135. borderColor : "0xFFFFFF",
  136. borderWeight : 0,
  137. borderAlpha: .1,
  138. backgroundAlpha : 1,
  139. cornerRadius : 5,
  140. color : 0,
  141. horizontalAlign : "center",
  142. verticalAlign : "middle",
  143. paddingTop : 5,
  144. paddingLeft : 5,
  145. paddingRight : 5,
  146. paddingBottom : 5,
  147. horizontalGap : 5,
  148. dropShadowEnabled : true,
  149. shadowDistance : 4,
  150. shadowDirection : "right",
  151. titleFill : "gradient",
  152. titleBackgroundGradientColors : ["0xE6E6E6","0xCFCFCF"],
  153. titleBackgroundGradientAlphas : [1,1],
  154. titleBackgroundGradientRatios : [0.1,0.9],
  155. titleBackgroundGradientRotation : 90,
  156. titleBackgroundGradientType : "linear",
  157. titleColor : "0x000000",
  158. titlePosition : "top",
  159. titleFontSize : 10,
  160. titleMinHeight : 26,
  161. titleMaxHeight : 26,
  162. titleTextWrapping : true,
  163. titleTextTruncation : true,
  164. titleHorizontalAlign : "center",
  165. titleShowParentBorder : true,
  166. titlePaddingTop : 3,
  167. titlePaddingLeft : 3,
  168. titlePaddingRight : 3,
  169. titlePaddingBottom : 3,
  170. titleHeight : 30,
  171. titleFontWeight : "normal"
  172. },
  173. properties : {
  174. minWidth : 75,
  175. maxWidth : 970
  176. }
  177. },
  178. PieAppsPerPhaseContainer : {
  179. id : "PieAppsPerPhaseContainer",
  180. component : "DataMapPieChartView",
  181. properties : {
  182. mapID : "AppsForPhaseMap",
  183. minSliceSize : 1,
  184. width : 65,
  185. height : 50,
  186. sliceColorMap : {
  187. // for internal lifecycles
  188. "Proposed" : "0x9999CC",
  189. "Pilot" : "0xCCCC33",
  190. "Approved - Planned" : "0x999933",
  191. "Approved - Preferred" : "0x336600",
  192. "Approved - Maintain" : "0x66CC66",
  193. "Approved - Phase Out" : "0xFFCC66",
  194. "Approved - Remove" : "0xFF9933",
  195. "Exception" : "0xCC6600",
  196. "Denied" : "0xCC3333",
  197. //for mfg lifecycles
  198. "Beta" : "0x9999CC",
  199. "Limited Availability" : "0xCCCC33",
  200. "Generally Available" : "0x336600",
  201. "End of Life" : "0xCC6600",
  202. "Obsolete" : "0xCC3333",
  203. //for market lifecycles
  204. "Watch" : "0x9999CC",
  205. "Emerging" : "0xCCCC33",
  206. "Mainstream" : "0x336600",
  207. "Decline" : "0xCC6600"
  208. //Obsolete is already defined in mfg list
  209. }
  210. }
  211. }
  212. },
  213. /************************************************************
  214. STYLIZERS
  215. (Stylizers change the style attributes of the components)
  216. *************************************************************/
  217. stylizers : {
  218. //change the styles based on the hierarchy depth. First level capabilities have the label on the left and different title colors
  219. hierarchyDepthStylizer : {
  220. type : "DisplayDepthStylizer",
  221. properties : {
  222. valueMap : {
  223. "1" : {
  224. //change the general layout of the top-most level
  225. titlePosition : "left",
  226. titleBackgroundGradientColors : ["0xE6E6E6","0xCFCFCF"],
  227. titleFontSize : 14,
  228. titleTextTruncation : false,
  229. titleTextWrapping : false,
  230. backgroundColor : "0xF4F4F4",
  231. paddingRight : 10,
  232. paddingTop : 10,
  233. paddingBottom : 10,
  234. paddingLeft : 10,
  235. horizontalGap : 4
  236. },
  237. "2" : {
  238. titleBackgroundGradientColors : ["0xE6E6E6","0xD3D3D3"]
  239. },
  240. "3" : {
  241. titleBackgroundGradientColors : ["0xEEEEEE","0xDBDBDB"]
  242. },
  243. "4" : {
  244. titleBackgroundGradientColors : ["0xEEEEEE","0xDBDBDB"]
  245. }
  246. }
  247. }
  248. },
  249. //change the border color based on capability status
  250. borderColorStylizer : {
  251. type : "EnumeratedValueStylizer",
  252. properties : {
  253. dataField : "CompStatus",
  254. valueMap : {
  255. "Undefined" : {
  256. borderColor : "0xCCCCCC",
  257. borderWeight : 1,
  258. borderAlpha: .05
  259. //gray
  260. },
  261. "Planned" : {
  262. borderColor : "0x9999CC",
  263. borderWeight : 4,
  264. borderAlpha: 1
  265. //blue
  266. },
  267. "Existing" : {
  268. borderColor : "0x336600",
  269. borderWeight : 4,
  270. borderAlpha: 1
  271. //green
  272. }
  273. }
  274. }
  275. },
  276. //change the border color back to black for all components
  277. noBorderColorStylizer : {
  278. type : "EnumeratedValueStylizer",
  279. properties : {
  280. dataField : "CompStatus",
  281. valueMap : {
  282. "Undefined" : {
  283. borderColor : "0x000000",
  284. borderWeight : 0,
  285. borderAlpha: .1
  286. },
  287. "Planned" : {
  288. borderColor : "0x000000",
  289. borderWeight : 0,
  290. borderAlpha: .1
  291. },
  292. "Existing" : {
  293. borderColor : "0x000000",
  294. borderWeight : 0,
  295. borderAlpha: .1
  296. }
  297. }
  298. }
  299. }
  300. },
  301. /************************************************************
  302. PROPERTIZERS
  303. *************************************************************/
  304. propertizers : {
  305. //change the properties based on the hierarchy depth
  306. hierarchyDepthPropertizer : {
  307. type : "DisplayDepthPropertizer",
  308. properties : {
  309. valueMap : {
  310. "1" : {
  311. //setting the minWidth for level 1 sets the top level gray bars to be equal in length
  312. minWidth : 1100,
  313. maxWidth : 1100
  314. }
  315. }
  316. }
  317. }
  318. },
  319. /************************************************************
  320. CONTROL CONFIGS
  321. *************************************************************/
  322. controlConfigs : {
  323. //set hierarchy depth option to 4 (which is also the default)
  324. depthControl : {
  325. position : 0,
  326. restrictToOneInstance : true,
  327. controlType : "depthControls",
  328. showInFooter : false,
  329. showInHeader : true,
  330. properties : {
  331. depthOptions : [1,2,3,4],
  332. selectedIndex : 1
  333. //sets the default value to '2', which is index 1
  334. }
  335. },
  336. //change the border color based on capability status
  337. borderSwitch : {
  338. position : 1,
  339. restrictToOneInstance : true,
  340. controlType : "actualizerSwitchControl",
  341. properties : {
  342. labelText : "Border Color:",
  343. selectedIndex : 0,
  344. //default to 'None'
  345. viewConfigMap : [
  346. {
  347. label : "Status",
  348. configs : [{
  349. viewConfigID : "LabeledContainer",
  350. stylizerIDs : ["borderColorStylizer","hierarchyDepthStylizer"]
  351. }]
  352. },
  353. {
  354. label : "None",
  355. configs : [{
  356. viewConfigID : "LabeledContainer",
  357. stylizerIDs : ["noBorderColorStylizer","hierarchyDepthStylizer"]
  358. }]
  359. }
  360. ]
  361. }
  362. }
  363. },
  364. /************************************************************
  365. LEGEND CONFIGS
  366. *************************************************************/
  367. legendConfigs : {
  368. legend1 : {
  369. direction : "horizontal",
  370. legendBoxConfigMap : {
  371. Component : {
  372. baseEntryLabel : "",
  373. index : 1,
  374. visible : true,
  375. mappingID : "Component",
  376. direction : "vertical",
  377. legendEntryMap : {
  378. //"Proposed": {"index": 1, "label": "Proposed"},
  379. //"Pilot": {"index": 2, "label": "Pilot"},
  380. //"Approved - Planned" : {"index": 3, "label": "Approved - Planned"},
  381. //"Approved - Preferred" : { "index": 4, "label": "Approved - Preferred"},
  382. //"Approved - Maintain": {"index": 5, "label": "Approved - Maintain"},
  383. //"Approved - Phase Out": {"index": 6, "label": "Approved - Phase Out"},
  384. //"Approved - Remove": {"index": 7, "label": "Approved - Remove"},
  385. //"Exception" : {"index": 8, "label": "Exception"},
  386. //"Denied": {"index": 9, "label": "Denied"}
  387. },
  388. label : "Pie Chart - Technology Phase",
  389. compact : false
  390. },
  391. borderColorStylizer : {
  392. index : 3,
  393. baseEntryLabel : "",
  394. compact : false,
  395. visible : true,
  396. direction : "vertical",
  397. label : "Capability Status",
  398. mappingID : "borderColorStylizer",
  399. legendEntryMap : {
  400. "Undefined" : {
  401. label : "Undefined",
  402. index : 1,
  403. visible : true
  404. },
  405. "Planned" : {
  406. label : "Planned",
  407. index : 2,
  408. visible : true
  409. },
  410. "Existing" : {
  411. label : "Existing",
  412. index : 3,
  413. visible : true
  414. }
  415. }
  416. }
  417. }
  418. }
  419. }
  420. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement