Search found 12 matches
- Tue Nov 30, 2010 6:21 pm
- Forum: JFreeChart
- Topic: TimeSeries + Millisecond timezone shift
- Replies: 5
- Views: 7907
Re: TimeSeries + Millisecond timezone shift
Yes, that worked wonderfully. Indeed, I'm able to use that to switch back and forth from GMT to the system default, which is the local timezone. Awesome! Many, many thanks!
- Tue Nov 30, 2010 4:58 am
- Forum: JFreeChart
- Topic: TimeSeries + Millisecond timezone shift
- Replies: 5
- Views: 7907
Re: TimeSeries + Millisecond timezone shift
Oh, wow! I explicitly set all of the time zones all the way from the database, through the TimeSeries and the DateAxis. I set them all to GMT because the dates in the database are GMT. The data is still being converted to MST when displayed but now the crosshair access works perfectly! Not sure how ...
- Tue Nov 30, 2010 4:25 am
- Forum: JFreeChart
- Topic: TimeSeries + Millisecond timezone shift
- Replies: 5
- Views: 7907
Re: TimeSeries + Millisecond timezone shift
Yes, the DateAxis is using the same SimpleDateFormatter I provided in the first post(see code below), which simply displays the time zone provided in the TimeSeries. And, yes, I originally used the default constructor for Millisecond. Would not the default constructor for DateAxis simply use the tim...
- Mon Nov 29, 2010 4:00 am
- Forum: JFreeChart
- Topic: TimeSeries + Millisecond timezone shift
- Replies: 5
- Views: 7907
TimeSeries + Millisecond timezone shift
I have a database where I'm extracting data to generate an XYPlot where the x-axis is a TimeSeries. When I read the data into my software into a GregorianCalendar value and display the date/time, I get the correct value (relative to the database values). Then I load that value into a Millisecond obj...
- Fri Apr 02, 2010 6:04 pm
- Forum: JFreeChart
- Topic: Dynamically changing legend text
- Replies: 5
- Views: 8898
Re: Dynamically changing legend text
Sometimes you get bit by the simplest things. My compiler didn't like XYDataset but since TimeSeriesCollection is an XYDataset I thought that was what it was looking for. Instead I simply left out the proper import statement to get to the XYDataset. :oops: Everything is copacetic now. Thanks a milli...
- Thu Apr 01, 2010 10:31 pm
- Forum: JFreeChart
- Topic: Dynamically changing legend text
- Replies: 5
- Views: 8898
Re: Dynamically changing legend text
I missed that method in between all the deprecated ones. :oops: Here is what I wrote for a similar case. Do you see why this is not working? XYBarRenderer xyBarRenderer = new XYBarRenderer(); xyBarRenderer.setDrawBarOutline( false ); xyBarRenderer.setBaseToolTipGenerator( StandardXYToolTipGenerator....
- Wed Mar 31, 2010 10:16 pm
- Forum: JFreeChart
- Topic: Dynamically changing legend text
- Replies: 5
- Views: 8898
Re: Dynamically changing legend text
Ok, so I've learned a bit more but am still frustrated. I learned that the XYPlot has a method called getLegendItems() which returns a LegendItemCollection and within there is a get( int index ) method that allows me to get a LegendItem. That class has a getLabel() method but there is no setLabel() ...
- Tue Mar 30, 2010 3:35 am
- Forum: JFreeChart
- Topic: Dynamically changing legend text
- Replies: 5
- Views: 8898
Dynamically changing legend text
I have an application where I'd like to dynamically change the legend text on an XYPlot using XYLineAndShapeRenderer and TimeSeriesCollection. I'm only defining one TimeSeries on the TimeSeriesCollection and simply running a variety of models to generate the data. It's the name of the model that I w...
- Wed Mar 03, 2010 11:02 pm
- Forum: JFreeChart
- Topic: TimeSeries notify and auto range problems
- Replies: 1
- Views: 3149
Re: TimeSeries notify and auto range problems
Work Around Found: this should be considered a bug but it looks like the solution to the problem was simply to fire the fireSeriesChange() method twice after loading the data for the upper chart/data series. Now all the data appears on the charts as expected and in a timely manner.
- Wed Mar 03, 2010 12:19 am
- Forum: JFreeChart
- Topic: TimeSeries notify and auto range problems
- Replies: 1
- Views: 3149
TimeSeries notify and auto range problems
I'm creating a CombinedDomainXYPlot with a line chart above a bar chart with a TimeSeries domain axis. this.upperDataSet.addSeries( this.priceTimeSeries ); this.lowerDataSet.addSeries( this.volumeTimeSeries ); XYToolTipGenerator toolTipGenerator = StandardXYToolTipGenerator.getTimeSeriesInstance(); ...
- Sun Feb 21, 2010 8:52 am
- Forum: JFreeChart
- Topic: Marker Size
- Replies: 3
- Views: 6101
Re: Marker Size
Solution: I was close before but you have to replace the Shape in the XYLineAndShapeRenderer rather than modifying the existing one, which you apparently can't do. Getting the Shape in my earlier posting showed that the default shape for series 0 is a Rectangle2D.Double. For other series you'll need...
- Sat Feb 20, 2010 10:39 pm
- Forum: JFreeChart
- Topic: Marker Size
- Replies: 3
- Views: 6101
Re: Marker Size
I'm having the same problem. I tried the following code that logically looks like it should work but doesn't. I'm curious why it doesn't. JFreeChart chart = ChartFactory.createTimeSeriesChart( "", // title "Date", // x-axis label "Price", // y-axis label this.upperDataSet, // data true, // create le...