GoogleChart.

Dependents:   GoogleChart_TestProgram

Revision:
0:ded8a44ff71f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/GoogleChartLineChart.cpp	Tue Aug 17 09:21:55 2010 +0000
@@ -0,0 +1,34 @@
+/**
+ * GoogleChart API interface driver. (Version 0.0.1)
+ *
+ * Copyright (C) 2010 Shinichiro Nakamura (CuBeatSystems)
+ * http://shinta.main.jp/
+ */
+
+#include "GoogleChartLineChart.h"
+
+GoogleChartLineChart::GoogleChartLineChart() : GoogleChart() {}
+GoogleChartLineChart::~GoogleChartLineChart() {}
+
+std::string GoogleChartLineChart::toString() {
+
+    std::string s = "";
+    s = s + baseURL;
+    s = s + "?";
+    s = s + toURL(paramAxis(axislist, MAX_AXIS));
+    s = s + "&";
+    s = s + toURL(paramSize(400, 320));
+    s = s + "&";
+    s = s + toURL(paramChartType(GoogleChart::LineChart));
+    s = s + "&";
+    s = s + toURL("chco=3D7930,FF9900");
+    s = s + "&";
+    s = s + toURL(paramDataSet(datalist, MAX_DATA));
+    s = s + "&";
+    s = s + toURL(paramTitle(title, 0x0000FF, 12.0));
+    s = s + "&";
+    s = s + toURL("chg=5,5,1,1");
+    s = s + "&";
+    s = s + toURL("chm=B,3D793022,0,0,0,1|B,FF990022,1,0,0,1");
+    return s;
+}