Raj
Raj

Reputation: 440

to draw graph with mysql data

I need to draw a line graph with mysql data which has two columns. some one help me with a sample code.

Upvotes: 0

Views: 4084

Answers (3)

K_U
K_U

Reputation: 17762

Are the two columns the x and y axes of the graph? Why is it important that the data is present in mysql?

Anyways, for reading the data, you need to use jdbc: jdbc tutorial (If you are using Java)

For building the actual graph, I would recommend JFreeChart.

Upvotes: 1

Harry Joy
Harry Joy

Reputation: 59660

There are number of options available to draw line chart in Java:

  1. Easy charts
  2. jFree Charts
  3. jCharts
  4. Chart 2D
  5. Google Chart API

Upvotes: 2

npinti
npinti

Reputation: 52185

Have you tried looking at JFreeChart?

Upvotes: 1

Related Questions