View on

Example: charts-basic/custom_font

Output File:

Source File:

(set dpi 384)
(set width 3600px)
(set height 900px)

(set font "Comic Sans MS")

(chart/linechart
    data-x (csv "tests/testdata/measurement.csv" time)
    data-y (csv "tests/testdata/measurement.csv" value2)
    limit-y (0 120)
    axes (bottom left)
    axis-y-label-format (fixed 2)
    axis-x-label-format (datetime "%H:%M:%S")
    axis-y-label-placement (linear 20)
    grid (color #fff)
    background #eee
    border none
    legend-overlay (
        position (top right)
        border none
        margin 0.5em
        item-flow on
        item (
            label "A very serious measurement")))

Run this example:

$ fviz --in examples/charts-basic/custom_font.fvz --out output.svg
Edit this page on GitHub