Date post: | 22-Nov-2014 |
Category: |
Documents |
Upload: | mekkographics |
View: | 1,246 times |
Download: | 5 times |
Automating Your Mekko Graphics Charts
March 12, 2013
2
Link to Excel is not established(sales dashboard, slide 2)
Copyright 2013 © Mekko Graphics. All rights reserved.
0
20
40
60
80
100
Week Ending:
Number of Support Requests
1/5/2013
25
1/12/2013
31
1/19/2013
56
1/26/2013
89
3
Link to Excel was established
Copyright 2013 © Mekko Graphics. All rights reserved.
0
20
40
60
80
100
Week Ending:
Number of Support Requests
1/5/2013
25
1/ 12/ 2013
31
1/ 19/ 2013
56
1/ 26/ 2013
89
2/2/2013
43
2/9/2013
42
2/ 16/ 2013
56
2/ 23/ 2013
34
3/2/2013
54
3/9/2013
76
3/ 16/ 2013
34
4
Link to Excel was established
Copyright 2013 © Mekko Graphics. All rights reserved.
0
100
200
300
400
500
1/5/2013
Large
MediumSmall294
1/12/2013
277
1/19/2013
279
1/26/2013
213
2/2/2013
310
2/9/2013
270
2/16/2013
368
2/23/2013
315
3/2/2013
371
3/9/2013
457
300
294 457 300277 279 213 310 270 368 315 371Total
Automating Your Mekko Graphics ChartsUsing the Mekko Graphics API
Darryl RobinsonAPI Solutions Manager
6
Topics
Copyright 2013 © Mekko Graphics. All rights reserved.
• Part 1– What the API is– How to obtain it– What its capabilities and benefits are– How the Mekko Graphics team can help you leverage
the API in your organization• Part 2– How to install it– How to plan and build an application using the API
• Q&A
7
The Mekko Graphics API
Copyright 2013 © Mekko Graphics. All rights reserved.
• A programming interface used to build applications that generate Mekko Graphics charts and PowerPoint presentations
• Can be called from applications written in a variety of programming languages
• Sample applications supplied in C# and Visual Basic
8
Obtaining the Mekko Graphics API
Copyright 2013 © Mekko Graphics. All rights reserved.
• Downloaded and installed separately from Mekko Graphics
• Available free of charge to our preferred customers
• Contact us to find out whether your organization qualifies
9
API Capabilities and Benefits
Copyright 2013 © Mekko Graphics. All rights reserved.
• Use the API to create interactive Mekko Graphics charts
• Use the API to create charts from Excel workbooks, databases, Web services, or BI platforms
• Resulting charts may be refined in PowerPoint if necessary
10
The API in Action
Copyright 2013 © Mekko Graphics. All rights reserved.
• Desktop application that generates a Market Map of Revenue by Region and Vertical
• Data sourced from a SQL Server database• API enables real-time interaction with chart:– View different years– Select different subsets of regions or verticals– Highlight underperforming regions– Save chart to PowerPoint presentation
11
Getting Started
Copyright 2013 © Mekko Graphics. All rights reserved.
• Use internal technical resources to develop your application
• Have our consultants develop your application• Have your team perform the development
with advice from our consultants
12
Part 2
Copyright 2013 © Mekko Graphics. All rights reserved.
• How to install the API• How to plan and build an application• Q&A
13
Installing the Mekko Graphics API
Copyright 2013 © Mekko Graphics. All rights reserved.
• Double-clicking the installation file launches a standard setup program that installs the API
• Installation directory includes:– Libraries (DLLs) to be referenced by your projects– Sample applications with source code– Help files, which are also available online
• Sample applications, help, and source code are available from your Start menu
14
Planning Your Application
Copyright 2013 © Mekko Graphics. All rights reserved.
• Select the chart(s) to automate• Use our Chart Decomposition Checklist to
describe the chart(s) in detail• Identify the data source(s) for the chart(s) and
determine whether transformation is required• Describe any additional functionality
15
Planning: Chart Selection
Copyright 2013 © Mekko Graphics. All rights reserved.
• Use the API to automate charts based on:– Programmatically available data (e.g. a database
or Web service)– Data with rule-based, repeatable transformation
logic
16
Planning: Chart Selection
Copyright 2013 © Mekko Graphics. All rights reserved.
• A good automation candidate:
– Based on transactional data that is probably already summarized for management reporting
– Transforming the raw data is straight forward
0
20
40
60
80
100%
2012 Revenue by Region and Vertical
USA & Canada
Financial Services 40%
Communications 12%
Retail 14%
Services 16%
Other 19%
$706M
Europe
Financial Services 44%
Communications 10%
Retail 15%
Services 13%
Other 19%
$616M
Asia Pacific
Financial Services25%
Communications19%
Retail 15%
Services 8%
Other 33%
$480M
Rest ofWorld
FinancialServices
25%
Retail18%
Services 7%
Other24%
$237M Total = $2,039M
17
Planning: Chart Decomposition
Copyright 2013 © Mekko Graphics. All rights reserved.
• Use our chart decomposition checklist to describe each selected chart:
• Use the checklist to capture the rule, not the exceptions
18
Planning: Data Decomposition
Copyright 2013 © Mekko Graphics. All rights reserved.
• Use the Data Editor to determine the structure of your chart’s data
19
Planning: Data Decomposition
Copyright 2013 © Mekko Graphics. All rights reserved.
• First column stores series names• Subsequent columns store chart data• Derive subsequent column names from bar
labels
20
Planning: Data Decomposition
Copyright 2013 © Mekko Graphics. All rights reserved.
• Identify the source of the data
21
Planning: Data Decomposition
Copyright 2013 © Mekko Graphics. All rights reserved.
• Determine how to massage the source data
22
Planning: Additional Functionality
Copyright 2013 © Mekko Graphics. All rights reserved.
• Should your application allow ad-hoc analysis, and, if so, along what dimension(s)?
• Should your application allow chart customization (e.g. changing series colors)?
23
Building Your Application
Copyright 2013 © Mekko Graphics. All rights reserved.
• API application design pattern– Retrieve and massage data– Link massaged data to the chart– Format chart using properties from your Chart
Decomposition Checklists– Add the chart to a PowerPoint presentation– Implement additional interactivity (e.g. ability to
change years, industries, or regions)
24
Application Walkthrough
Copyright 2013 © Mekko Graphics. All rights reserved.
• The user interface
25
Application Walkthrough
Copyright 2013 © Mekko Graphics. All rights reserved.
• The source code
26
Application Walkthrough
Copyright 2013 © Mekko Graphics. All rights reserved.
• BindChartData method– Retrieves raw data– Displays raw data in a read-only grid– Creates a DataTable to store massaged data– Massages raw data and adds it to the DataTable
and a read-only grid– Links the massaged data to the chart by setting
_oChart.DataSource
27
Application Walkthrough
Copyright 2013 © Mekko Graphics. All rights reserved.
• FormatChart method controls the chart’s appearance– Sets chart-wide properties (e.g. whether legend is
displayed, or unplaced labels are “smart placed”)– Formats bar totals and grand total– Formats axes, including labels and titles– Formats segment values and series labels– Formats series colors and positioning– Adjusts margins and “smart places” labels
28
Application Walkthrough
Copyright 2013 © Mekko Graphics. All rights reserved.
• CreateDeck method adds chart to PowerPoint presentation– Creates a new presentation, or opens an existing
presentation– Adds slide containing current chart to the
presentation– Saves presentation– Quits PowerPoint
29
Q&A / Resources
Copyright 2013 © Mekko Graphics. All rights reserved.
• Contact Darryl Robinson at 781-250-2007 or [email protected] if you’re interested in obtaining the API or learning more.
• More information about the API can be found at http://www.mekkographics.com/product/mekko-graphics-api/
• This presentation will be available via slideshare at http://www.slideshare.net
• Webinar audio/video available on the Mekko Graphics YouTube channel at http://www.youtube.com/user/MekkoGraphics.