schiegl / quickplot Goto Github PK
View Code? Open in Web Editor NEWQuick and easy data visualizations with Haskell
License: GNU General Public License v3.0
Quick and easy data visualizations with Haskell
License: GNU General Public License v3.0
I will make it available on Hackage once QuickPlot can be used reasonably. Until then it's only available to developers.
A tutorial on how to use it and how I created the Atom setup in the demo is missing.
It would be nice if users could write their own scripts that could be executed inside the QuickPlot browser and interact with them via Haskell,
All of them except the network ones. It complaints that the number of lines it is allowed to draw is too limiting.
After fixing dependency issues with extra-deps of snap
, heist
, and map-syntax
, QuickPlot still fails to build.
$ stack install QuickPlot
...
-- While building package QuickPlot-0.1.0.1 using:
/Users/christian/.stack/setup-exe-cache/x86_64-osx/Cabal-simple_mPHDZzAJ_1.24.2.0_ghc-8.0.2 --builddir=.stack-work/dist/x86_64-osx/Cabal-1.24.2.0 build --ghc-options " -ddump-hi -ddump-to-file"
Process exited with code: ExitFailure 1
Logs have been written to: /Users/christian/.stack/global-project/.stack-work/logs/QuickPlot-0.1.0.1.log
Configuring QuickPlot-0.1.0.1...
Building QuickPlot-0.1.0.1...
Preprocessing library QuickPlot-0.1.0.1...
[1 of 8] Compiling QuickPlot.IPC.QQParser ( src/QuickPlot/IPC/QQParser.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/QuickPlot/IPC/QQParser.o )
[2 of 8] Compiling QuickPlot.IPC.QQ ( src/QuickPlot/IPC/QQ.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/QuickPlot/IPC/QQ.o )
/private/var/folders/f0/n69q86k12r71r80pvsv4cyzm0000gn/T/stack58020/QuickPlot-0.1.0.1/src/QuickPlot/IPC/QQ.hs:30:10: error:
Duplicate instance declarations:
instance Lift Value -- Defined at src/QuickPlot/IPC/QQ.hs:30:10
instance Lift Value
-- Defined in ‘aeson-1.0.2.1:Data.Aeson.Types.Internal’
As of now QuickPlot only uses plot.ly for visualizations.
Not sure if this is best posted here as an issue, but you mention that you've stopped maintaining this library because many other language agnostic libraries have arisen.
Could you give some examples of such libraries? And do any projects already exist for clients of their visualization servers?
How would you recommend someone trying to create plots with Haskell do so given the current environment?
If I build the package and use it somewhere else it won't find the resources (HTML, CSS, JS), because snap is looking relative from the project directory of the user who imports the library, not from the QuickPlot libray itself.
If someone knows JavaScript well I'd be happy if they would implement better plot management. By that I mean, closing, moving, resizing and so on. Being able to easily add control elements like sliders and so on. So far I have coded everything by hand and while possible it's tiresome.
I imagine that some UI framework would be useful but my JS skills are old school and I don't know any.
Is it possible to custom the chart such as adding title, (x|y)axis title or legend options ?
Taking this example:
boxLine x y = do
let box = [plotly|{
x : #{ x },
y : #{ y },
type : "lines"
}|]
return box
How do you add a title, a legend (label of the curve) ?
Is it possible right now or the library needs more development/help ?
Thanks in advance for your answer and your great work
When the user refreshes the tab the websocket connection doesn't close immediately. Then messages from the channel MVar are accessed by 2 websocket threads and sent to each of the 2 websockets. It appears as only every second message arrives at the browser.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.