int main(int argc, char *argv[]) { createChart(0, "squareameter0.png"); createChart(1, "squareameter1.png"); createChart(2, "squareameter2.png"); createChart(3, "squareameter3.png"); return 0; }
int main(int argc, char *argv[]) { createChart(0, "shadowpie0.png"); createChart(1, "shadowpie1.png"); createChart(2, "shadowpie2.png"); createChart(3, "shadowpie3.png"); return 0; }
int main(int argc, char *argv[]) { createChart(0, "colorpie0.gif"); createChart(1, "colorpie1.gif"); createChart(2, "colorpie2.gif"); createChart(3, "colorpie3.gif"); return 0; }
int main(int argc, char *argv[]) { createChart(0, "donutwidth0.png"); createChart(1, "donutwidth1.png"); createChart(2, "donutwidth2.png"); createChart(3, "donutwidth3.png"); createChart(4, "donutwidth4.png"); return 0; }
int main(int argc, char *argv[]) { createChart(0, "threedanglepie0.png"); createChart(1, "threedanglepie1.png"); createChart(2, "threedanglepie2.png"); createChart(3, "threedanglepie3.png"); createChart(4, "threedanglepie4.png"); createChart(5, "threedanglepie5.png"); createChart(6, "threedanglepie6.png"); return 0; }
int main(int argc, char *argv[]) { createChart(0, "blackvbarmeter0.png"); createChart(1, "blackvbarmeter1.png"); createChart(2, "blackvbarmeter2.png"); createChart(3, "blackvbarmeter3.png"); createChart(4, "blackvbarmeter4.png"); createChart(5, "blackvbarmeter5.png"); return 0; }
int main(int argc, char *argv[]) { createChart(0, "pieshading0.png"); createChart(1, "pieshading1.png"); createChart(2, "pieshading2.png"); createChart(3, "pieshading3.png"); createChart(4, "pieshading4.png"); createChart(5, "pieshading5.png"); return 0; }
bool ChartsScene::init() { if (Layer::init()==false) { return false; } auto viewSize=Director::getInstance()->getVisibleSize(); _background=Background::create(); addChild(_background); _backBut=ui::Button::create("back.png"); _backBut->setAnchorPoint(Vec2(0,1)); _backBut->setPosition(Vec2(10,viewSize.height-10)); addChild(_backBut); _newScoreTitle=Sprite::create("new_score.png"); _newScoreTitle->setAnchorPoint(Vec2(0,0.5f)); _newScoreTitle->setPosition(Vec2(10,viewSize.height/2+300)); addChild(_newScoreTitle); _newScore=ui::TextAtlas::create("0", "number.png", 63, 83, "0"); _newScore->setPosition(Vec2(viewSize.width/2,viewSize.height/2+200)); auto newScore=UserDefault::getInstance()->getIntegerForKey(NEW_SCORE, 0); _newScore->setString(StringUtils::format("%d",newScore)); this->addChild(_newScore); _chartsScoreTitle=Sprite::create("charts_score.png"); _chartsScoreTitle->setAnchorPoint(Vec2(0,0.5f)); _chartsScoreTitle->setPosition(Vec2(10,viewSize.height/2+100)); addChild(_chartsScoreTitle); for (int i=0; i<5; i++) { int score=UserDefault::getInstance()->getIntegerForKey(StringUtils::format("%s%d",RANK_SCORE,i).c_str(), 0); auto row=createChart(i,score); row->setPosition(Vec2(viewSize.width/2,viewSize.height/2+50-100*i)); addChild(row); } _backBut->addClickEventListener([](Ref* ref) { SceneMediator::getInstance()->gotoStartScene(); }); return true; }
void UpgradeMessage::convert034 () { // get all chart paths QStringList symbolList; Config config; QString dataPath; config.getData(Config::DataPath, dataPath); int t = dataPath.find("/data1/", 0, TRUE); dataPath.replace(t + 5, 1, "0"); Traverse trav(Traverse::File); trav.traverse(dataPath); trav.getList(symbolList); QString s; config.getData(Config::IndexPath, s); index.open(s); int loop; for (loop = 0; loop < (int) symbolList.count(); loop++) { progBar->setProgress(loop, (int) symbolList.count()); if (createDir(symbolList[loop])) continue; qDebug("Converting %s", symbolList[loop].latin1()); if (createChart(symbolList[loop])) continue; } index.close(); copyFiles(); progBar->setProgress((int) symbolList.count(), (int) symbolList.count()); qDebug("Conversion complete"); }
void SignalDataVisualizer::initiate() { setWindowIcon(QIcon(":/Qt/resources/STACCATO.png")); setWindowTitle("STACCATO Visualizer"); createActions(); createMenus(); createDockWindow(); // Chart Properties myChart2D = new QChart(); myAxisX = new QValueAxis(); myAxisY = new QValueAxis(); chartView2D = new ChartView(myChart2D); chartView2D->setRubberBand(QChartView::RectangleRubberBand); // For Rectangle Draw Zoom mySeries2scatter = new QScatterSeries(); // Selection Points mySnapSeries2scatter = new QScatterSeries(); // Snapped Point myAxisLogX = new QLogValueAxis(); // Logarthmic X-Axis createChart(); setCentralWidget(chartView2D); }
int main() { createChart("../storage/test.json"); return 0; }