Hello, I need your help.
what function should be overwritted to get my objective?
I've tried to overwritte refreshTicks method but I had problems with categoryLabelPositions because it has private access.
I'm waitting for your answer.
Thanks
Search found 12 matches
- Tue Oct 23, 2007 4:53 pm
- Forum: JFreeChart
- Topic: CategoryDomain
- Replies: 2
- Views: 3242
- Wed Jun 27, 2007 10:23 am
- Forum: JFreeChart
- Topic: CLICK in a categoryplot
- Replies: 2
- Views: 3442
- Wed Jun 27, 2007 9:04 am
- Forum: JFreeChart
- Topic: CLICK in a categoryplot
- Replies: 2
- Views: 3442
CLICK in a categoryplot
Hello, I have a LineChart. When I click in a point in chart I'd like to get its category. I've achieved my aim in a XYPlot with the following code: public void chartProgress(ChartProgressEvent event) { if (event.getType() != ChartProgressEvent.DRAWING_FINISHED) { return; } if (this.panel != null) { ...
- Mon Jun 25, 2007 5:57 pm
- Forum: JFreeChart
- Topic: CategoryDomain
- Replies: 2
- Views: 3242
CategoryDomain
Hello,
I've a CategoryPlot.
There're many Categories (480 diferents) in domain, how can I do to display only some categories(for example 6 category, one of every 80 categories)?
Thank's
I've a CategoryPlot.
There're many Categories (480 diferents) in domain, how can I do to display only some categories(for example 6 category, one of every 80 categories)?
Thank's
- Mon Jun 25, 2007 9:50 am
- Forum: JFreeChart
- Topic: PROBLEM with dates from database in a table
- Replies: 5
- Views: 6095
Hello, I found an strange behaviour Calendar cal = new GregorianCalendar(); Calendar cal2 = new GregorianCalendar(); cal= new java.util.GregorianCalendar(2003,2,30,1,50,0) ; cal2= new java.util.GregorianCalendar(2003,2,30,2,0,0) ; System.out.println(new Minute(new Date(cal.getTimeInMillis()))); Syst...
- Fri Jun 22, 2007 10:01 am
- Forum: JFreeChart
- Topic: PROBLEM with dates from database in a table
- Replies: 5
- Views: 6095
Hello, I' ve created a dataset from a DB access public XYDataset createDataset(int min, int max) throws SQLException { JDBCXYDataset data = null; try { Driver d = (Driver)Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance(); } catch (Exception e) { System.out.println(e); } // GET CONNECTION C...
- Fri Jun 22, 2007 9:40 am
- Forum: JFreeChart
- Topic: PROBLEM with dates from database in a table
- Replies: 5
- Views: 6095
PROBLEM with dates from database in a table
I've a problem with the dates. I've an access database and one of its fields is defined as date/hour. I've built a table and my problem is that only displays date and no hour. I tried to implement the code following: public Class getColumnClass(int c) { if (c==1) return Minute.class; if ((c==2)|(c==...
- Thu Jun 07, 2007 3:33 pm
- Forum: JFreeChart
- Topic: Scroll chart
- Replies: 0
- Views: 2006
Scroll chart
Hello, I'm trying to do a scroll in a chart. My chart: JFreeChart chart1 = ChartFactory.createTimeSeriesChart( "Gráfico", // chart title "Fecha", "Velocidad m/s", data, // data true, // include legend true, false ); where data is a JDBCXYDataset. data = new JDBCXYDataset(conecction); String sql = "S...
- Thu May 31, 2007 8:40 am
- Forum: JFreeChart
- Topic: CLICK IN CHART- CAPTURE DATA
- Replies: 2
- Views: 2997
Thank you very much! OK, but now I need index of every date in dataset. I've a problem, I can't use series.getIndex(RegularPeriod) because my XYdataset was obtain like JDBCXYDataset. How I could do it? public void chartProgress(ChartProgressEvent event) { if (event.getType() != ChartProgressEvent.DR...
- Wed May 30, 2007 10:06 am
- Forum: JFreeChart
- Topic: CLICK IN CHART- CAPTURE DATA
- Replies: 2
- Views: 2997
CLICK IN CHART- CAPTURE DATA
Hello, I’m telling you my problem! I need capture one event (click in one point of chart) to tick this point in a Jtable. But domain are dates…. double xx = plot.getDomainCrosshairValue(); How could I capture the dates? Here I put a piece of my code: public void chartProgress(ChartProgressEvent even...
- Fri May 25, 2007 9:14 am
- Forum: JFreeChart
- Topic: Catch tooltips
- Replies: 1
- Views: 2243
Catch tooltips
Hello,
I'd like to catch text that is displayed when the mouse pointer “hovers” over a data item in a chart . ¿Is it possible?
Thank's
I'd like to catch text that is displayed when the mouse pointer “hovers” over a data item in a chart . ¿Is it possible?
Thank's
- Fri May 18, 2007 8:09 am
- Forum: JFreeChart
- Topic: Problems with DomainAxis
- Replies: 0
- Views: 1752
Problems with DomainAxis
Hello, I’m using a connection DataBase to obtain CategoryDataset. So I create a chart (ChartFactory.createLineChart) and I customize range axis but I’ve problem with domain Axis. CategoryDataset ds1=createDataset(); JFreeChart chart1 = ChartFactory.createLineChart("xxxx", "Fecha", "Velocidad m/s", d...