2019-08-30 01:46 AM
I refer to the source code for "Model UI Demo 1 TouchGFX".
I would like to enlarge the PieChart, but I can't figure out how to do it.
In the GraphView::setupScreen function I modified the values for center, height and width.
// GraphView.cpp - GraphView::setupScreen
pieChartX = 0;
pieChartY = -16;
donutX = pieChartX;
donutY = 34;
pieChart.setPosition(pieChartX, pieChartY, 300, 300); /* <- modified */
pieChart.setCenter(150, 150); /* <- modified */
pieChart.setPieChart(0, 0, 0, 0);
pieChart.recalculatePieChart();
However, the PieChart radius does not change.
how to do ?
//Antonello
Solved! Go to Solution.
2019-08-30 02:06 AM
Solved!
Calls to startPieChartAnimation method must also be changed (toMinRadius toMaxRadius)
Thanks
//Antonello
2019-08-30 02:06 AM
Solved!
Calls to startPieChartAnimation method must also be changed (toMinRadius toMaxRadius)
Thanks
//Antonello
2019-09-02 01:23 AM
Great. Glad you found that :)
/Martin