GithubHelp home page GithubHelp logo

tglman / tileline Goto Github PK

View Code? Open in Web Editor NEW
10.0 1.0 0.0 268 KB

Simple library to generate SVG block graph

Home Page: https://tileline.tglman.org

Rust 84.78% Liquid 8.89% SCSS 6.33%
rust svg visualization

tileline's Introduction

Tileline

Tileline is a simple library to generate SVG block graph that represents a set of events, it has API for generic block graphs, and a year block graph, with the ability to associate links to specific blocks.

Here an example output:

Year Line

Status

Supported Features

  • Simple Block Graph
  • Simple Block Graph with labels
  • Year Block Graph (year_line feature flag)

Potential Features

  • API with pre-defined colors by value instead of RGB value
  • Multiple preconfigured set of colors

Use

Just add it as dependency in your project toml.

tileline = "0.1.0"

With additional year block graph

tileline = {version="0.1.0", features=["year_line"]} 

Development

Being a rust project just make sure to have your rust compiler setup and then:

Base build:

cargo build --all-features

Run Tests:

cargo test --all-features

License

Unless explicitly stated otherwise, all work is subject to the terms of the MIT/Apache-2.0.

tileline's People

Contributors

jean-baptistec avatar tglman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

tileline's Issues

Add Ci

Add action to just run the rust tests

New API with pre-set color based on values

Will be cool to have an API, that instead require to return rgb colours but just a number for example between 1 and 10, of each number will be associated a pre configured colour.

Year to date tile line

Now there is a year tile line for a specific year, but would be cool to do a year to date tile line.

Support for wasm

It should be possible to support wasm in this crate, and definitely it would be useful to run this in the browser, the only worry is if the deps do not support it.

Set a sensible viewBox

As today, the viewBox setting is commented out, I do not really know what that means and what could be a sensible value for it, so any help to figured it out is welcome, in any case things seems to work okish even without it.

here relevant code:

// ("viewBox", &*format!("0 0 {} {}", width, height)),

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.