// ploticus script for generating (OLD) svg mouseover example, using generic javascript (overlib in this case)
//
// HTML page
//
// Use a command like this:  pl svg_mouseover.htm -svg -csmap
//
// This generates overlib javascript call using data fields 1 and 3.
// The tooltip bubble is placed in an absolute location because
// currently labels don't work directly over the svg viewer.
//
// You can add html code such as <h3> within the double quotes above, 
// or within the string in the data.
// Ampersands, greater-than, and less-than characters embedded in the label content 
// will be automatically escaped out.. but embedded quotes must be represented using
// constructs like '
//
// Thanks to Jamie Echlin for this idea and the original examples using overlib.
// Overlib author is Erik Bosrup.
//

#proc settings
  svg_mouseover_js: generic

#set BUBBLE_X = 300
#set BUBBLE_Y = 250

#proc getdata
delim: tab
data:  
  02feb2004	5	this bar is on the left..
  05feb2004	7	and this one's near the center..
  08feb2004	12	this bar is rightmost & green like the rest..

#proc areadef
rectangle: 1 1 5 3
xscaletype: date ddmmmyyyy
xautorange: datafield=1 margin=1
yrange: 0 15
xaxis.stubs: inc 1 day
xaxis.stubformat: Mmmdd
yaxis.stubs: inc
       
#proc bars
locfield: 1
lenfield: 2
color: green
clickmaplabel: onmouseover='overlib( "@@1: @@3", FIXX, @BUBBLE_X, FIXY, @BUBBLE_Y, AUTOSTATUS)' onmouseout='nd();'