forked from mgjv/GDGraph
-
Notifications
You must be signed in to change notification settings - Fork 14
/
TODO
182 lines (133 loc) · 5.49 KB
/
TODO
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
-- Deal with antialiasing for GD 2 and up
--Interesting Idea!
I'd like to change "x" axis label color depending on current label value.
If label starts with "SOMETHING" I'd like to have label in red
otherwise in black color.
I wrote a function as follows:
sub xLabelColor
{
my $value = shift;
my $ret;
if ($value =~ /^SOMETHING/i){
$ret = [qw(red)];
}
else
{
$ret = [qw(black)];
}
return $ret;
}
and then set as a grapgh attribute:
$my_graph->set( 'axislabelclr' => \&xLabelColor );
From: Damian Kaliszan <damian@info.com.pl>
--Flexible colours. Allow #ffeedd notation, on the fly. Allow
conversions. Allow addition of single colours, by name.
john jeyasekharn <jeyasekharn@yahoo.com>
-- dashed grid lines
--- Make it possible to create image maps with this
This may create the necessity for some sort of dry-run mode, and
creation of the gd object on demand, instead of directly.
(work in progress)
From: "Neil Cameron" <n.cameron@blueice.co.uk>o
I'm using your clever little graph system and wonder if it can support
nested data sets. I want to show two data sets side by side, but each
data set itself consists of a set of data which I want to show piled one
on top of the other.
I tried the following data set, with two_axes set to 1 and overwrite set
to 2. I didn't like it. Any ideas.
@data = (
["1st","2nd","3rd","4th","5th","6th","7th", "8th", "9th"],
[ [5,5,5], [5,5,5], [5,5,5], [5,5,5], [5,5,5],
[5,5,5],
+[5,5,5], [5,5,5], [5,5,5]],
[ [5,5,5], [5,5,5], [5,5,5], [5,5,5], [5,5,5],
[5,5,5],
+[5,5,5], [5,5,5], [5,5,5]],
);
From: "Feech" <feech@fastlane.net>
1) Is there any way to make the y-axis count upwards negative instead
of upwards positive?
Answer: negate all the value,s and use y_number_format with a sub
reference. (Make this into an example!)
2) Is there a way to set a minimum step value for axis ticks? All of
my data are integers. When I make a line graph, and the max is 2 and
the min is -1, the ticks are divided into 0.5 ticks. No matter how
small the range in data, I'd like the minimum difference in ticks to
always not be less than 1.
Check whether this is doable
3D
From: Jim Elliott <jimel@sco.COM>
1 - $g->('x_number_format' => \&x_format) only works for numerical
x axes. Can this be expanded?
adamm@genomecorp.com
No matter what I do, I can't get the first point to appear at
where the X and Y axes meet; instead, it appears one tick mark to
the right of zero on the X axis.
From: anordby@sparky.seaweb.com
1. Is it possible to do away with the blank space between the
y-axis and the graph output and the trailing space (area, lines,
linespoints)?
2. Is it possible to create the output without either or both axes?
From: "Thierry Botten" <Botten.Thierry@talkline.de>
My suggestions :
1) Display the data used for each chart inside the chart (does
this work?)
2) Display the date (and hour?) the graph was created?
3) Maybe define your own delimiter character (e.g i like '|' and
others use '~', etc...)
From: Matthieu BORDONNE <matthieu_bordonne@yahoo.com>
- I wanted to have different line widths for the different lines
on one graph: I changed lines.pm. The parameter line_width is
now an array and works in the same way as line_type. You will
find in attached my new lines.pm and a diff of the original and
this file.
Mixed Graphs, all graphs,
Allow setting of individual options per data set:
It will not be trivial at all to implement this, but it will require a
lot of tweaking of the code. I will have a look at it, and try to
estimate the amount of effort needed. Most likely it means that each
option needs to be able to take either a single value, or a array ref.
If it's an array ref, then it needs to take the appropriate setting
out of the array, or the last one. Something like that. It would
require writing a wrapper function that does that, and making sure
that wrapper gets called for all settings that would apply to
individual data sets.
Allen Bolderoff <allen@gist.net.au>
1.
> I would like to be able to say
>
> 'x_label_offset' => 2
>
> this would allow me to have start at the label I want, instead
> of from the 1st
2.
> anyway, the next, but not as important wish, is to have the
> ability to turn off the labeling on the left or right side. - as
> you can see I am using GD to cut off the right side of the
> graph, and re-writing the numbers as I want.
mgjv - Should be using label formatting routine. Need to test?
Pat Becker <pmb@iss.net>
1.
Is there any reason why pie charts can't have legends? If there is
a really thin slice a legend is a good way to get the information
across without polluting the graph with a long data title, (and
keep it readable).
2.
Still on pie charts it would also be nice to be able to get the
data percentages and the totals in the pie.
For example one of my pies is a breakdown of the Operating System
of different machines around the office.
If the data breaks down
Linux - 45%
Solaris - 30%
Windows NT -25%
Total system = 100
It would be nice to have legends with the OS Names, and have
offset lines from the pie which show the percentages.
3.
Bar charts lend themselves to presenting the data that make up the
datapoint above the bar, whether this is an absolute number, or a
percentage.
From: Phil Lu <phlu@cisco.com>
Allow bars in mixed charts to live next to each other, instead of only
on top of each other.