$max_items) { //Pops an element off the array until the array is small enough array_pop ($data); } $chart = new ezcGraphPieChart(); $chart->renderer = new ezcGraphRenderer3d(); $chart->driver = new ezcGraphGdDriver(); $chart->palette = new customPalette(); $chart->options->label = '%2$d (%3$.1f%%) '; $chart->legend->landscapeSize = .05; $chart->options->font = 'FreeSans.ttf'; $chart->options->percentThreshold = 0.01; $chart->legend = true; $chart->legend->position = ezcGraph::RIGHT; $chart->data['datos'] = new ezcGraphArrayDataSet($comb); $chart->data['datos']->highlight = true; $chart->data['datos']->highlight['SYSTEM'] = false; $chart->renderToOutput( 300, 200 ); } ?>