GoogleChart.
Dependents: GoogleChart_TestProgram
GoogleChartLineChart.cpp
- Committer:
- shintamainjp
- Date:
- 2010-08-17
- Revision:
- 0:ded8a44ff71f
File content as of revision 0:ded8a44ff71f:
/** * 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; }