pnezis / tucan Goto Github PK
View Code? Open in Web Editor NEWAn Elixir plotting library on top of VegaLite
Home Page: https://hexdocs.pm/tucan/Tucan.html
License: MIT License
An Elixir plotting library on top of VegaLite
Home Page: https://hexdocs.pm/tucan/Tucan.html
License: MIT License
It would exactly be like the bar graph where I can put a hex value.
Support the most important properties and add a generic function for adding any legend property
Just started using this awesome library, so maybe this is not an issue/bug, but me not knowing enough.
However, trying to order my bar chart by value of x, I use this function call. If I dump the output, the encoding options for x are put onto y (and the other way around).
Tucan.bar(distances, "year", "dist", x: [sort: "-x"], fill_color: "#33245A", corner_radius: 5, orient: :horizontal)
%VegaLite{
spec: %{
"$schema" => "https://vega.github.io/schema/vega-lite/v5.json",
"data" => %{
"values" => [
%{"dist" => 44, "year" => 2011},
%{"dist" => 38, "year" => 2010},
%{"dist" => 37, "year" => 2009},
%{"dist" => 35, "year" => 1987},
%{"dist" => 35, "year" => 2012},
%{"dist" => 32, "year" => 2017},
%{"dist" => 29, "year" => 2015},
%{"dist" => 28, "year" => 1986},
%{"dist" => 28, "year" => 2018},
%{"dist" => 27, "year" => 1989}
]
},
"encoding" => %{
"x" => %{"field" => "dist", "type" => "quantitative"},
"y" => %{
"axis" => %{"labelAngle" => 0},
"field" => "year",
"sort" => "-x",
"type" => "nominal"
}
},
"mark" => %{
"color" => "#33245A",
"cornerRadiusEnd" => 5,
"fillOpacity" => 1,
"type" => "bar"
}
}
}
Include
Add more themes and document the default themes. Move themes in exs files in the priv folder and auto-load them
Add dataset info in the keyword list and auto-generate the docs:
Are there any 3D plots available like 3D scatter plots or planned to be implemented? I need one for a visualisation in Scholar.
The following plots should be included in the first version:
Check the items once the plots are fully implemented and documented
Are polar plots something that would be welcome here?
I have this PR open on VegaLite, but with the presence of this higher level library, it might be welcome here instead.
The only thing I'm not sure about is that the higher level API might not support the current structuring of the code.
Add helper functions for adding vertical and horizontal lines
Vegalight can take "container"
as a value of width, height.
Tucan allows only integer for the value of sizes yet.
Add guides for using Tucan
. Add here vega lite guides we can port to Tucan
vegalite has rounded edges for bar graphs as an option.
Add a function for adding marginal distribution plots to any graph with quantitative channels. The user should be able to select the type of the distribution plot.
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.