List Info

Thread: Words are missing on the graphs




Words are missing on the graphs
user name
2006-05-11 21:08:59
Running Maia 1.01 and the graphs all work, but none of the
words seem to
show up.  Anyone know what fonts I may be missing or are
required to see
the words that should be there?

Regards,

Ryan

_______________________________________________
Maia-users mailing list
Maia-usersrenaissoft.com
http://www.renaissoft.com/mailman/listinfo/maia-users
Words are missing on the graphs
user name
2006-05-13 21:06:41
Ryan Delany wrote:
> Running Maia 1.01 and the graphs all work, but none of
the words seem to
> show up.  Anyone know what fonts I may be missing or
are required to see
> the words that should be there?

For the chart features, you need to have the following PEAR
modules
installed (the configtest.php in 1.0.1 does not test for
these, but
repository versions 1033 and later do):

PEAR::Image_Graph
PEAR::Image_Canvas
PEAR::Image_Color
PEAR::Numbers_Roman
PEAR::Numbers_Words

As for the TTF font, you can specify that in your config.php
file as
$chart_font.  If your TTF font path is set in such a way
that the web
server user can find your fonts by name, you just need to
specify the
name of the font, otherwise the full path to the font file
is required.
 In /theory/, leaving $chart_font = '' is supposed to tell
Image_Graph
to select a default font, but it's safer to specify a font
yourself.

-- 
Robert LeBlanc <rjlrenaissoft.com>
Renaissoft, Inc.
Maia Mailguard <http://www.maiamail
guard.com/>

_______________________________________________
Maia-users mailing list
Maia-usersrenaissoft.com
http://www.renaissoft.com/mailman/listinfo/maia-users
Words are missing on the graphs
user name
2006-05-14 06:59:45
On Sat, 2006-05-13 at 14:06 -0700, Robert LeBlanc wrote:
> Ryan Delany wrote:
> > Running Maia 1.01 and the graphs all work, but
none of the words seem to
> > show up.  Anyone know what fonts I may be missing
or are required to see
> > the words that should be there?
> 
> For the chart features, you need to have the following
PEAR modules
> installed (the configtest.php in 1.0.1 does not test
for these, but
> repository versions 1033 and later do):
> 
> PEAR::Image_Graph
> PEAR::Image_Canvas
> PEAR::Image_Color
> PEAR::Numbers_Roman
> PEAR::Numbers_Words
> 
> As for the TTF font, you can specify that in your
config.php file as
> $chart_font.  If your TTF font path is set in such a
way that the web
> server user can find your fonts by name, you just need
to specify the
> name of the font, otherwise the full path to the font
file is required.
>  In /theory/, leaving $chart_font = '' is supposed to
tell Image_Graph
> to select a default font, but it's safer to specify a
font yourself.

What text are we supposed to see exactly?

If I specify a font with a full path I can see the text
"Mail Stats" is
generated, however none of the exploded pie pieces has any
associated
text. Is that correct or should I be seeing any sort of
breakup/percentage text per pie piece?

-- 
Karl Latiss <karl.latissatvert.com.au>
Atvert Systems

_______________________________________________
Maia-users mailing list
Maia-usersrenaissoft.com
http://www.renaissoft.com/mailman/listinfo/maia-users
Words are missing on the graphs
user name
2006-05-14 16:39:07
Karl Latiss wrote:

> What text are we supposed to see exactly?
> 
> If I specify a font with a full path I can see the text
"Mail Stats" is
> generated, however none of the exploded pie pieces has
any associated
> text. Is that correct or should I be seeing any sort of
> breakup/percentage text per pie piece?

The legend text is not being generated at present; the chart
code is
still in an early "proof of concept" state, and
will be refined in the
near future.  As such, all it generates right now is the
chart title and
the pie chart itself.

Our plans for the chart code include:

* Adding a colour-coded legend to identify the chart items.

* Adding a border around the chart, so that multiple charts
can be
included on the stats page without confusion.

* Limiting the number of slices generated on pie charts for
increased
readability, such that only the top n slices will be shown
individually,
with all remaining slices aggregated into a single
"other" slice.

* Adding other chart types for time-based statistics, such
as histograms
(bar charts) and perhaps area plots.  This is waiting mainly
on a
reworking of the statistics-tracking code, which has been
done in the
aptly-named "stats" branch and may make it into
the 1.0.2 release if
time permits.

* Adding scheduling features for chart generation, so that
charts can be
auto-generated at fixed intervals and displayed as static
images instead
of dynamically-generated whenever the stats page is loaded. 
This is
particularly important on high-traffic websites, where
dynamic chart
generation can consume a great deal of system resources.

-- 
Robert LeBlanc <rjlrenaissoft.com>
Renaissoft, Inc.
Maia Mailguard <http://www.maiamail
guard.com/>

_______________________________________________
Maia-users mailing list
Maia-usersrenaissoft.com
http://www.renaissoft.com/mailman/listinfo/maia-users
Words are missing on the graphs
user name
2006-05-14 17:43:21
> The legend text is not being generated at present; the
chart code is
> still in an early "proof of concept" state,
and will be refined in the
> near future.  As such, all it generates right now is
the chart title and
> the pie chart itself.
>

That explains the missing text then!  I was expecting to see
a legend and
labels of some sort, and that is what is missing, but based
on what you
wrote, that is the current design.

I will be patient until the labels and legends are added!

Thanks for clearing this issue up for me.

Ryan


_______________________________________________
Maia-users mailing list
Maia-usersrenaissoft.com
http://www.renaissoft.com/mailman/listinfo/maia-users
Words are missing on the graphs
user name
2006-05-14 20:37:13
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Robert LeBlanc wrote:

> * Adding a colour-coded legend to identify the chart
items.

Um, I have a legend:

http://gallery.dgrmm.net/v/Misc/screenshots/charts.jp
g.html

- --
David Morton
Maia Mailguard                        - http://www.maiamailguard
.com
Morton Software Design and Consulting - http://www.dgrmm.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org


iD8DBQFEZ5T5SIxC85HZHLMRAp54AKCKlNmSudlVp5mUVRJkAGz2tRl5IACf
Y3u2
HvmlAFYLgTrSndMlqXQ0cS8=
=/iRU
-----END PGP SIGNATURE-----
_______________________________________________
Maia-users mailing list
Maia-usersrenaissoft.com
http://www.renaissoft.com/mailman/listinfo/maia-users
Words are missing on the graphs
user name
2006-05-14 21:16:20
David Morton wrote:
> Robert LeBlanc wrote:
> 
> 
>>>* Adding a colour-coded legend to identify the
chart items.
> 
> 
> Um, I have a legend:
> 
> http://gallery.dgrmm.net/v/Misc/screenshots/charts.jp
g.html

Heh!  Well, aren't /you/ special ;)  Care to tell the rest
of us how we
can get that to show up?  All I get is the chart title and
the chart itself.

-- 
Robert LeBlanc <rjlrenaissoft.com>
Renaissoft, Inc.
Maia Mailguard <http://www.maiamail
guard.com/>

_______________________________________________
Maia-users mailing list
Maia-usersrenaissoft.com
http://www.renaissoft.com/mailman/listinfo/maia-users
Words are missing on the graphs
user name
2006-05-14 23:02:52
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Robert LeBlanc wrote:
> David Morton wrote:
>> Robert LeBlanc wrote:
>>
>>
>>>> * Adding a colour-coded legend to identify
the chart items.
>>
>> Um, I have a legend:
>>
>> http://gallery.dgrmm.net/v/Misc/screenshots/charts.jp
g.html
> 
> Heh!  Well, aren't /you/ special ;)  Care to tell the
rest of us how we
> can get that to show up?  All I get is the chart title
and the chart itself.

If you look at chart_stats.php, I think you can see that it
mentions a $Legend
variable, so it should be there.

I think it gets the text for the legend from the locale
file: locale/xx/stats.php

   $lang['chart_stats'] = array(
               "h"      => "Confirmed
Non-spam",
               "sh"     => "Probable
Non-spam",
               "wl"     => "Whitelisted
Items",
               "bl"     => "Blacklisted
Items",
               "ss"     => "Suspected
Spam",
               "s"      => "Confirmed
Spam",
               "fp"     => "False
Positives",
               "fn"     => "False
Negatives",
               "v"      =>
"Viruses",
               "bh"     => "Bad
Header",
               "bf"     => "Banned
Attachments",
               "os"     =>
"Oversized"
               );

Are you all using a locale with incomplete translations?  A
simple search on
trac should have found this: http
s://secure.renaissoft.com/maia/changeset/617

;)



- --
David Morton
Maia Mailguard                        - http://www.maiamailguard
.com
Morton Software Design and Consulting - http://www.dgrmm.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org


iD8DBQFEZ7cbSIxC85HZHLMRAiDhAKCHco4jt5npJ66AdCXfoo+1iFijTgCf
RxLp
E6okCdiyGtnPGHDXFfOmIqI=
=oV7z
-----END PGP SIGNATURE-----
_______________________________________________
Maia-users mailing list
Maia-usersrenaissoft.com
http://www.renaissoft.com/mailman/listinfo/maia-users
Words are missing on the graphs
user name
2006-05-14 23:18:04
On Sun, 2006-05-14 at 18:02 -0500, David Morton wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Robert LeBlanc wrote:
> > David Morton wrote:
> >> Robert LeBlanc wrote:
> >>
> >>
> >>>> * Adding a colour-coded legend to
identify the chart items.
> >>
> >> Um, I have a legend:
> >>
> >> http://gallery.dgrmm.net/v/Misc/screenshots/charts.jp
g.html
> > 
> > Heh!  Well, aren't /you/ special ;)  Care to tell
the rest of us how we
> > can get that to show up?  All I get is the chart
title and the chart itself.
> 
> If you look at chart_stats.php, I think you can see
that it mentions a $Legend
> variable, so it should be there.
> 
> I think it gets the text for the legend from the locale
file: locale/xx/stats.php
> 
>    $lang['chart_stats'] = array(
>                "h"      =>
"Confirmed Non-spam",
>                "sh"     =>
"Probable Non-spam",
>                "wl"     =>
"Whitelisted Items",
>                "bl"     =>
"Blacklisted Items",
>                "ss"     =>
"Suspected Spam",
>                "s"      =>
"Confirmed Spam",
>                "fp"     => "False
Positives",
>                "fn"     => "False
Negatives",
>                "v"      =>
"Viruses",
>                "bh"     => "Bad
Header",
>                "bf"     => "Banned
Attachments",
>                "os"     =>
"Oversized"
>                );
> 
> Are you all using a locale with incomplete
translations?  A simple search on
> trac should have found this: http
s://secure.renaissoft.com/maia/changeset/617
> 
> ;)

I'm using the en locale with a fresh install of 1.0.1

I simply thought it wasn't finished yet (ie waiting for the
stats
branch) however now it appears that something isn't
working. The changes
listed in changeset 617 do appear in chart_stats.php and I
do have a
locale/en/stats.php file however I see no legend.

-- 
Karl Latiss <karl.latissatvert.com.au>
Atvert Systems

_______________________________________________
Maia-users mailing list
Maia-usersrenaissoft.com
http://www.renaissoft.com/mailman/listinfo/maia-users
Words are missing on the graphs
user name
2006-05-14 23:27:07
David Morton wrote:

> If you look at chart_stats.php, I think you can see
that it mentions a $Legend
> variable, so it should be there.

Yes, I see the $Legend variable in there, but it's not
showing up in the
generated chart.


> I think it gets the text for the legend from the locale
file: locale/xx/stats.php
> 
>    $lang['chart_stats'] = array(
>                "h"      =>
"Confirmed Non-spam",
>                "sh"     =>
"Probable Non-spam",
>                "wl"     =>
"Whitelisted Items",
>                "bl"     =>
"Blacklisted Items",
>                "ss"     =>
"Suspected Spam",
>                "s"      =>
"Confirmed Spam",
>                "fp"     => "False
Positives",
>                "fn"     => "False
Negatives",
>                "v"      =>
"Viruses",
>                "bh"     => "Bad
Header",
>                "bf"     => "Banned
Attachments",
>                "os"     =>
"Oversized"
>                );
> 
> Are you all using a locale with incomplete
translations?  A simple search on
> trac should have found this: http
s://secure.renaissoft.com/maia/changeset/617

That's exactly what I have in my locale/en/stats.php file,
but as I say,
I get no legend.  This might be something more subtle,
perhaps one extra
component you installed on your site while writing this
code, but which
didn't get mentioned in the prerequisite list?  I get no
errors/warnings/notices in my web logs either.

-- 
Robert LeBlanc <rjlrenaissoft.com>
Renaissoft, Inc.
Maia Mailguard <http://www.maiamail
guard.com/>

_______________________________________________
Maia-users mailing list
Maia-usersrenaissoft.com
http://www.renaissoft.com/mailman/listinfo/maia-users
[1-10] [11-20] [21]

about | contact  Other archives ( Real Estate discussion Medical topics )