Date post: | 27-Dec-2015 |
Category: |
Documents |
Upload: | susanna-shepherd |
View: | 213 times |
Download: | 0 times |
12 February 2014
ANALYSIS FRAMEWORK WORKSHOPS
Luke Machowski
A Division of The Cyest Corporation
Confidential – All rights reserved to The Cyest Corporation Pty. Ltd.
Objective for these Workshops
1. To cover enough of the generic concepts in Analysis Framework (AF) to be able to build the samples outputs.
2. To understand the advanced techniques and tools that are used in AF.
3. To understand the visual components in order to configure your own views.
4. To know when to use the simple components and when to use the advanced components.
Concepts Techniques
Simple Advanced
Vis
uals
1 2
3 4
AF
Com
pon
ent
A Division of The Cyest Corporation
Confidential – All rights reserved to The Cyest Corporation Pty. Ltd.3
AF
Com
pon
ent
Vis
uals
Agenda
Concepts1 Simple3 Advanced4
RECAP:
1. Arbitrary Transformation Pipeline
2. Gives you data transformation and Visualization in one Pipeline
3. Can be used for Data Adapters
1. Using predefined transformers
2. Using Column Builders
3. Using Script
4. Using XAML
5. Attribution Style Risk Simulation
1. Pivot Grid
2. Pivot Chart
3. Lever
4. VDT
1. Decision Tree on when to use the Analysis Framework
2. Creating interesting Visuals
3. Using AF for Data Adapters
Techniques2
A Division of The Cyest Corporation
Confidential – All rights reserved to The Cyest Corporation Pty. Ltd.4
Pivot Grid
A Division of The Cyest Corporation
Confidential – All rights reserved to The Cyest Corporation Pty. Ltd.5
Pivot Chart
A Division of The Cyest Corporation
Confidential – All rights reserved to The Cyest Corporation Pty. Ltd.6
Lever – Pivot Sheet
A Division of The Cyest Corporation
Confidential – All rights reserved to The Cyest Corporation Pty. Ltd.7
Lever - Component
A Division of The Cyest Corporation
Confidential – All rights reserved to The Cyest Corporation Pty. Ltd.8
Value Tree
A Division of The Cyest Corporation
Confidential – All rights reserved to The Cyest Corporation Pty. Ltd.9
Component Decision Tree
1
Do you want to display or edit tabular
data? 2
Do you want to display charts?
3
Do you want to display attribute
relationships?
Do you want to show formula
relationships or arbitrary
relationships?
No
Do you need to calculate cells
on the fly?
Yes
No
Are they simple column, line,
stacked or bubble charts?
Yes
Use the Analysis
Framework
Use the Pivot Sheet
Yes
Yes
No
No
Use the Attribute Canvas
Use the Value Tree
Can probably be done in the Analysis Framework
Formula Relationships
Arbitrary RelationshipsYes
No
A Division of The Cyest Corporation
Confidential – All rights reserved to The Cyest Corporation Pty. Ltd.10
The Analysis Framework
A Division of The Cyest Corporation
Confidential – All rights reserved to The Cyest Corporation Pty. Ltd.11
Example: Attribution Analysis
A Division of The Cyest Corporation
Confidential – All rights reserved to The Cyest Corporation Pty. Ltd.12
Show Case
A Division of The Cyest Corporation
Confidential – All rights reserved to The Cyest Corporation Pty. Ltd.13
Charting with Analysis Framework
1. Analysis Framework provides a powerful charting mechanism
2. “With Great Power Comes Great Responsibility”
3. Responsibility is in the form of Structure and Syntax
*Dependent on each personDemo Model.cm
A Division of The Cyest Corporation
Confidential – All rights reserved to The Cyest Corporation Pty. Ltd.14
Key Features of Charting
1. Different types of graphs in one area
2. Multiple sub-areas in one area
3. Customizable tooltips
4. Customizable colours
5. Checkboxes for graphs
6. Graph interaction
7. Striplines (Single and Multiple)
8. Many chart types that we’ve never even heard off!
A Division of The Cyest Corporation
Confidential – All rights reserved to The Cyest Corporation Pty. Ltd.15
Query Staging DisplayState the data source Manipulate the data View the data
How It All Works…
1. Designed in the following process flow:
A Division of The Cyest Corporation
Confidential – All rights reserved to The Cyest Corporation Pty. Ltd.16
Process Flow Specifics
Query Staging Display
• Uses standard Qerent Syntax
• Configurable with wirings
• Simulink style data manipulation
• C# syntax for more functionality
• Can choose between, Graphs Tables and Custom designs
• Graphs are fully customisable
A Division of The Cyest Corporation
A Division of The Cyest Corporation
Confidential – All rights reserved to The Cyest Corporation Pty. Ltd.17
Layout of Display
A Division of The Cyest Corporation
Display
Data View
Chart Layout Setup
Chart Configuration
Chart Preview
A Division of The Cyest Corporation
Confidential – All rights reserved to The Cyest Corporation Pty. Ltd.18
Building a Chart Structure
1. Chart structure is built in a hierarchical form i:e:
• Parent• Child 1• Child 2
• Children inherit Parent’s configuration
• Using Advanced Items as parents and children give full control but slower access time
• We can sometimes get away with using 1 Advanced Item to plot multiple chart items
A Division of The Cyest Corporation
Confidential – All rights reserved to The Cyest Corporation Pty. Ltd.
The Chart Configuration
Builder
Data Tables
Cascading Parameter Bags Pivot Chart
Visualizer
Chart
Area
Series
Defined by BA
Defined by Developer
A Division of The Cyest Corporation
Confidential – All rights reserved to The Cyest Corporation Pty. Ltd.20
Looking at One Advanced Item
• Can be collapsed
• Square: Set Value Manually / use a column value
• Circle: Reset to default Value
A Division of The Cyest Corporation
Confidential – All rights reserved to The Cyest Corporation Pty. Ltd.21
Collapsed Headings – Fields of interest
1. Area Chart Background Colour, Chart Name
2. Area – Axes – Primary Label interval, Min, Max, Rotation, Axis Name
3. Area – Axes – Primary – Labels Label Format, Colour, Font
4. Area – Axes – Primary – Striplines Name, Offset, Format, Stripline style
5. Area – Axes – Secondary Label interval, Min, Max, Rotation, Axis Name
6. Area – Axes – Secondary – Labels Label Format, Colour, Font
7. Area – Axes – Secondary – Striplines Name, Offset, Format, Stripline style
8. Area – Header
9. Area – Legend Checkboxes, Colour, Location
10. Input Source Data, Data2, Data3
11. PointColour, Opacity, Tooltip, Selected Value
12. Point - Co-ordinates X, Y (1 – 5)
13. Series Chart Type, Name, Stroke Thickness
14. Series – Labels Location, Text, Text Format
15. Series Extended Y-Axis Secondary Axis settings
A Division of The Cyest Corporation
Confidential – All rights reserved to The Cyest Corporation Pty. Ltd.22
Some Useful Tips
1. Drag column headings to items
2. Colours, Names, Opacity Levels etc. can be configured in Column Builders or Scripts and used for the display
3. Chart type can also be configured in Column Builders and Script
4. Charts can be dynamic as long as column names stay fixed
5. Selected Value makes a chart interactive
6. Getting away with 1 Advanced Item (AI) can sometimes be easier than you think!
7. When a Pivot Transformer is used to pivot multiple data points, usually more than 1 AI is needed.
A Division of The Cyest Corporation
Confidential – All rights reserved to The Cyest Corporation Pty. Ltd.23
Some Examples
1. Multiple AI – hierarchical layout
2. Striplines (Horizontal)
3. Striplines (Vertical)
4. Single AI and Selected Value Interactive Chart
5. Area Chart, Single AI with multiple points and Multiple Data Inputs, Striplines (76 34 P2)
A Division of The Cyest Corporation
Confidential – All rights reserved to The Cyest Corporation Pty. Ltd.24
Some extra tips that will hopefully help you
1. Units of measure formatting: Use standard C# string format e.g.:1. Percentage: P0, P2 (no decimals, 2 decimals etc.)
2. Currency: C0, C2
3. Standard unit format: #,0.00
4. Standard unit format with custom UOM: #,0.00 kg | $ #,0.00 | P #,0
1. Item label: Format
2. Column references: $ColumnName$. Use of other words can be used for Names:1. $Booked$ $Attribute$ varies from $Planned$ by R$Value$
3. Colours can be manually configured using hexadecimal code: #FF000000 (Black)1. http://www.javascripter.net/faq/rgbtohex.htm
2. Using this in column builders/script can allow you to create a “Colour” column, and reference it directly in the Colour config by selecting the square (manual edit mode) and referencing the column name $Colour$
A Division of The Cyest Corporation
Confidential – All rights reserved to The Cyest Corporation Pty. Ltd.25
Remember
1. Smart use of column builders / script can enable us to manipulate the look and feel of a chart e.g.:1. Create a column that plots a different type of chart based on the amount of data points
2. Change font type based on value
3. Change colour of specific lines/columns based on criteria
4. Change tooltips based on cell value
5. Change shapes of line chart values based on criteria (Control Chart)
2. Combining of multiple chart types in a single chart area can add value to the client
3. Multiple y-axes can add value: e.g.: Vehicle Power-Torque curve
4. Research the types of graphs available in AF. They might be helpful in representing data in a simple way. We are very used to line/bar/column charts
A Division of The Cyest Corporation
Confidential – All rights reserved to The Cyest Corporation Pty. Ltd.26
Workshop
1. Capacity Analysis
2. Waterfall Chart
Objective
1. Ability to write back to the model in the context of Data Adapters in AF
2. Use the new model building paradigm
The current Data Adapter config is a very SIMPLE AF pipeline
= Query the Data Source
Perform Lookups
Write to the Model
Why in the Model Building Paradigm
1. Most of the data adapter config screen is MAPPING data fields to Modeller Concept fields.1. This mapping is common across
most AF problems (charts etc)
=
The Basic Model Building Mechanism
Model Builder
Data Table
Cascading Parameter Bag
OO Model
The Chart OO Model
Model Builder
Data Table
Cascading Parameter Bag
OO Model
Chart
Area
Series
The OO Model Domain specifies each concept in that domain and potentially couples them together.
The Nested Content Mechanism
Model Builder
Data Set
Nested Bags
OO Model Item
Outer OO Model
Nested OO Model
There is total encapsulation between the outer and inner object models. The outer one never knows what the inner one actually is. It just needs to know how to encapsulate it.
…
Examples
AF Layers
WHO Defines WHAT?
Model Builder
Data Table
Cascading Parameter Bag
OO Model
BA
Dev
Intermediary Interface = Parameter Contract
Model Builder
Data Table
Cascading Parameter Bag
OO Model
BA Defined
Dev Defined
IntermediaryRuntime
Compiled Code
You might have many ways to specify the information necessary for the model builder to be able to build the model.Each intermediary interface captures this way.
The View Model Building Mechanism
Model Builder
Data Table
Cascading Parameter Bag
OO Model
View ModelBuilder
View Model