0.0.5 • Published 10 years ago

trazar v0.0.5

Weekly downloads
2
License
-
Repository
github
Last release
10 years ago

#Trazar

An xunit -> chart library..

##Installation

  1. Install Cairo (OSX: brew install cairo)
  2. Make sure your PKG_CONFIG_PATH includes all relevant pkg-config directories (for me, this was /usr/local/lib/pkgconfig:/usr/X11/lib/pkgconfig): export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/X11/lib/pkgconfig
  3. npm install

##Simple Example

var trazar = require('./lib/generator');
var sources = [];

sources.push({
        label : "Hello World Unit Tests",
        file : "./fileOne.xunit.xml"
    },
    {
        label : "Hello World E2E Tests",
        file : "./fileTwo.xunit.xml"
    });

var options = {
    successStrokeColor : "#000000"
};

var outFile = __dirname + '/bar.png';
var promise = trazar.from('xunit', sources, options).chart('bar', outFile);

promise
    .then(function(result) {
        console.log("Chart generated!");
    })
    .catch(function(err) {
        console.error(err);
    });

This will generate something like this:

npm.io

0.0.5

10 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago