options->fillLines = 220; $graph->palette = new ezcGraphPaletteBlack(); $graph->title = 'Numeric data on logaritmical axis'; $graph->legend->position = ezcGraph::BOTTOM; $graph->xAxis = new ezcGraphChartElementNumericAxis(); $graph->yAxis = new ezcGraphChartElementLogarithmicalAxis(); $graph->data['x^2'] = new ezcGraphNumericDataSet( -10, // Start value 10, // End value create_function( '$x', 'return pow( $x, 2 ) + 1;' ) ); $graph->data['x^2']->symbol = ezcGraph::NO_SYMBOL; $graph->data['x^4'] = new ezcGraphNumericDataSet( -10, // Start value 10, // End value create_function( '$x', 'return pow( $x, 4 ) + 1;' ) ); $graph->data['x^4']->symbol = ezcGraph::NO_SYMBOL; $graph->data['x^6'] = new ezcGraphNumericDataSet( -10, // Start value 10, // End value create_function( '$x', 'return pow( $x, 6 ) + 1;' ) ); $graph->data['x^6']->symbol = ezcGraph::NO_SYMBOL; $graph->driver->options->assumedTextCharacterWidth= .6; $graph->render( 500, 250, 'numeric_logarithmical_line_chart.svg' ); ?>