Marimekko Charts
Overview
Marimekko is a Finnish home furnishings, textiles and fashion company. It made important contributions to fashion in the 1960s. It is particularly noted for its brightly colored printed fabrics and simple styles, used both in women's garments and in home furnishings. Marimekko designers created hundreds of distinctive patterns and helped to make Marimekko a household name across the world.
The Marimekko name has been adopted within business and the management consultancy industry to refer to a specific type of bar chart known as a variable-width chart or Mosaic plot in which all the bars are of equal height, there are no spaces between the bars, and the bars are in turn each divided into segments of different width. The design of the mosaic plot resembles a Marimekko print. The chart's design encodes two variables (such as percentage of sales and market share).
API | |
---|---|
Class | anychart.core.mekko.series.Mekko |
DATA | |
Data Fields | x, value |
Multiple Series | YES |
OPTIONS | |
Stacked | YES |
Vertical | YES |
3D | N/A |
Error Bars | N/A |
SUPPORTED CHART PLOTS | |
Polar | N/A |
Radar | N/A |
Scatter | N/A |
Stock | N/A |
RELATED TYPES | |
BarMekko | |
Mosaic Chart | |
Column Chart | |
Bar Chart | |
Stacked Charts | |
SEE ALSO | |
Chartopedia: Marimekko Mekko Chart | |
Chartopedia: Marimekko BarMekko Chart | |
Chartopedia: Marimekko Mosaic Chart | |
General Settings |
Quick Start
Marimekko is built on top of column chart with some specific settings, in AnyChart, we've broken down Marimekko charts into 3 specific cases which are created by the different constructors.
Mekko
A Mekko chart with %-axis (often called marimekko chart or 100% cost curve) is a two-dimensional 100% chart. As in the 100% chart, the value axis is based on percentages and column heights are shown relative to 100%. In the regular 100% chart, since the columns are scaled to relative heights, there is no visual representation of absolute column totals.
This type of marimekko chart is created with mekko() constructor:
chart = anychart.mekko();
See the basic sample and read more in later in this article.
BarMekko
A Mekko chart with units (sometimes also called submarine chart or olympic chart) is a two-dimensional stacked chart. As in the regular stacked chart, the value axis and the datasheet of this chart are based on absolute values.
This type of marimekko chart is created with barmekko() constructor:
chart = anychart.barmekko();
See the basic sample and read more in Barmekko Chart article.
Mosaic
Mosaic chart is pretty much the same as the basic Mekko chart but with one important difference: Y scale is ordinal and contains series names instead of numbers.
This type of marimekko chart is created with mosaic() constructor:
chart = anychart.mosaic();
See the basic sample and read more in Mosaic Chart article.
General Settings
In AnyChart there are many settings that are configured in the same way for all chart types, including the Mekko chart (for example, legend and interactivity settings).
Read the overview of general settings: General Settings.
Special Settings
Stacked Mode
When Mekko chart is created both its scales are put into stacked mode: Y scale to percent stacked mode and X scale to value stacking mode.
Changing Y scale to value stacked mode but consider using Barmekko Chart in such cases.
Changing X scale will convert Mekko chart into usual percent stacked column chart.
Points padding
Points padding is a special setting in Mekko charts, it is controlled with pointsPadding() method and sets the distance between elements (tiles), it serves only aesthetic purpose and it is set to different default values in Mekko, BarMekko and Mosaic constructors.
Appearance
Here is a full list of methods used to configure visual settings that are available for the Mekko series:
- color(), fill(), hatchFill(), stroke() set the color, fill, hatch fill, and stroke
- hoverFill(), hoverHatchFill(), hoverStroke() configure the visual settings on hover
- selectFill(), selectHatchFill(), selectStroke() configure the visual settings on select
You can learn more from the Appearance Settings section.
In the sample below, there are two mekko series with some of the appearance settings configured:
// create the first series
var series1 = chart.mekko(seriesData_1);
// configure the visual settings of the first series
series1.fill("#00cc99", 0.3);
series1.hoverFill("#00cc99", 0.3);
series1.selectFill("#00cc99", 0.5);
series1.hoverStroke("#00cc99", 2, "10 5", "round");
series1.selectStroke("#00cc99", 4, "10 5", "round");
// create the second series
var series2 = chart.mekko(seriesData_2);
// configure the visual settings of the second series
series2.fill("#0066cc", 0.3);
series2.hoverFill("#0066cc", 0.3);
series2.selectFill("#0066cc", 0.5);
series2.hatchFill("zigzag", "#808080", 1, 15);
series2.hoverStroke("#0066cc", 2);
series2.selectStroke("#0066cc", 4);
Labels
Labels are text or image elements that can be placed anywhere on any chart (you can enable them on a whole series or in a single point). For text labels, font settings and text formatters are available.
Tooltips
A Tooltip is a text box displayed when a point on a chart is hovered. There is a number of visual and other settings available: for example, you can edit the text by using font settings and text formatters, change the style of background, adjust the position of a tooltip, and so on.
Vertical Marimekko Chart
Most types of series in AnyChart can be drawn both in horizontal and vertical orientation: Vertical Charts (Overview).
Here is the information about creating Vertical Mekko Chart: