Git Product home page Git Product logo

chart's Introduction

NAME

Chart - swiss army knife for visualising series of numbers

VERSION

2.403.9

Chart on CPAN

This is the landing page for the user documentation.
There is also a download link on the left side under "Tools".

BUILDING

The git repository contains much more than the software package itself.
If you check out sources here, you have to build the package yourself.
In order to do that you need perl and the module Dist::Zilla.

cpan install Dist::Zilla   
    or 
cpanm Dist::Zilla


Then you have to check which further the Dist::Zilla plugins you miss:

dzil authordeps

and pipe them into your preferred installer:

dzil authordeps | cpanm


Than you can build a release yourself:

dzil build

Which gives you basically the same tgz file as under the download link
from CPAN (as describes under HOME), just with more up to date 
(and maybe buggy) sources. Don't forget to:

dzil clean

INSTALLING

Once you downloaded or created a build, you unzip it and do the usual:

    perl Makefile.PL
    make
    make test
    make install

This should install to your site_perl directory.

PREREQUISITES

Perl 5.12 including some core Modules.
Lincoln Stein's GD module version 2.0.36 or higher.
Carp 1.35 or higher
Graphics::Toolkit::Color

Optionally modules of the Graphics::ColorNames::* namespace are
required if your color definitions calls for them.
(see Chart::Color for details)

In future we might require optionally SVG 2.5 and List::Util.

CHANGES (with roadmap)

CONTRIBUTING

CONTRIBUTORS

MAINTAINER

- Chart-Group ([email protected])
- Herbert Breunung ([email protected])

COPYRIGHT

Copyright(c) 1997-1998 by David Bonner, 1999 by Peter Clark,
2001 by the Chart group at BKG-Wettzell.
2022 by Herbert Breunung and Chart group

All rights reserved.  This program is free software; you can
redistribute it and/or modify it under the same terms as Perl 
itself.

The included  Unifont (c) by Roman Czyborra and contributors 
is licensed under the OFL (Open Font License) 1.1.

chart's People

Contributors

lichtkind avatar ppisar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

chart's Issues

Documentation

I really like the simplicity and usefullness of this collection, but I had a hard time getting it the way I wanted, because of missing documentation. The test files in the distribution were really helpful, but that is not really user-friendly after installation.

use Chart::Points;
my $ch = Chart::Points->new (800, 400);
my @L  = ("unthreaded 1", "unthreaded 2", "threaded 1", "threaded 2");
$ch->set (
    pt_size             => 4,
    legend              => "top",
    legend_labels       => \@L,
    title               => "Issue 21360",
    x_label             => "perl version 5.X.0",
    y_label             => "duration (s)",
    colors              => {
        title           => "blue4",
        background      => [ 240, 240, 240 ],
        dataset0        => [ 191,   0,   0 ],
        dataset1        => [ 127,   0,   0 ],
        dataset2        => [   0, 191,   0 ],
        dataset3        => [   0, 127,   0 ],
        },
    grey_background     => 0,
    );
$ch->png ("x21360.png", [\@l, \@a, \@b, \@A, \@B ]);

Was what I ended up with, where I was most confused about having to use dataset2 instead of e.g. $L[2].

I tried to summerize what I found in the t files:

scalar attributes
--------------------------------------------------
angle_interval
arrow
f_x_tick
f_y_tick
graph_border
grid_lines
imagemap
include_zero
integer_ticks_only
interval
interval_ticks
label_font
label_values
legend
legend_example_height
legend_example_height0..1
legend_example_height0..2
legend_example_height0..3
legend_example_height2
legend_example_height3
legend_example_height4..8
legend_example_height4..9
legend_example_size
legend_font
legend_label_values
legend_lines
line
max_val
max_val1
max_val2
max_x_ticks
max_y_ticks
min_val
min_val1
min_val_2
min_val2
min_y_ticks
pairs
png_border
point
precision
pt_size
ring
same_error
same_y_axes
skip_int_ticks
skip_x_ticks
sort
space_bars
spaced_bars
start
stepline
stepline_mode
sub_title
sub_title_font
text_space
tick_label_font
tick_len
title
title_font
transparent
type_style
x_grid_lines
x_label
x_ticks
xy_plot
y_axes
y_grid_lines
y_label
y_label2
y_ticks

array attributes
--------------------------------------------------
composite_info
custom_x_ticks
legend_labels
patterns
xlabels
xrange

color attributes
--------------------------------------------------
grey_background
colors
    background
    dataset0
    dataset1
    dataset2
    dataset3
    dataset4
    ..
    dataset9
    grid_lines
    misc
    text
    title
    x_grid_lines
    x_label
    y2_grid_lines
    y_grid_lines
    y_label
    y_label2

brush attributes
--------------------------------------------------
brush_size
brush_size1
brush_size2
brushStyle
brushStyles
    dataset0
    dataset1
    dataset2
    dataset3
    dataset4
    ..
    dataset9

and I am affraid there is more. Some are confusing and now I want to know more :)

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.