Commit 7b4bccd6 authored by Peining's avatar Peining
Browse files

Change pie chart color

parent de69ba12
......@@ -267,6 +267,13 @@ public class PlayerProfileController extends AbstractController{
new PieChart.Data("Abandonned", data.get(2))
int i = 0;
for (PieChart.Data eData: pieChartData){
Node node = eData.getNode();
node.getStyleClass().setAll("chart-pie", "data" + i, "default-color"+i%11);
//node.setStyle( "-fx-pie-color: #adff2f;");
public void loadStat(List<Integer> data1, List<Integer> data2,List<Integer> data3){
int i;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment