Vertical Bar Mekko Chart


This article explains how to create a Vertical Bar Mekko 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 Bar Mekko Chart article to learn about other available settings.

Quick Start

To build a Vertical Bar Mekko 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 the X- and Y-axes positions.
    // create a chart
    chart = anychart.barmekko();
    // swap axes
    // add series
    var series = chart.mekko(seriesData_1);