View on

Example: charts-basic/linechart_timeseries

Output File:

Source File:

(set height 240px)
(set width 900px)

(chart/linechart
    data-x (csv "tests/testdata/measurement2.csv" time)
    data-y (csv "tests/testdata/measurement2.csv" value3)
    limit-y (-5 5)
    axes (bottom left)
    axis-x-label-format (datetime "%H:%M:%S")
    axis-x-label-placement (linear-interval 900 900 7200)
    grid (color #fff)
    background #eee
    border none
    legend-overlay (
        position (top right)
        border none
        margin .4em
        item (label "Random Data")))

Run this example:

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