VMaxGraph Applet  Great tool to display graphic data

 
  • Custom backgrounds and colors
  • Multiple graphs 
  • Smart auto scale
  • Different modes of graphs representation
  • Loads graph data from external file or CGI connection
  • Can merge several graphs from different sources
  •  
    In this example applet merges two polylines from single file
    vmaxgraph.txt with two more polylines defined in files vmaxgraphcycl.txt and vmaxgraphcycl2.txt
    This example shows bargraph mode, Data defined in file vmaxgraphexp.txt

    Applet tag example
    ( Optional parameters are in gray )

    <APPLET CODE="vmaxgraph.class" WIDTH=400 HEIGHT=300>
    <PARAM NAME="BGCOLOR"   VALUE="c0ffff">
    <PARAM NAME="GRIDCOLOR" VALUE="008080">
    <PARAM NAME="BGIMAGE"   VALUE="vmaxgraph1.gif">
    <PARAM NAME="FONT"      VALUE="dialog,1,10">
    <PARAM NAME="CLIPRECT"  VALUE="40,10,350,280">
    
    <PARAM NAME="XSCALE"    VALUE="80%">
    <PARAM NAME="YSCALE"    VALUE="80%">
    <PARAM NAME="XOFFSET"   VALUE="-1.75">
    <PARAM NAME="YOFFSET"   VALUE="-1.4">
    <PARAM NAME="POINTSIZE" VALUE="4">
    
    <PARAM NAME="GRAPHCOLORS" VALUE="800000,006600,000080">
    <PARAM NAME="URL0"        VALUE="polygon|vmaxgraph.txt">
    <PARAM NAME="URL1"        VALUE="polygon|vmaxgraphcycl.txt">
    <PARAM NAME="URL2"        VALUE="polygon|vmaxgraphcycl2.txt">
    
    <PARAM NAME="AUTHOR"    VALUE="Virtual_Max (http://come.to/vmax)">
    <PARAM NAME="KEY"       VALUE="Free Version">
    
    </APPLET>

    Parameters
    BGCOLOR All Colors are in hexadecimal format 'rrggbb', same as HTML colors format but without # hexadecimal radix symbol. For example, for red color use: FF0000. 
    This colors only shows if one use applet without background image or use transparent image.
    GRIDCOLOR Color for grid and scales
    BGIMAGE Optional background image.
    FONT FontSettings includes FontName, FontStyle and FontSize separated by commas. 

    Java supports only few platform independent  fonts
    FontNames

  • dialog 
  • Helvetica 
  • TimesRoman 
  • Courier 
  • inputDialog 

  •  FontStyles.
     0 - for Plain text 
     1 - Bold 
     2 - Italics 
     3 - Bold Italics 

    FontSize is any decimal integer. 

    CLIPRECT Graph area clip rectangle X, Y, Width, Height  in pixels.
    XSCALE
    YSCALE
    XOFFSET
    YOFFSET
    Optional scaling and offset parameters, if omitted applet will make scaling automatically. Graphic point coordinates (relative to  top-left corner of clip rectangle) will be calculated according to following formulas:
    crX=(X - XOFFSET)*XSCALE
    crY=CLIPRECTHEIGHT - (Y - YOFFSET)*YSCALE
    Autoscale will choose scales to fit  all graphs minimums and maximums in clip rectangle. 
    Scales can be either float values to overread the ones  calculated by applet automaticaly, either can be given in %s, if one defines XSCALE VALUE="80%" xscale will be recalculated to fit graphs in 80% of clip rectangle width.
    Offsets can be omitted (automatically calculated values will be used)
    POINTSIZE Size of point rectangle in pixels
    GRAPHCOLORS List of graph colors separated by commas. Colors will be chosen from the list and assigned to graphs in order of graphs loading.
    URL0..
    URLn
    This value includes two fields MODE and  fileURL separated by '|' character

    List of modes:
    points No interpolation. 
    polyline Linear interpolation
    polygon Closed polyline
    chart Linear interpolation
    bargraph Bars
    fillbargraph filled bar graph

    Single file can contain multiple graphs. Each line of the file contains set of points coordinates, one for each graph,  but the way applet interprets file data is different for different modes

    For modes: points, polyline and polygon each line in file assumed to start with X coordinate  followed by Y values for each of graphs.
    For example in case of 3 graphs in one file line format will be:
    x  y0  y1  y2 

    Modes chart, bargraph and fillbargraph suppose X coordinate  to be a number of the line, so  lines include only Y values for each graph.
    y0  y1  y2 

    Coordinate values in file can be strings representing float or integer numbers separated with  space characters. No other characters allowed.

    AUTHOR "Virtual_Max (http://come.to/vmax)" this parameter is obligatory and can't be changed or removed.
    KEY One can use applet free with key "Free Version", this will link the applet back to my pages. Please, register the applet if you want to get rid of this additional link.