cancel
Showing results for 
Search instead for 
Did you mean: 

PieChart Resize

ALomb
Senior

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

1 ACCEPTED SOLUTION

Accepted Solutions
ALomb
Senior

Solved!

Calls to startPieChartAnimation method must also be changed (toMinRadius toMaxRadius)

Thanks

//Antonello

View solution in original post

2 REPLIES 2
ALomb
Senior

Solved!

Calls to startPieChartAnimation method must also be changed (toMinRadius toMaxRadius)

Thanks

//Antonello

Martin KJELDSEN
Chief III

Great. Glad you found that :)

/Martin