A professional theme for publication quality figures.

License: GPL-3.0

Language: Haskell


A basic theme for hvega.

Usage, from the hvega example:

{-# LANGUAGE OverloadedStrings #-}

import Graphics.Vega.VegaLite

vl1 = toVegaLite [theme defaultConfiguration [], description desc, background "white", dat [], mark Bar barOpts, enc []] where
    desc = "A very exciting bar chart"

    dat = dataFromRows [Parse [("start", FoDate "%Y-%m-%d")]]
          . dataRow [("start", Str "2011-03-25"), ("count", Number 23)]
          . dataRow [("start", Str "2011-04-02"), ("count", Number 45)]
          . dataRow [("start", Str "2011-04-12"), ("count", Number 3)]

    barOpts = [MOpacity 0.4, MColor "teal"]

    enc = encoding
          . position X [PName "start", PmType Temporal, PAxis [AxTitle "Inception date"]]
          . position Y [PName "count", PmType Quantitative]

Project Statistics

Sourcerank 3
Repository Size 14.6 KB
Stars 0
Forks 0
Watchers 1
Open issues 0
Dependencies 3
Contributors 1
Tags 0
Last updated
Last pushed

Top Contributors See all

Gregory Schwartz

Packages Referencing this Repo

A professional theme for publication quality figures.
Latest release - Published

Something wrong with this page? Make a suggestion

Last synced: 2019-08-27 22:17:00 UTC

Login to resync this repository