sangohan / gwt-chronoscope

Automatically exported from code.google.com/p/gwt-chronoscope
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Bug in crosshair date format #148

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. set a custom format
ChronoscopeOptions.setCrosshairLabels("dd-MMM-yyyy HH:mm");

What is the expected output? What do you see instead?
The vertical crosshair should show the date in the requested format. However, 
it always returns to the default "yy/MMM/dd HH:mm"

What version of the product are you using? On what operating system?
Latest source

Please provide any additional information below.
DefaultXYPlot.init() is called more than once. The first call causes 
lastCrosshairDateFormat to update with the custom value, and this prevents 
crosshairFmt from getting updated after the second call to init() and onward.

A quick and dirty patch:
In drawCrossHairs() I changed the line:
if (ChronoscopeOptions.getCrossHairLabels() != lastCrosshairDateFormat) {

to:
if (true) {

Original issue reported on code.google.com by tom...@gmail.com on 5 Oct 2010 at 12:57

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r1266.

Original comment by manuel.carrasco.m on 24 Oct 2010 at 10:12

GoogleCodeExporter commented 9 years ago
Note that in the trunk setCrosshairLabels has been replaced by 
setCrosshairDateTimeFormat

Thx for reporting
- Manolo

Original comment by manuel.carrasco.m on 24 Oct 2010 at 10:13