'Pie', ezcGraph::LINE => 'Line', ezcGraph::BAR => 'Bar', ); if ( isset( $chartTypeNames[$type] ) ) { $chartTypeName = $chartTypeNames[$type]; } else { $chartTypeName = 'Unknown'; } parent::__construct( "Invalid data set display type '$type' ('$chartTypeName') for current chart." ); } } ?>