Chart « Development « Java Swing Q&A





1. Pie, Bar, Line charts in java?    stackoverflow.com

I want to use Pie, Bar, Line charts in java. What is the best API to use them? Is there any API by Sun to create these types of charts?

2. How do I create a pie chart in Java    stackoverflow.com

I want to create a pie chart that displays percentages. How do I create a pie chart using JFrame in Java? This is what I have so far:

import javax.swing.*;
import java.awt.*;
import java.util.*;

public class ...

3. charts    coderanch.com

4. Java API chart for Swing    coderanch.com

5. Charts in Java    coderanch.com

Hi Deeksha I've been using the JClass Chart and I load the data to the Chart by using a TableModel by extending the AbstractTableModel class. But the problem I'm facing is that only the values for the Y axis are generated according to the requirement whereas the X axis values are generated randomly by the Chart. I happened to search for ...

6. EventHandling on pi-chart    coderanch.com

I use a panel on which i add mouselistener so i can recive evnt of mouse over. i made a pi-chart on panel using drawArc method of Graphics. I draw each sector of pi chart with different color (by changing the drawing color). means i get a chart consist on 4 sector each sector shows different color when mouse move over ...

7. Chart problem    coderanch.com

Hi I've designed a line chart using the swing component JChart. 1.Now, when the mouse is moved over the chart, I need to capture the X & Y Values & display it on a label. How do I do this ?!! 2. How do I set the X & Y labels for the chart ?!! something like a rowheader in a ...

8. Chart problem .. I would really appreciate some help !!    coderanch.com

Hi all I guess this is the nth time, I would be posting this problem. Okay, now the requirements for my chart is as follows : 1. It should be able to support multiple graphs. 2. Must support multiple Y-Axis Labels. If suppose, I need a particular coordinate value to be highlighted in the graph, a label displaying the same must ...

9. get a region of a pie chart    coderanch.com





10. Alternative to Sitraka chart and table    coderanch.com

11. Bar chart in Java    coderanch.com

12. Looking for Java Chart info    coderanch.com

Hi David, How do you want the missing values to be handled? In JFreeChart, we use null to represent a missing or unknown value - this usually results in a gap being displayed (which may or may not be different to a zero, depending on the chart type). Are you looking for a feature that displays some kind of marker to ...

13. Chart's    coderanch.com

14. Line chart    coderanch.com

Hi, I try to paint a simple line chart (more or less looking like a trapeze) for displaying data. Furthermore, I want to be able to alter the trapez (and therefore the underlying data), but I have no idea how to implement this... My first try was painting the lines with Graphics#drawLine(int, int, int, int) but the result is ... ugly. ...

15. I want to insert Data into the pie chart.I have put the code to gernate the Pie    coderanch.com

Hi i have a program i want to show data in each pie for which that that pie is constructed. thaks amit ===================================== import java.awt.*; import java.awt.event.*; import java.awt.font.*; import java.awt.geom.*; import java.util.*; import javax.swing.*; import javax.swing.border.*; public class Charts2D extends JFrame { public Charts2D() { super("2D Charts"); setSize(720, 280); getContentPane().setLayout(new GridLayout(1, 3, 10, 0)); getContentPane().setBackground(Color.white); //int nData = 10; int[] ...

16. code for Bar chart    coderanch.com





17. pie chart    coderanch.com

import java.awt.*; import java.awt.event.*; import java.awt.font.*; import java.awt.geom.*; import java.awt.image.BufferedImage; import java.text.NumberFormat; import javax.swing.*; public class PieChart { public static void main(String[] args) { JFrame f = new JFrame(); f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); f.getContentPane().add(new PieChartPanel()); f.setSize(400,400); f.setLocation(200,200); f.setVisible(true); } } class PieChartPanel extends JPanel { BufferedImage image; final int PAD = 30; Font font; NumberFormat nf; boolean showConstructionMarkers; public PieChartPanel() { font = new ...

18. Create Bar Chart    coderanch.com

I see that the link I posted does not work /** * File: PieBarGraph.java * This program takes user input and creates a pie and/or bar chart * Copyright (c) 2002-2003 Advanced Applications Total Applications Works. * (AATAW) All Rights Reserved. * * AATAW grants you ("Licensee") a non-exclusive, royalty free, license to use, * modify and redistribute this software in ...

19. iReport Chart.    coderanch.com

Can anybody help me how can i call Chart report from my application. I am using netBeans 3.5. For chart purpose i have started using/testing iReport. My application can not run this abc.xml file but my other report are running. Please help me how can i run this report. java.util.Map parameters = new java.util.HashMap(); parameters.put("strCompany" , cnn.getCompanyName().toUpperCase()); parameters.put("strUnit" , cnn.getUnitName().toUpperCase()); ResultSet ...

20. Custom Charts    coderanch.com

Hi, I am developing an application that requires me to draw charts. This is the functionality i would be requiring. A bid image with lots of charts in it. This big image should be scrollable. Each of the charts in the big image should let me have tool tip. This is what i have as a plan, For the big image ...

21. Charts in JAVA    coderanch.com

22. chart    coderanch.com

23. Pie chart    coderanch.com

25. Pie charts    coderanch.com

26. Organisational Chart API    coderanch.com

27. Java Framework for Chart based Reports    coderanch.com

Hi, I will be developing a swing application for chart based reports. For that i chose jfreechart. In that application reports will be generated daily, weekly, monthly and yearly basis for a particular entity or sub entity. I have to collect the data from the database. Even i have specific requirement like zoom in/zoom out, not the actual data zoom in. ...

28. place component in the centre of polar chart    coderanch.com

I am required to place a component right in the middle of the polar chart made using Jfreechart.what is the way to go about it?i am not familiar with using the Layeredpane which maybe needed for the purpose.can someone help me? I have to place the enitire thing later on a frame.So i would have to create a Jpanel.but i'm not ...

29. Java charts recommendation needed    coderanch.com

Hi all, I need to use charts in my project (nothing fancy, in terms of graphics, beauty, and the like.) I looked a bit on the web and there are several packages available so I'm looking for a recommendation. Which one is good? How is jfreechart? I'm not sure yet how will I display the charts -- in an applet or ...

31. Java Chart Component    java-forums.org

32. Pie Chart GUI Mortgage Calculator Issue    forums.oracle.com

33. Bar chart/GUI    forums.oracle.com

Hey guys, I've got a pretty good understanding of Java, but now I'm delving into GUIs. I'm working on a class project where I'm going to be taking in some numerical data and making a bar chart. I pretty much get the basics of how to paint stuff in a JFrame or whatever, but I was wondering if my approach makes ...