29
Automating Your Mekko Graphics Charts March 12, 2013

Automating your mekko graphics charts

Embed Size (px)

DESCRIPTION

Many of our customers produce the same presentations every week or month. While the data changes, the charts stay the same. The presentations could be weekly sales dashboards or monthly departmental status reports. If the reporting data is in Microsoft Excel, you can use the Mekko Graphics “Link to Excel” feature to speed up the production of these reports. Alternatively, you can use our Application Programming Interface (API) to move data directly from your data warehouse into a Mekko Graphics presentation. Sometimes the charts created by your reporting system or analytics tools aren't polished enough to share with senior management or key customers. Using the Mekko Graphics API, your enterprise data can flow seamlessly into a high quality and visually appealing PowerPoint presentation.

Citation preview

Page 1: Automating your mekko graphics charts

Automating Your Mekko Graphics Charts

March 12, 2013

Page 2: Automating your mekko graphics charts

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

Page 3: Automating your mekko graphics charts

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

Page 4: Automating your mekko graphics charts

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

Page 5: Automating your mekko graphics charts

Automating Your Mekko Graphics ChartsUsing the Mekko Graphics API

Darryl RobinsonAPI Solutions Manager

Page 6: Automating your mekko graphics charts

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

Page 7: Automating your mekko graphics charts

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

Page 8: Automating your mekko graphics charts

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

Page 9: Automating your mekko graphics charts

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

Page 10: Automating your mekko graphics charts

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

Page 11: Automating your mekko graphics charts

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

Page 12: Automating your mekko graphics charts

12

Part 2

Copyright 2013 © Mekko Graphics. All rights reserved.

• How to install the API• How to plan and build an application• Q&A

Page 13: Automating your mekko graphics charts

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

Page 14: Automating your mekko graphics charts

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

Page 15: Automating your mekko graphics charts

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

Page 16: Automating your mekko graphics charts

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

Page 17: Automating your mekko graphics charts

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

Page 18: Automating your mekko graphics charts

18

Planning: Data Decomposition

Copyright 2013 © Mekko Graphics. All rights reserved.

• Use the Data Editor to determine the structure of your chart’s data

Page 19: Automating your mekko graphics charts

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

Page 20: Automating your mekko graphics charts

20

Planning: Data Decomposition

Copyright 2013 © Mekko Graphics. All rights reserved.

• Identify the source of the data

Page 21: Automating your mekko graphics charts

21

Planning: Data Decomposition

Copyright 2013 © Mekko Graphics. All rights reserved.

• Determine how to massage the source data

Page 22: Automating your mekko graphics charts

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)?

Page 23: Automating your mekko graphics charts

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)

Page 24: Automating your mekko graphics charts

24

Application Walkthrough

Copyright 2013 © Mekko Graphics. All rights reserved.

• The user interface

Page 25: Automating your mekko graphics charts

25

Application Walkthrough

Copyright 2013 © Mekko Graphics. All rights reserved.

• The source code

Page 26: Automating your mekko graphics charts

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

Page 27: Automating your mekko graphics charts

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

Page 28: Automating your mekko graphics charts

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

Page 29: Automating your mekko graphics charts

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.