chart-unit 0.4.0 → 0.4.1
raw patch · 4 files changed
+49/−18 lines, 4 filesdep ~numhaskPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: numhask
API changes (from Hackage documentation)
- Chart.Types: arrowColor :: forall a_am4s. Lens' (ArrowConfig a_am4s) Color
+ Chart.Types: arrowColor :: forall a_akPb. Lens' (ArrowConfig a_akPb) Color
- Chart.Types: arrowHeadSize :: forall a_am4s. Lens' (ArrowConfig a_am4s) a_am4s
+ Chart.Types: arrowHeadSize :: forall a_akPb. Lens' (ArrowConfig a_akPb) a_akPb
- Chart.Types: arrowMaxHeadSize :: forall a_am4s. Lens' (ArrowConfig a_am4s) a_am4s
+ Chart.Types: arrowMaxHeadSize :: forall a_akPb. Lens' (ArrowConfig a_akPb) a_akPb
- Chart.Types: arrowMaxStaffLength :: forall a_am4s. Lens' (ArrowConfig a_am4s) a_am4s
+ Chart.Types: arrowMaxStaffLength :: forall a_akPb. Lens' (ArrowConfig a_akPb) a_akPb
- Chart.Types: arrowMaxStaffWidth :: forall a_am4s. Lens' (ArrowConfig a_am4s) a_am4s
+ Chart.Types: arrowMaxStaffWidth :: forall a_akPb. Lens' (ArrowConfig a_akPb) a_akPb
- Chart.Types: arrowMinHeadSize :: forall a_am4s. Lens' (ArrowConfig a_am4s) a_am4s
+ Chart.Types: arrowMinHeadSize :: forall a_akPb. Lens' (ArrowConfig a_akPb) a_akPb
- Chart.Types: arrowMinStaffLength :: forall a_am4s. Lens' (ArrowConfig a_am4s) a_am4s
+ Chart.Types: arrowMinStaffLength :: forall a_akPb. Lens' (ArrowConfig a_akPb) a_akPb
- Chart.Types: arrowMinStaffWidth :: forall a_am4s. Lens' (ArrowConfig a_am4s) a_am4s
+ Chart.Types: arrowMinStaffWidth :: forall a_akPb. Lens' (ArrowConfig a_akPb) a_akPb
- Chart.Types: arrowStaffLength :: forall a_am4s. Lens' (ArrowConfig a_am4s) a_am4s
+ Chart.Types: arrowStaffLength :: forall a_akPb. Lens' (ArrowConfig a_akPb) a_akPb
- Chart.Types: arrowStaffWidth :: forall a_am4s. Lens' (ArrowConfig a_am4s) a_am4s
+ Chart.Types: arrowStaffWidth :: forall a_akPb. Lens' (ArrowConfig a_akPb) a_akPb
- Chart.Types: qChart :: forall a_ahGw b_ahGx. (Renderable (Text Double) a_ahGw, Renderable (Path V2 Double) a_ahGw) => Getter (QChart a_ahGw b_ahGx) (Aspect -> b_ahGx -> QDiagram a_ahGw V2 Double Any)
+ Chart.Types: qChart :: forall a_agrf b_agrg. (Renderable (Text Double) a_agrf, Renderable (Path V2 Double) a_agrf) => Getter (QChart a_agrf b_agrg) (Aspect -> b_agrg -> QDiagram a_agrf V2 Double Any)
- Chart.Types: qData :: forall a_ahGw b_ahGx. Lens' (QChart a_ahGw b_ahGx) b_ahGx
+ Chart.Types: qData :: forall a_agrf b_agrg. Lens' (QChart a_agrf b_agrg) b_agrg
- Chart.Types: qXY :: forall a_ahGw b_ahGx. Lens' (QChart a_ahGw b_ahGx) (Rect Double)
+ Chart.Types: qXY :: forall a_agrf b_agrg. Lens' (QChart a_agrf b_agrg) (Rect Double)
Files
- chart-unit.cabal +3/−5
- index.html +4/−3
- readme.md +40/−5
- stack.yaml +2/−5
chart-unit.cabal view
@@ -1,7 +1,5 @@-name:- chart-unit-version:- 0.4.0+name: chart-unit+version: 0.4.1 synopsis: Native haskell charts. description:@@ -55,7 +53,7 @@ formatting, lens, linear,- numhask >= 0.0.4 && < 1,+ numhask >= 0.0.5 && < 1, numhask-range >= 0.0.3 && < 1, text default-language:
index.html view
@@ -2,8 +2,9 @@ <script type="text/javascript" async src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML"> </script>-<h1 id="chart-unit-build-status"><a href="https://tonyday567.github.io/chart-unit">chart-unit</a> <a href="https://travis-ci.org/tonyday567/chart-unit"><img src="https://travis-ci.org/tonyday567/chart-unit.png" alt="Build Status" /></a></h1>-<p><a href="https://tonyday567.github.com/chart-unit">repo</a></p>+<h1 id="chart-unit"><a href="https://tonyday567.github.io/chart-unit">chart-unit</a></h1>+<p><a href="https://travis-ci.org/tonyday567/chart-unit"><img src="https://travis-ci.org/tonyday567/chart-unit.svg" alt="Build Status" /></a> <a href="https://hackage.haskell.org/package/chart-unit"><img src="https://img.shields.io/hackage/v/chart-unit.svg" alt="Hackage" /></a> <a href="http://stackage.org/lts/package/chart-unit"><img src="https://www.stackage.org/package/chart-unit/badge/lts" alt="lts" /></a> <a href="http://stackage.org/nightly/package/chart-unit"><img src="https://www.stackage.org/package/chart-unit/badge/nightly" alt="nightly" /></a></p>+<p><a href="https://github.com/tonyday567/chart-unit">repo</a></p> <p><code>chart-unit</code> is an experimental haskell chart library.</p> <p>scratchpad</p> <p><img style="border:5px solid grey" src="other/scratchpad.svg"></p>@@ -155,4 +156,4 @@ scratch <span class="fu">=</span> fileSvg <span class="st">"other/scratchpad.svg"</span> (<span class="dv">600</span>,<span class="dv">400</span>)</code></pre></div> <p>I tend to work in ghci a lot, using the above <code>scratch</code> to try code out, mashing the refresh button in the browser. Or I switch on stacks --file-watch ...</p> <p>recipe 2</p>-<pre><code>stack build --test --exec "$(stack path --local-install-root)/bin/chart-unit-examples" --exec "$(stack path --local-bin)/pandoc -f markdown+lhs -i app/examples.hs -t html -o index.html --filter pandoc-include --mathjax" --file-watch</code></pre>+<pre><code>stack build --test --exec "$(stack path --local-install-root)/bin/chart-unit-examples" --exec "$(stack path --local-bin)/pandoc -f markdown -i examples/examples.md -t html -o index.html --filter pandoc-include --mathjax" --file-watch</code></pre>
readme.md view
@@ -1,20 +1,55 @@ -[chart-unit](https://tonyday567.github.io/chart-unit) [](https://travis-ci.org/tonyday567/chart-unit)+[chart-unit](https://tonyday567.github.io/chart-unit) === -[repo](https://tonyday567.github.com/chart-unit)+[](https://travis-ci.org/tonyday567/chart-unit) [](https://hackage.haskell.org/package/chart-unit) [](http://stackage.org/lts/package/chart-unit) [](http://stackage.org/nightly/package/chart-unit) +[repo](https://github.com/tonyday567/chart-unit)+ `chart-unit` is an experimental haskell chart library. -At the moment, only SVG is supported, and github markdown doesn't include support for svg images.+See https://tonyday567.github.io/chart-unit for an extended description. -See https://tonyday567.github.io/chart-unit for a readme.+chart bling+=== +line chart+---+<img src="https://tonyday567.github.io/other/exampleLine.svg">++scatter chart+---+<img src="https://tonyday567.github.io/other/exampleScatter.svg">++histogram+---+<img src="https://tonyday567.github.io/other/exampleHist.svg">++pixel chart+---+<img src="https://tonyday567.github.io/other/examplePixels.svg">++histogram diff+---+<img src="https://tonyday567.github.io/other/exampleHistCompare.svg">++arrow chart+---+<img src="https://tonyday567.github.io/other/exampleArrow.svg">++compound+---+<img src="https://tonyday567.github.io/other/exampleCompound.svg">++animation+---+<img src="https://tonyday567.github.io/other/anim.gif">+ compile recipe -------- ~~~-stack build --test --exec "$(stack path --local-install-root)/bin/chart-unit-examples" --exec "$(stack path --local-bin)/pandoc -f markdown+lhs -i app/examples.hs -t html -o index.html --filter pandoc-include --mathjax" --file-watch+stack build --test --exec "$(stack path --local-install-root)/bin/chart-unit-examples" --exec "$(stack path --local-bin)/pandoc -f markdown -i examples/examples.md -t html -o index.html --filter pandoc-include --mathjax" --file-watch ~~~ to do
stack.yaml view
@@ -1,11 +1,8 @@-resolver: lts-8.9+resolver: lts-8.23 packages: - '.' extra-deps:-- erf-native-1.0.0.1-- polynomial-0.7.2-- tdigest-0.1-- numhask-0.0.4+- numhask-0.0.5 - numhask-range-0.0.3