cabal-version: 3.0 name: chart-svg version: 0.6.0.0 license: BSD-3-Clause license-file: LICENSE copyright: Tony Day (c) 2017 category: graphics author: Tony Day maintainer: tonyday567@gmail.com homepage: https://github.com/tonyday567/chart-svg#readme bug-reports: https://github.com/tonyday567/chart-svg/issues synopsis: Charting library targetting SVGs. description: This package provides a charting library targetting SVG as the rendered output. == Usage >>> :set -XOverloadedLabels >>> :set -XOverloadedStrings >>> import Chart >>> import Optics.Core >>> let lines = [[Point 0.0 1.0, Point 1.0 1.0, Point 2.0 5.0],[Point 0.0 0.0, Point 2.8 3.0],[Point 0.5 4.0, Point 0.5 0]] >>> let styles = (\c -> defaultLineStyle & set #color (palette c) & set #size 0.015) <$> [0..2] >>> let cs = zipWith (\s x -> LineChart s [x]) styles lines >>> let lineExample = mempty & set #chartTree (named "line" cs) & set #hudOptions defaultHudOptions :: ChartOptions >>> writeChartOptions "other/usage.svg" lineExample ![usage example](docs/other/usage.svg) See "Chart" for concept design notes, and "Chart.Examples" for practical usage. build-type: Simple tested-with: GHC == 8.10.7 || ==9.2.8 || ==9.4.5 || ==9.6.2 || ==9.8.1 extra-doc-files: ChangeLog.md other/*.svg readme.org source-repository head type: git location: https://github.com/tonyday567/chart-svg common ghc-options-stanza ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wpartial-fields -Wredundant-constraints common ghc2021-stanza if impl ( ghc >= 9.2 ) default-language: GHC2021 if impl ( ghc < 9.2 ) default-language: Haskell2010 default-extensions: BangPatterns BinaryLiterals ConstrainedClassMethods ConstraintKinds DeriveDataTypeable DeriveFoldable DeriveFunctor DeriveGeneric DeriveLift DeriveTraversable DoAndIfThenElse EmptyCase EmptyDataDecls EmptyDataDeriving ExistentialQuantification ExplicitForAll FlexibleContexts FlexibleInstances ForeignFunctionInterface GADTSyntax GeneralisedNewtypeDeriving HexFloatLiterals ImplicitPrelude InstanceSigs KindSignatures MonomorphismRestriction MultiParamTypeClasses NamedFieldPuns NamedWildCards NumericUnderscores PatternGuards PolyKinds PostfixOperators RankNTypes RelaxedPolyRec ScopedTypeVariables StandaloneDeriving StarIsType TraditionalRecordSyntax TupleSections TypeApplications TypeOperators TypeSynonymInstances if impl ( ghc < 9.2 ) && impl ( ghc >= 8.10 ) default-extensions: ImportQualifiedPost StandaloneKindSignatures library import: ghc-options-stanza import: ghc2021-stanza hs-source-dirs: src build-depends: , Color >=0.3.2 && <0.4 , adjunctions >=4.0 && <5 , attoparsec >=0.13.2 && <0.15 , base >=4.7 && <5 , bytestring >=0.11.3 && <0.13 , containers >=0.6 && <0.8 , cubicbezier >=0.6 && <0.7 , flatparse >=0.5 && <0.6 , foldl >=1.4 && <1.5 , formatn >=0.3 && <0.4 , markup-parse >=0.1 && <0.2 , mtl >=2.2.2 && <2.4 , numhask >=0.10 && <0.12 , numhask-array >=0.10 && <0.12 , numhask-space >=0.10 && <0.12 , optics-core >=0.4 && <0.5 , random >=1.2 && <1.3 , string-interpolate >=0.3 && <0.5 , text >=1.2 && <2.2 , time >=1.9 && <1.13 exposed-modules: Chart Chart.Bar Chart.Compound Chart.Data Chart.Examples Chart.Hud Chart.Markup Chart.Primitive Chart.Style Chart.Surface Data.Colour Data.Path Data.Path.Parser