#block

tileline

Simple library to generate SVG block graph

1 unstable release

0.1.0 May 13, 2023

#203 in #block

MIT/Apache

83KB
531 lines

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.

Dependencies

~3.5MB
~67K SLoC