Example: charts-editorial/barchart_with_labels

Output File:

Source File:

(set height 280px)
(set width 960px)

(plot
    axes (bottom)
    limit-x (0 13)
    limit-y (0 23)
    axis-x-label-placement (linear-interval 1 1 12)
    axis-x-label-placement (linear-interval 1 1 12)
    axis-x-label-format (custom "Jan" "Feb" "Mar" "Apr" "May" "Jun" "Jul" "Aug" "Sep" "Oct" "Nov" "Dec")
    bars (
      data-x (csv "tests/testdata/city_temperatures_london.csv" month)
      data-y (csv "tests/testdata/city_temperatures_london.csv" temperature)
      labels (csv "tests/testdata/city_temperatures_london.csv" temperature_str)
      bar-width (2em)
      color 2)
    legend-overlay (
      position (top left)
      border none
      item (label "London - Average Monthly Temperature" color 2)))

Run this example:

$ clip --in examples/charts-editorial/barchart_with_labels.clp --out output.svg
Edit this page on GitHub