Vertical BarMekko Chart

Overview

This article explains how to create a Vertical BarMekko chart in AnyChart.

To learn more about vertical charts in general and how to customize them, see Vertical Charts (Overview). You can also read the BarMekko Chart article to learn about other available settings.

Quick Start

To build a Vertical BarMekko chart, use the anychart.barmekko() chart constructor. Then you need to make some adjustments to make it vertical:

  • set vertical orientation as default for mekko series,
  • swap X and Y axes positions.
    // create a chart
    chart = anychart.barmekko();
    
    // swap axes
    chart.xAxis().orientation("left");
    chart.yAxis().orientation("bottom");    
    
    // add series
    var series = chart.mekko(seriesData_1);
    series.isVertical(true);
    

Playground

You are looking at an outdated v7 version of this document. Switch to the v8 version to see the up to date information.