Java prog#85. JFreeChart : Query (Sqlite,MySql) base charts

  Рет қаралды 80,875

ProgrammingKnowledge

ProgrammingKnowledge

Күн бұрын

Пікірлер: 43
@samgab113
@samgab113 11 жыл бұрын
Hello, I have some questions, the JDBCCategoryDataSet is a class you created? or it comes with the ojdb14.jar library or another library?? if you created it can you share the code? ChartFrame is a class that you created or it is from the library? if you created it can you show me the code? Assuming that it belongs to the library how does it handle the close button and can you edit the close button action? Thanks
@zukiyamaful
@zukiyamaful 11 жыл бұрын
i want to know this too,
@brainiacmarco4014
@brainiacmarco4014 6 жыл бұрын
That's a internal class of JFreeChart, after you install the library you get this class
@djnightcorezz787
@djnightcorezz787 5 жыл бұрын
@@brainiacmarco4014 u sure ? I did not find it
@brainiacmarco4014
@brainiacmarco4014 5 жыл бұрын
@@djnightcorezz787 hi, try type JDBCCategoryDa ,for example, and control space. Of Course you need have installed the library Jfreechart before.
@fahrulrozi409
@fahrulrozi409 3 жыл бұрын
hey i want to ask, if the database values changed, will the chart changes too without closing it /re-run first?
@anildhami448
@anildhami448 11 жыл бұрын
I want to know if the sql query is dynamic means if query is like this: String sql = SELECT date, pressure FROM Userinfo WHERE Pumpid = ?; then how to plot BarChart or LineCHart?
@enriquecruz7968
@enriquecruz7968 3 жыл бұрын
Amigo! Your video was very helpful. Thanks so much.
@fahrulrozi409
@fahrulrozi409 3 жыл бұрын
hey pls spill the class that you Imported in this code
@marulihasurungan5150
@marulihasurungan5150 3 жыл бұрын
why my JDBCCategoryDataset eror, how?
@banicamanga7720
@banicamanga7720 4 жыл бұрын
Thank you for the tutorial. How would you create a bar graph with different categories? For example for x-axis would have the year and each year split into male and female and the y-axis is the population
@TheWIECZNYMARZYCIEL
@TheWIECZNYMARZYCIEL 11 жыл бұрын
hi, what if some of the results which gave the table on chart?
@vanko26
@vanko26 8 жыл бұрын
Neat and simple! Thanks, mate!
@franckdoukaga5938
@franckdoukaga5938 11 жыл бұрын
Hi! just a help how can i create a line of integer according a serie time from a database example(92, 07:20:23),(80, 07:20:25),(85, 07:21:02).....
@NanaZimmerUCLEAR360
@NanaZimmerUCLEAR360 12 жыл бұрын
I liked this session. You've been helping me with my senior project. thank you
@djnightcorezz787
@djnightcorezz787 5 жыл бұрын
where Can I have the javaconnect class ? plz help
@colinandpeter
@colinandpeter 5 жыл бұрын
Trying to get my head into the space that's java after too many years away from programming. I can get the sql query to populate the chart just fine. Thank you for your very clear and concise tutorials;. But, a question and there had to be on. what if I want to filter or refine my database results. something like String query = "Select * from pumpdata where pressure = ?"; this would work under a preparedstatement where the ? is defined and passed into the string but what about when using JDBCCategoryDataset and at the moment I can not seem to find any way. So suggestions apart from a good night sleep. Are appreciated.
@colinandpeter
@colinandpeter 5 жыл бұрын
I found it, String query = "Select * from pumpdata where pressure = ' "+ pressureVariable +" ' ";
@rutujajambhulkar4709
@rutujajambhulkar4709 4 жыл бұрын
Is it working?@@colinandpeter
@TheHeaney01
@TheHeaney01 11 жыл бұрын
How do you put more than one line on the graph?
@Imtiaazs
@Imtiaazs 9 жыл бұрын
Will this also work with apache derby?
@brainiacmarco4014
@brainiacmarco4014 6 жыл бұрын
of course, postgrees, Oracle, SQLLite..
@ohoodalhindi6456
@ohoodalhindi6456 8 жыл бұрын
is it possible to explain "Guntt chart" .
@safedupkid
@safedupkid 8 жыл бұрын
Been having difficulty with this for a while, thanks for your simple and straight forward tutorial. How would I approach adding other data lines into the graph?
@rohitnarang007
@rohitnarang007 9 жыл бұрын
Hey ..I want to draw an organization chart. Is this possible with Jchart .
@TheWIECZNYMARZYCIEL
@TheWIECZNYMARZYCIEL 11 жыл бұрын
String sql = SELECT date, pressure FROM Userinfo WHERE Pumpid = ?; not chart :(
@exodus9776
@exodus9776 10 жыл бұрын
hi, this isnt working for me. i need help. it wont show the lines
@AngeloMaciRoberto
@AngeloMaciRoberto 10 жыл бұрын
Hi friend, this is the correct line. JDBCCategoryDataset dataset = new JDBCCategoryDataset(javaconnect.ConnectDB(), query);
@exodus9776
@exodus9776 10 жыл бұрын
thanks for the help !
@SANJEEVKUMAR-rh2wm
@SANJEEVKUMAR-rh2wm 10 жыл бұрын
with due respect, sir when i run program, in the chart only y-axis is showing others are not. and if you don't mind please share the JDBC connection class. thanking you..
@OmarAhmedRamadan
@OmarAhmedRamadan 8 жыл бұрын
Thanks Code try { String query ="select id,age from employees"; JDBCCategoryDataset dataset = new JDBCCategoryDataset(Connect.connect(),query); // from class Connect JFreeChart chart =ChartFactory.createLineChart("Query Chart", "id", "age", dataset, PlotOrientation.VERTICAL, false, true, true); BarRenderer render =null; CategoryPlot plot=null; render = new BarRenderer(); ChartFrame fram = new ChartFrame("Query Chart", chart); fram.setVisible(true); fram.setSize(600,650); } catch (Exception e) { }
@emqudrummer
@emqudrummer 10 жыл бұрын
So, you use mysql as database and jfreechart as library to make a chart bro? Can i make this cart working in web application?
@brainiacmarco4014
@brainiacmarco4014 6 жыл бұрын
for sure that's possible with Java EE
@anildhami448
@anildhami448 11 жыл бұрын
Is your problem solved? if yes how?
@rafare7
@rafare7 6 жыл бұрын
Very well , thanks brother.
@asadnizami5465
@asadnizami5465 6 жыл бұрын
can you give me a source code
@lingasrinureddy2002
@lingasrinureddy2002 9 жыл бұрын
hii.....i want full code programmes....
@esvaramoorthyvipisanan292
@esvaramoorthyvipisanan292 7 жыл бұрын
linga srinu reddy now do you have this code
@andreapaz4392
@andreapaz4392 7 жыл бұрын
thanks a lot!
@31khuutrongphuc18
@31khuutrongphuc18 Жыл бұрын
Thank you >_
@jeanrodrigues6249
@jeanrodrigues6249 2 жыл бұрын
WZ
@lingasrinureddy2002
@lingasrinureddy2002 9 жыл бұрын
hi
NetBeans BarChart using JFreeCharts for JPANEL
14:55
zFlexSW
Рет қаралды 41 М.
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
Graph Arduino Sensor Data with Java and JFreeChart
57:33
upgrdman
Рет қаралды 130 М.
Java prog#74. Reports : Itext :Getting started :Hello world Example
12:05
ProgrammingKnowledge
Рет қаралды 32 М.
Solving one of PostgreSQL's biggest weaknesses.
17:12
Dreams of Code
Рет қаралды 226 М.
6 SQL Joins you MUST know! (Animated + Practice)
9:47
Anton Putra
Рет қаралды 244 М.
SQL Databases with Pandas and Python - A Complete Guide
16:59
Rob Mulla
Рет қаралды 149 М.
Querying 100 Billion Rows using SQL, 7 TB in a single table
9:07
Arpit Agrawal (Elastiq.AI)
Рет қаралды 58 М.
Learn 12 Basic SQL Concepts in 15 Minutes (project files included!)
16:48