GoogleChart.
Dependents: GoogleChart_TestProgram
GoogleChartLineChart.cpp
00001 /** 00002 * GoogleChart API interface driver. (Version 0.0.1) 00003 * 00004 * Copyright (C) 2010 Shinichiro Nakamura (CuBeatSystems) 00005 * http://shinta.main.jp/ 00006 */ 00007 00008 #include "GoogleChartLineChart.h" 00009 00010 GoogleChartLineChart::GoogleChartLineChart() : GoogleChart() {} 00011 GoogleChartLineChart::~GoogleChartLineChart() {} 00012 00013 std::string GoogleChartLineChart::toString() { 00014 00015 std::string s = ""; 00016 s = s + baseURL; 00017 s = s + "?"; 00018 s = s + toURL(paramAxis(axislist, MAX_AXIS)); 00019 s = s + "&"; 00020 s = s + toURL(paramSize(400, 320)); 00021 s = s + "&"; 00022 s = s + toURL(paramChartType(GoogleChart::LineChart)); 00023 s = s + "&"; 00024 s = s + toURL("chco=3D7930,FF9900"); 00025 s = s + "&"; 00026 s = s + toURL(paramDataSet(datalist, MAX_DATA)); 00027 s = s + "&"; 00028 s = s + toURL(paramTitle(title, 0x0000FF, 12.0)); 00029 s = s + "&"; 00030 s = s + toURL("chg=5,5,1,1"); 00031 s = s + "&"; 00032 s = s + toURL("chm=B,3D793022,0,0,0,1|B,FF990022,1,0,0,1"); 00033 return s; 00034 }
Generated on Tue Jul 12 2022 21:12:19 by
