Código PHP:
import org.jfree.chart.ChartFactory;
import org.jfree.chart.ChartUtilities;
import org.jfree.chart.JFreeChart;
import java.io.File;
import java.io.*;
import org.jfree.data.time.Day;
import org.jfree.data.time.*;
public class TimeSeries {
public static void main(String[] args) {
// Create a time series chart
org.jfree.data.time.TimeSeries pop = new org.jfree.data.time.TimeSeries(”Linea de Crecimiento”, Day.class);
pop.add(new Day(2, 1, 2007), 100);
pop.add(new Day(2, 2, 2007), 150);
pop.add(new Day(2, 3, 2007), 200);
pop.add(new Day(2, 4, 2007), 250);
pop.add(new Day(2, 5, 2007), 300);
pop.add(new Day(2, 6, 2007), 1500);
TimeSeriesCollection dataset = new TimeSeriesCollection();
dataset.addSeries(pop);
JFreeChart chart = ChartFactory.createTimeSeriesChart(
“Crecimiento Ubuntu”,
“Fecha”,
“Numero Usuarios”,
dataset,
true,
true,
false);
try {
ChartUtilities.saveChartAsJPEG(new File(”/home/jose/Desktop/TimeSeries.jpg”), chart, 500, 300);
} catch (IOException e) {
System.err.println(”Error creando grafico.”);
}
}}
inclui los 2 jar jcommon-1.0.12.jar y jfreechart-1.0.9-demo.jar pero los "import" me tiran error todos menos import java.io.File;
import java.io.*;
que estoy haciendo mal?