Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: EthernetNetIf mbed
Diff: GoogleChart/GoogleChartLineChart.cpp
- Revision:
- 0:77d8b45a8f42
diff -r 000000000000 -r 77d8b45a8f42 GoogleChart/GoogleChartLineChart.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/GoogleChart/GoogleChartLineChart.cpp Wed Aug 11 01:53:35 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;
+}