Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- /*****************************************************************
- CAPABILITY RISK ANALYSIS CONFIG
- - Shows capabilities with technology risk
- Pie chart shows the breakdown of used software product versions
- - colors represent the internal lifecycle phases as of the input date
- - slices represent the number of applications using the SPVs
- Capability borders are colored according to capability status;
- Business Functions don't have a status field, so they are always
- considered 'Existing'
- ********************************************************/
- /************************************************************
- INITIALIZATION CONFIGS
- *************************************************************/
- initializationConfigs : {
- display1 : {
- defaultQueryParameters : {
- id : -1,
- orgId : -1,
- spvID : -1,
- // used to filter the viz for a particular software product version
- lifecycleType : "'Manufacturer Roadmap Lifecycle for Software Product Version'",
- //options for lifecycle type are:
- // Market Lifecycle for Software Product Version
- // Manufacturer Roadmap Lifecycle for Software Product Version
- // Internal Lifecycle for Software Product Version
- date : "2011-01-01 00:00:00",
- component : {
- id : -1
- },
- blueprint : {
- id : -1
- }
- },
- minimapConfig : {
- defaultScale : ".10",
- displayPolicy : "off"
- },
- initialHierarchyDepth : 2,
- maximumHierarchyDepth : 8,
- visualizationConfig : {
- initialFit : "fitAll",
- scrollBarsEnabled : true
- }
- }
- },
- /******************************************************************
- TOP LEVEL DISPLAY CONFIGS
- (There can be only one top level display at the current time)
- *******************************************************************/
- topLevelDisplayConfigs : {
- display1 : {
- displayMappingID : "topLevelDisplay"
- }
- },
- /************************************************************
- INSTANCE DATA CONFIGS
- (Maps the query results to the visualization content)
- *************************************************************/
- instanceDataConfigs : {
- Component : {
- id : "Component",
- displayMappingID : "ComponentDisplay",
- columnPrefix : "COMPONENT",
- parentKeyName : "COMPONENT_PARENT_ID"
- },
- BusinessFunction : {
- id : "BusinessFunction",
- displayMappingID : "BFDisplay",
- columnPrefix : "BUSINESSFUNCTION",
- parentKeyName : "COMPONENT_PARENT_ID",
- dataFields : {
- Phase : "PHASE_TYPE",
- Count : "NUM_APPS"
- //CompStatus : "COMPONENT_STATUS"
- },
- dataMapConfigs : {
- AppsForPhaseMap : {
- valueName : "Count",
- keyName : "Phase",
- id : "AppsForPhaseMap"
- }
- }
- }
- },
- /************************************************************
- DISPLAY MAPPING CONFIGS
- *************************************************************/
- displayMappingConfigs : {
- topLevelDisplay : {
- displayType : "NestedContainerDisplay",
- containerViewConfigID : "topLevelContainer"
- },
- ComponentDisplay : {
- displayType : "DynamicDepthInstanceDisplay",
- containerViewConfigID : "LabeledContainer",
- //childrenViewConfigID : "LabeledContainer",
- properties : {
- hierarchyDepth : 2
- }
- },
- BFDisplay : {
- displayType : "DynamicDepthInstanceDisplay",
- containerViewConfigID : "LabeledContainer",
- childrenViewConfigID : "PieAppsPerPhaseContainer",
- properties : {
- hierarchyDepth : 2
- }
- }
- },
- /************************************************************
- VIEW CONFIGS
- *************************************************************/
- viewConfigs : {
- topLevelContainer : {
- id : "topLevelContainer",
- component : "BasicContainer",
- styles : {
- layout : "vertical",
- borderStyle : "none",
- borderWeight : 0,
- borderColor : "0xFFFFFF",
- verticalGap : 4
- },
- properties : {
- }
- },
- LabeledContainer : {
- id : "LabeledContainer",
- component : "TitleContainer",
- stylizerIDs : ["borderColorStylizer","hierarchyDepthStylizer"],
- propertizerIDs : ["hierarchyDepthPropertizer"],
- styles : {
- layout : "horizontalFlow",
- borderColor : "0xFFFFFF",
- borderWeight : 0,
- borderAlpha: .1,
- backgroundAlpha : 1,
- cornerRadius : 5,
- color : 0,
- horizontalAlign : "center",
- verticalAlign : "middle",
- paddingTop : 5,
- paddingLeft : 5,
- paddingRight : 5,
- paddingBottom : 5,
- horizontalGap : 5,
- dropShadowEnabled : true,
- shadowDistance : 4,
- shadowDirection : "right",
- titleFill : "gradient",
- titleBackgroundGradientColors : ["0xE6E6E6","0xCFCFCF"],
- titleBackgroundGradientAlphas : [1,1],
- titleBackgroundGradientRatios : [0.1,0.9],
- titleBackgroundGradientRotation : 90,
- titleBackgroundGradientType : "linear",
- titleColor : "0x000000",
- titlePosition : "top",
- titleFontSize : 10,
- titleMinHeight : 26,
- titleMaxHeight : 26,
- titleTextWrapping : true,
- titleTextTruncation : true,
- titleHorizontalAlign : "center",
- titleShowParentBorder : true,
- titlePaddingTop : 3,
- titlePaddingLeft : 3,
- titlePaddingRight : 3,
- titlePaddingBottom : 3,
- titleHeight : 30,
- titleFontWeight : "normal"
- },
- properties : {
- minWidth : 75,
- maxWidth : 970
- }
- },
- PieAppsPerPhaseContainer : {
- id : "PieAppsPerPhaseContainer",
- component : "DataMapPieChartView",
- properties : {
- mapID : "AppsForPhaseMap",
- minSliceSize : 1,
- width : 65,
- height : 50,
- sliceColorMap : {
- // for internal lifecycles
- "Proposed" : "0x9999CC",
- "Pilot" : "0xCCCC33",
- "Approved - Planned" : "0x999933",
- "Approved - Preferred" : "0x336600",
- "Approved - Maintain" : "0x66CC66",
- "Approved - Phase Out" : "0xFFCC66",
- "Approved - Remove" : "0xFF9933",
- "Exception" : "0xCC6600",
- "Denied" : "0xCC3333",
- //for mfg lifecycles
- "Beta" : "0x9999CC",
- "Limited Availability" : "0xCCCC33",
- "Generally Available" : "0x336600",
- "End of Life" : "0xCC6600",
- "Obsolete" : "0xCC3333",
- //for market lifecycles
- "Watch" : "0x9999CC",
- "Emerging" : "0xCCCC33",
- "Mainstream" : "0x336600",
- "Decline" : "0xCC6600"
- //Obsolete is already defined in mfg list
- }
- }
- }
- },
- /************************************************************
- STYLIZERS
- (Stylizers change the style attributes of the components)
- *************************************************************/
- stylizers : {
- //change the styles based on the hierarchy depth. First level capabilities have the label on the left and different title colors
- hierarchyDepthStylizer : {
- type : "DisplayDepthStylizer",
- properties : {
- valueMap : {
- "1" : {
- //change the general layout of the top-most level
- titlePosition : "left",
- titleBackgroundGradientColors : ["0xE6E6E6","0xCFCFCF"],
- titleFontSize : 14,
- titleTextTruncation : false,
- titleTextWrapping : false,
- backgroundColor : "0xF4F4F4",
- paddingRight : 10,
- paddingTop : 10,
- paddingBottom : 10,
- paddingLeft : 10,
- horizontalGap : 4
- },
- "2" : {
- titleBackgroundGradientColors : ["0xE6E6E6","0xD3D3D3"]
- },
- "3" : {
- titleBackgroundGradientColors : ["0xEEEEEE","0xDBDBDB"]
- },
- "4" : {
- titleBackgroundGradientColors : ["0xEEEEEE","0xDBDBDB"]
- }
- }
- }
- },
- //change the border color based on capability status
- borderColorStylizer : {
- type : "EnumeratedValueStylizer",
- properties : {
- dataField : "CompStatus",
- valueMap : {
- "Undefined" : {
- borderColor : "0xCCCCCC",
- borderWeight : 1,
- borderAlpha: .05
- //gray
- },
- "Planned" : {
- borderColor : "0x9999CC",
- borderWeight : 4,
- borderAlpha: 1
- //blue
- },
- "Existing" : {
- borderColor : "0x336600",
- borderWeight : 4,
- borderAlpha: 1
- //green
- }
- }
- }
- },
- //change the border color back to black for all components
- noBorderColorStylizer : {
- type : "EnumeratedValueStylizer",
- properties : {
- dataField : "CompStatus",
- valueMap : {
- "Undefined" : {
- borderColor : "0x000000",
- borderWeight : 0,
- borderAlpha: .1
- },
- "Planned" : {
- borderColor : "0x000000",
- borderWeight : 0,
- borderAlpha: .1
- },
- "Existing" : {
- borderColor : "0x000000",
- borderWeight : 0,
- borderAlpha: .1
- }
- }
- }
- }
- },
- /************************************************************
- PROPERTIZERS
- *************************************************************/
- propertizers : {
- //change the properties based on the hierarchy depth
- hierarchyDepthPropertizer : {
- type : "DisplayDepthPropertizer",
- properties : {
- valueMap : {
- "1" : {
- //setting the minWidth for level 1 sets the top level gray bars to be equal in length
- minWidth : 1100,
- maxWidth : 1100
- }
- }
- }
- }
- },
- /************************************************************
- CONTROL CONFIGS
- *************************************************************/
- controlConfigs : {
- //set hierarchy depth option to 4 (which is also the default)
- depthControl : {
- position : 0,
- restrictToOneInstance : true,
- controlType : "depthControls",
- showInFooter : false,
- showInHeader : true,
- properties : {
- depthOptions : [1,2,3,4],
- selectedIndex : 1
- //sets the default value to '2', which is index 1
- }
- },
- //change the border color based on capability status
- borderSwitch : {
- position : 1,
- restrictToOneInstance : true,
- controlType : "actualizerSwitchControl",
- properties : {
- labelText : "Border Color:",
- selectedIndex : 0,
- //default to 'None'
- viewConfigMap : [
- {
- label : "Status",
- configs : [{
- viewConfigID : "LabeledContainer",
- stylizerIDs : ["borderColorStylizer","hierarchyDepthStylizer"]
- }]
- },
- {
- label : "None",
- configs : [{
- viewConfigID : "LabeledContainer",
- stylizerIDs : ["noBorderColorStylizer","hierarchyDepthStylizer"]
- }]
- }
- ]
- }
- }
- },
- /************************************************************
- LEGEND CONFIGS
- *************************************************************/
- legendConfigs : {
- legend1 : {
- direction : "horizontal",
- legendBoxConfigMap : {
- Component : {
- baseEntryLabel : "",
- index : 1,
- visible : true,
- mappingID : "Component",
- direction : "vertical",
- legendEntryMap : {
- //"Proposed": {"index": 1, "label": "Proposed"},
- //"Pilot": {"index": 2, "label": "Pilot"},
- //"Approved - Planned" : {"index": 3, "label": "Approved - Planned"},
- //"Approved - Preferred" : { "index": 4, "label": "Approved - Preferred"},
- //"Approved - Maintain": {"index": 5, "label": "Approved - Maintain"},
- //"Approved - Phase Out": {"index": 6, "label": "Approved - Phase Out"},
- //"Approved - Remove": {"index": 7, "label": "Approved - Remove"},
- //"Exception" : {"index": 8, "label": "Exception"},
- //"Denied": {"index": 9, "label": "Denied"}
- },
- label : "Pie Chart - Technology Phase",
- compact : false
- },
- borderColorStylizer : {
- index : 3,
- baseEntryLabel : "",
- compact : false,
- visible : true,
- direction : "vertical",
- label : "Capability Status",
- mappingID : "borderColorStylizer",
- legendEntryMap : {
- "Undefined" : {
- label : "Undefined",
- index : 1,
- visible : true
- },
- "Planned" : {
- label : "Planned",
- index : 2,
- visible : true
- },
- "Existing" : {
- label : "Existing",
- index : 3,
- visible : true
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement