السلام عليكم
لو كان لدي مجموعة من البيانات
و اريد تمثيلها بالقطاع الدائري
ماهي الطريقة
لو كان لدي مجموعة من البيانات
و اريد تمثيلها بالقطاع الدائري
ماهي الطريقة
Grid.SetColumnWidth("Grid1", 0, 1);
Grid.SetColumnWidth("Grid1", 1, 80) ;
Grid.SetColumnWidth("Grid1", 2, 30)
color = {"255","16711680","6723891","16751052","65535","16763904","52479","32896","8388736","26367"};
PieChart.SetTitle("Plugin1", "Youssef brahim");
e=1;
for i=1, Grid.GetRowCount("Grid1") do
yousef = Grid.GetCellText("Grid1", i, 1);
brahim = Grid.GetCellText("Grid1", i, 2);
PieChart.InsertItem("Plugin1", yousef, yousef, brahim, color[e]); e=e+1
if e > #color then e=1 end
end
grid.setcolumnwidth("grid1", 0, 1);
grid.setcolumnwidth("grid1", 1, 80) ;
grid.setcolumnwidth("grid1", 2, 30)
color = {"255","16711680","6723891","16751052","65535","16763904","52479","32896","8388736","26367"};
piechart.settitle("plugin1", "youssef brahim");
e=1;
for i=1, grid.getrowcount("grid1") do
yousef = grid.getcelltext("grid1", i, 1);
brahim = grid.getcelltext("grid1", i, 2);
piechart.insertitem("plugin1", yousef, yousef, brahim, color[e]); e=e+1
if e > #color then e=1 end
end
تعليق