Example: charts-editorial/barchart_horizontal
Output File:
Source File:
size: 2048px 800px;
dpi: 240;
limit-x: 0 24;
scale-y: categorical(csv("testdata/gdp_per_capita_2010.csv" country));
axes {
position: left;
}
bars {
data-x: csv("testdata/gdp_per_capita_2010.csv" gdp);
data-y: csv("testdata/gdp_per_capita_2010.csv" country);
labels: csv("testdata/gdp_per_capita_2010.csv" gdp_label);
direction: horizontal;
width: 1.4em;
color: #4c7bb0;
}
Run this example:
$ clip --export output.svg charts-editorial/barchart_horizontal.clp