#73 Line & Bar Graphs limited to 10 points

BASE
closed-works-for-me
Interface (166)
5
2005-06-13
2005-05-02
No

BASE 1.1.2, latest PEAR

Line & Bar charts all work if 10 or less points are
selected.

Error log messages for > 10 points are:
PHP Warning: Missing argument 1 for
image_graph_datapreprocessor_array() in
e:\snort\Image\Graph\DataPreprocessor\Array.php on
line 79
PHP Warning: Cannot modify header information -
headers already sent by (output started at
e:\snort\Image\Graph\DataPreprocessor\Array.php:79) in
e:\snort\Image\Graph\Driver.php on line 525

Discussion

  • Alejandro Flores

    Logged In: YES
    user_id=1208670

    Hey,

    Please post here all your steps. Chart Type, Period, Chart
    Begin, Chart End...

    Alejandro

     
  • Bruce Briggs

    Bruce Briggs - 2005-05-12

    Logged In: YES
    user_id=1253301

    Graph Alert
    Time (day) vs Number of Alerts
    This one works:
    Chart Begin: 0 15 March 2005
    Chart End: 23 24 March 2005

    This one does not work:
    Chart Begin: 0 15 March 2005
    Chart End: 23 25 March 2005 (or any other day > 24)

    Also, Time (hour) vs Number of Alerts always fails as it is
    trying to graph 24 points.

    I have changed to Apache & PHP 5 from IIS 5.0 & PHP 4.
    This does not fix/change the problem.

     
  • Alejandro Flores

    Logged In: YES
    user_id=1208670

    The graph you say that don't work, works for fine me.
    Tell me your OS, php version, pear version, pear modules, etc...
    Time (hour) vs Number of Alerts will fail if you not specify
    a period. It will plot each hour of each day of the range
    you specified. From 15 to 24 there are 9 days X 24 hours =
    216 points to plot. So, choose a period like "24 (hole day)".

    Alejandro

     
  • Bruce Briggs

    Bruce Briggs - 2005-05-12

    Logged In: YES
    user_id=1253301

    OS = Windows 2000
    Either IIS 5.0 with PHP 4.3.10
    or Apache with PHP 5.0.4 <-- currently in use
    Pear:
    I followed the install instructions and did this:
    pear install Image_Color
    pear install Log
    pear install Numbers_Roman
    pear install http://pear.php.net/get/Numbers_Words-0.13.1.tgz
    pear install http://pear.php.net/get/Image_Graph-0.3.0.tgz

    I get this error:
    PHP Warning: Missing argument 1 for
    Image_Graph_DataPreprocessor_Array::Image_Graph_DataPr
    eprocessor_Array() in E:\Snort\php5
    \PEAR\Image\Graph\DataPreprocessor\Array.php
    Again, this works when the day range is 10 or less and gets
    the error when the day range is > 10.

    E:\Snort\php5\PEAR\Image\ contains Color.php & Graph.php
    and the Graph directory.

    PHP.INI has:
    include_path=".;E:\Snort\php5\pear\image;e:\Snort"

     
  • Bruce Briggs

    Bruce Briggs - 2005-05-12

    Logged In: YES
    user_id=1253301

    Also, Time (hour) vs Number of Alerts fails, with the same
    error message with:
    Chart Begin: 0 15 March 2005
    Chart End: 0 15 March 2005
    Chart Period: 24 (whole day)
    or
    Chart Begin: 0 15 March 2005
    Chart End: 23 15 March 2005
    Chart Period: 24 (whole day)
    or any other Chart End values that I have tried

     
  • Joel Esler

    Joel Esler - 2005-05-26
    • assigned_to: nobody --> zroone
     
  • Christian

    Christian - 2005-05-26

    Logged In: YES
    user_id=1155549

    When i use

    Time (hour) vs Number of Alerts

    Chart Begin: 0 15 March 2005
    Chart End: 0 15 March 2005
    Chart Period: 24 (whole day)

    It dont produce any chart since i dont have no data during
    that time. Would be nice if produced a plank chart instead of
    none.

    But if i choose
    Chart Begin: 1 15 March 2005
    Chart End: 1 15 March 2005
    Chart Period: 24 (whole day)

    It gives me a chart.

    One other odd thing about this it keep saying
    03/15/2005 0:00:00 - 0:59:59 - 03/15/2005 23:00:00 - 23:59:59
    does not mather if i change the hours it keeps saying the
    same. Cant be right.

    /Christian

     
  • Alejandro Flores

    Logged In: YES
    user_id=1208670

    I can't reproduce this error. Mine works fine. When there's
    no data, it shows a graph with 0 value. About the time being
    03/15/2005 0:00:00 - 0:59:59 - 03/15/2005 23:00:00 -
    23:59:59 it's because you choosed a period of 24 hours.
    Select period = none if you want to check just some hours.

     
  • Christian

    Christian - 2005-06-07

    Logged In: YES
    user_id=1155549

    Just as zroone i cant reproduce this error Joel/Kevin decide if
    we should close this one or not.

    /Christian

     
  • Joel Esler

    Joel Esler - 2005-06-13
    • labels: --> Interface
    • status: open --> closed-works-for-me
     
  • Joel Esler

    Joel Esler - 2005-06-13
    • milestone: --> BASE
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks