java - JFreechart XYline connect with database -
I created a graph with a connection to the database as follows:
string s = jTSensor. GetText (); String query = "select date, dual_points from records where id sensor like '+++"; "; JDBCCategory Dataset dataset = new JDBCCategoryDataset (CriaConexaokgetConexao (), query); Geoffrey chart chart = Chartfractorkkraditlain chart (" Records "," date "," Dew Point ", datasets, Plotoriatteshnkoartisiel, false, true, truth); time renderer renderer = nULL; category plot Plot = null; renderer = new Barrenderr (); Chartfrem frame = new Chartfrem ( "Records" chart); FrameksetVisible (right); frame.setSize (400,650); < / Code>
But to show only one These returns. I believe that the pursuit of other data in the database and the results show possible with other lines, but I'm not successful. Can someone help me please
Greetings < / p>
Watch createXYLineChart . already for database access one is
JDBCXYDataset
. XYDataset
supports a series of data, while category datasets You are not using (as far as I know).
Comments
Post a Comment