Peltier Technical Services, Inc.
 

Excel Chart Add-Ins | Training | Custom Solutions | Charts and Tutorials | Peltier Tech Blog


Peltier Tech
Chart Utilities

Peltier Tech Waterfall Chart Utility
Peltier Tech Cluster-Stack Chart Utility
Peltier Tech Box and Whisker Chart Utility
Peltier Tech Marimekko Chart Utility
Peltier Tech Dot Plot Utility
Peltier Tech Cascade Chart Utility

 

PTS Marimekko Chart Utility Documentation.

To purchase the Professional Marimekko Chart Utility, visit PTS Marimekko Chart Utility.

Marimekko Chart

In Marimekko Charts, I described a protocol for constructing Marimekko charts in Excel. This protocol is rather complicated, so I have written a Marimekko Chart utility that allows the user to construct Marimekko charts directly from the data. The utility inserts a new worksheet, adds a table with the appropriate data arrangement and the necessary formulas, and then creates and formats a Marimekko stacked area chart from this table. The utility is designed to work in Excel versions 2000, 2002, 2003, and 2007. The utility has not been tested in any Macintosh version or in Excel 97, it may or may not work on these versions.

Contents
  1. Installation
  2. The Excel User Interface
  3. Dialog
  4. Data Requirements
  5. Program Output
  6. Accessing via VBA
  7. Contact

Installation

Start installation by closing Excel, then double click on the PTS_Marimekko_Pro.exe file from the zip file you've purchased. The Marimekko Chart utility is installed as an Excel add-in, and will be available the next time you start Excel.

The Excel User Interface

Excel 2000 through 2003 Interface
When installed, both versions of the add-in add a new menu, PTS Charts, to Excel's Worksheet and Chart Menu Bars, and this PTS Charts menu has a new item, Marimekko Chart, added to it. The add-in also adds a new toolbar, PTS Charts, and a Marimekko Chart icon is added to the new toolbar. This menu and toolbar are shown below:

Excel 2007 Interface
When installed, the professional utility adds a new custom ribbon tab, PTS Charts, to Excel's ribbon. The new tab has a group called Custom Charts, with a new item called Marimekko Chart. If you use other PTS charting utilities, they also appear on this custom tab. This new ribbon tab is shown below:

The Marimekko Chart Dialog

To use the utility, select a range of data to chart, then select the Marimekko Chart menu item. The program assumes that there are labels in the top row and in the leftmost column, and numerical values in the grid.



Suitable Data for a Marimekko Chart
 

The following dialog appears.



Marimekko Chart Dialog
 

If a range containing chartable data has been selected, this range is indicated in the range selection box at the top of the dialog. If the selected range consists of multiple discontiguous areas, if the selected range contains no data, or if the selection is not a range, this box is empty. If the selected range consists of a single cell, the utility identifies the range of data surrounding the active cell in the range selection box, like the Chart Wizard does. If the selection is larger than one row high and one column wide, the utility identifies only the selected range in the box.

Program Output

The utility inserts a new worksheet for its output. The selected data is copied to this worksheet in an appropriately staggered arrangement, and a chart is created that plots the data. The chart is a standard Excel chart; it can be copied and pasted, moved, resized, and otherwise formatted as any other Excel chart. Some changes, of course, will break the carefully laid out appearance of the chart, so the user should be ready to undo an operation or completely rebuild the chart.

When the data illustrated above is used to create a Marimekko chart using the Segments in Columns option, the resulting chart looks like this. Colors will vary depending on the palette of the parent workbook, and can be changed as in any other chart.

When the data illustrated above is used to create a Marimekko chart using the Segments in Rows option, the resulting chart looks like this.

Aside from the layout of the source data, this is a "normal" Excel chart. You can add relevant chart and axis titles, reduce the oversize margins around the plot area, resize the text and reposition the labels, and change the fill or border colors to suit.

Accessing the PTS Marimekko Chart Utility via VBA

The ability to call the PTS Marimekko Chart Utility from other VBA procedures has been incorporated in this version of the utility. Documentation is incomplete but will be expanded here at a later time. The following brief explanation should help experienced programmers get started.

The core of the PTS Marimekko Chart Utility is a procedure called PTS_MarimekkoChart, which can be called from other VBA procedures. The syntax of the PTS_MarimekkoChart function is:

        Function PTS_MarimekkoChart(ChartData As Range, _
                                    SegmentsByColumn As Boolean) _
                                    As Chart

ChartData is the range containing the data to chart, laid out in a grid with column labels in the first row of the range and row labels in the first column.

SegmentsByColumn describes the orientation of the data. Segments are plotted as columns in the chart, and the segment labels appear along the top edge of the chart. If the segment names are in the first row of the data, the segment data is in columns, and SegmentsByColumn is True.

To create a Marimekko chart programmatically, a calling procedure could select the data range, then run this line of code:

        PTS_MarimekkoChart Selection, True

To assign the chart to an object variable in order to manipulate it further, the code should be amended:

        Set chtMarimekko = PTS_MarimekkoChart(Selection, True)

where chtMarimekko has been declared as a variable of type Excel.Chart.

Contact Me

To purchase the Professional Marimekko Chart Utility, visit PTS Marimekko Chart Utility.

In the event of problems with this utility, use the following link to send me an email. While I may be unable to answer all email messages, I will certainly address any issues that arise. If you are reporting a problem, please describe the problem as clearly as possible, and if relevant include a copy of the data and chart.

I will also consider reasonable enhancements to the utility. I do not plan to make the utility compatible with Excel 97 or earlier, nor do I plan to extend its compatibility to Mac versions of Excel.

Contact Jon about the Marimekko Chart utility.

 

 

 

Peltier Tech Waterfall Chart Utility Peltier Tech Cluster-Stack Chart Utility Peltier Tech Box and Whisker Chart Utility Peltier Tech Marimekko Chart Utility Peltier Tech Dot Plot Utility Peltier Tech Cascade Chart Utility


Peltier Technical Services, Inc.

Excel Chart Add-Ins | Training | Custom Solutions | Charts and Tutorials | Peltier Tech Blog

Peltier Technical Services, Inc., Copyright © 2010. All rights reserved.
You may link to this article or portions of it on your site, but copying is prohibited without permission of Peltier Technical Services.

Microsoft Most Valuable Professional

Microsoft Most Valuable Professional

My MVP Profile