Best Android App InstaSquare Lite for full-size publication of photos in Instagram, Facebook, Twitter. Run the android application on PC. You can through the android emulator Droid4X.
Show
Ignore:
Timestamp:
02/05/09 12:03:32 (16 months ago)
Author:
czue
Message:

move the legend axis off center and add the click event to turn on the tooltip. This is not that smooth in execution and we may just want to turn it off.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/rapidandroid/org.rapidandroid/assets/flot/html/basechart.html

    r102 r113  
    1010     
    1111    <script id="source" language="javascript" type="text/javascript"> 
     12     
     13     function showTooltip(x, y, contents) { 
     14        $('<div id="tooltip">' + contents + '</div>').css( { 
     15            position: 'absolute', 
     16            display: 'none', 
     17            top: y + 5, 
     18            left: x + 5, 
     19            border: '1px solid #fdd', 
     20            padding: '2px', 
     21            'background-color': '#fee', 
     22            opacity: 0.80 
     23        }).appendTo("body").fadeIn(200); 
     24    } 
     25 
     26     
    1227function load(){ 
    1328        //document.getElementById('graphtitle').innerHTML = window.graphdata.getGraphTitle("wassup", 5); 
     
    2237} 
    2338function GotGraph(gData, gOptions) {     
     39    $("#tooltip").remove(); 
     40             
    2441        $.plot($("#placeholder"), gData, gOptions); 
     42        $("#placeholder").bind("plotclick", function (event, pos, item) { 
     43        if (item) { 
     44            $("#tooltip").remove(); 
     45            var y = item.datapoint[1].toFixed(0); 
     46            showTooltip(item.pageX, item.pageY, 
     47                                item.series.label + " = " + y); 
     48       } 
     49    }); 
     50         
    2551        window.graphdata.finishGraph(); 
    2652        }