HORIZON HASKELLDocslts/ghc-9.14.x7a6c33e2026-10-12Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 7a6c33e · 2026-10-12

Modulegranite-0.7.4.0GHC2021

Granite.Chart

Convenience builders that construct a Chart from the same kinds of arguments accepted by the legacy chart functions in Granite. Use these when you want the declarative IR while still keeping ergonomic construction:

import Granite.Chart
import qualified Data.Text.IO as T
import Granite.Render.Pipeline

main = do
  let ch = scatterChart
              [(A, [(0,0),(1,1),(2,4)])
              ,(B, [(0,1),(1,3),(2,6)])
              ] (Just "Random points")
  T.putStrLn (renderChartTerminal ch)
Synopsis