Marimekko chart is a bar chart where 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 height.
Questions tagged [marimekko-chart]
11 questions
4
votes
1 answer
stacked geom_bar(): keep equal gaps between bars with variable widths
My sample data and plot:
library(data.table)
library(ggplot2)
dt2 <- fread('
risk group counts
low A 178
High A 1
low B 4
High B 100
low C 45
High C 83
low D 50
High D 2
')
# ggplot(dt2,…

Vasily A
- 8,256
- 10
- 42
- 76
3
votes
1 answer
D3.js How do I rotate a Marimekko chart
I have a Marimekko chart where the bars are aligned vertically (with a limited number of bars).
However, the eventual chart will have so many bars that it would be better with a horizontal layout which would support a larger number of values.
I've…

PatriciaW
- 893
- 1
- 12
- 30
2
votes
1 answer
R Highcharter mosaïc / marimekko chart
i tried to create a marimekko chart in R Highcharter, following this example :
http://jsfiddle.net/highcharts/h2np93k1/
I cannot seem to get the sortIndex of the treemap to work, my code is as follows:
parentid <- c(1, 2, 3, 4, 5, 1, 2, 3, 4,…

RShiny
- 21
- 1
2
votes
1 answer
D3.js how can I generate a variable width stacked chart (Marimekko chart)
I would like to generate a stacked bar chart (similar to http://bl.ocks.org/mbostock/1134768) where the total height of each bar is the same and the width varies. This kind of chart is also known as Marimekko chart.
So far my attempts to make the…

PatriciaW
- 893
- 1
- 12
- 30
1
vote
1 answer
Using Python to draw a mosaic | marimekko chart with custom colors and labels
I would like to use Python to draw a mosaic | marimekko chart with custom colors and labels.
The following code works fine
import plotly.graph_objects as go
year = ['2019', '2020', '2021', '2022']
fig1 = go. Figure()…

TomS
- 216
- 1
- 7
1
vote
1 answer
d3.js how do I add text to Marimekko chart
I am trying to add text to a working Marimekko chart. I understand that adding text to a rect requires that the rect and text need to be in a group. But the code I used as a base already uses a group. That is my main question, but I'd also like to…

PatriciaW
- 893
- 1
- 12
- 30
0
votes
1 answer
Total value on the x axis using Marimekko widget using IBM Cognos
I am working on a dashboard in Cognos. One of the diagrams in which is a marimekko diagram, as shown below:
Presently, the widget offers percentage for the entrire diagram. I would, however, like to know how to get the x- axis values of each…

Ray
- 321
- 2
- 12
0
votes
1 answer
Trying to understanding code example for marimekko graph
I'm going through Mike Bostock's code for the marimekko graph, shown here:
https://bl.ocks.org/mbostock/1005090
I have a couple of questions about code segments that I don't understand:
var sum = segments.reduce(function(v, p) {
return (p.offset =…

Chris_engagingdata
- 53
- 5
0
votes
1 answer
Highcharts 'bindAxis' for one chart only
I'm trying to integrate a MariMekko / Market type of chart in my application. I found an interesting implementation here:
http://jsfiddle.net/h2np93k1/39/
This code constructs a treemap and adds axis to it. That is done by this…

Rob Audenaerde
- 19,195
- 10
- 76
- 121
0
votes
1 answer
Marimekko chart cell titles not updating
I'm making a visualization for the titanic data set https://www.kaggle.com/c/titanic/data, and after some search i found that the marimekko chart is the best visualization for this data set.
I looked at http://www.jasondavies.com/mekko/ and began to…

hshihab
- 416
- 5
- 16
0
votes
0 answers
Restacking cumulative columns in Highcharts marimekko charts
I've got a basic variable width column chart (aka Marimekko) set up using Highcharts but am having trouble getting it to restack the columns properly to eliminate the data gap once a series has been removed or hidden.
JSFIDDLE DEMO <-- I've set up a…

akaimo
- 146
- 2
- 12