Code Monkey home page Code Monkey logo

tucan's Issues

axes mixed up

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"
    }
  }
}

Add a proper README

Include

  • installation (both mix.exs and livebook)
  • sample code
  • acknowledgements

Add more vega lite themes

Add more themes and document the default themes. Move themes in exs files in the priv folder and auto-load them

3D plots support

Are there any 3D plots available like 3D scatter plots or planned to be implemented? I need one for a visualisation in Scholar.

Plots to be included in the first version

The following plots should be included in the first version:

Single view plots

Check the items once the plots are fully implemented and documented

  • line
  • barchart
  • countplot
  • scatter
  • bubble
  • histogram
  • heatmap
  • density
  • stripplot
  • area
  • pie
  • donut
  • boxplot

Composite plots

  • pairplot

Polar Plot

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 vline, hline

Add helper functions for adding vertical and horizontal lines

Marginal distribution support

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.