X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=gadget.xml;h=07a1aba0ebc63fd09ed161946e87e22e2df4d010;hb=7e4cb2695200ce31626010c2cf0574fc5a83c2a6;hp=83a793cb0368c1dae8fe6c5bb256d47d3106cac2;hpb=158e2643585a524d29894101daaf11735eec8cdb;p=dygraphs.git
diff --git a/gadget.xml b/gadget.xml
index 83a793c..07a1aba 100644
--- a/gadget.xml
+++ b/gadget.xml
@@ -5,13 +5,11 @@
title="dygraphs Gadget"
description="Interactive, zoomable chart"
author="Dan Vanderkam"
- author_email="danvdk@gmail.com"
+ author_email="dan@dygraphs.com"
thumbnail="http://dygraphs.com/thumbnail.png"
+ screenshot="http://dygraphs.com/screenshot.png"
+ author_location="US"
>
-
-
@@ -30,10 +28,6 @@
-
var gadgetHelper = null;
var table = null;
+ var kPadding = 5; // pixels of padding on any side of the chart.
_IG_RegisterOnloadHandler(loadVisualizationAPI);
@@ -66,8 +61,11 @@
function sendQuery() {
var prefs = new _IG_Prefs(); // User preferences
var chartDiv = _gel('chartdiv');
- chartDiv.style.width = document.body.clientWidth + 'px';
- chartDiv.style.height = document.body.clientHeight + 'px';
+ chartDiv.style.width = (document.body.clientWidth - 2 * kPadding) + 'px';
+ chartDiv.style.height = (document.body.clientHeight - 2 * kPadding) + 'px';
+ chartDiv.style.left = kPadding + 'px';
+ chartDiv.style.top = kPadding + 'px';
+ chartDiv.style.position = 'absolute';
chart = new DateGraph.GVizChart(chartDiv);
gadgetHelper = new google.visualization.GadgetHelper();