Rendering Middle Millisecond instead of first Millisecond

A discussion forum for JFreeChart (a 2D chart library for the Java platform).

Rendering Middle Millisecond instead of first Millisecond

Postby uli » Tue Oct 24, 2017 11:51 am

Hello,

I have a chart with XYLineAndShapeRenderer and a TimeSeries with RegularTimePeriods Day.
The shapes are rendered at the first millisecond of each day.
But I would like to have them rendered at the middle millisecond (at noon).

Is that a setting in the renderer?

I can make a workaround by using Second as RegularTimePeriod taking the middle millisecond of the day period.
But then the period is Second and not Day, which I would like to avoid.

Thanks!
uli
 
Posts: 23
Joined: Sat Mar 14, 2009 3:22 pm
Location: Berlin

Re: Rendering Middle Millisecond instead of first Millisecon

Postby david.gilbert » Tue Oct 24, 2017 5:22 pm

You can do that in the TimeSeriesCollection class by calling this method:

http://www.jfree.org/jfreechart/api/jav ... iodAnchor-
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Ask your company to buy the JFreeChart Developer Guide
:idea: Check out other products sold by my company Object Refinery Limited
david.gilbert
JFreeChart Project Leader
 
Posts: 11653
Joined: Fri Mar 14, 2003 10:29 am

Re: Rendering Middle Millisecond instead of first Millisecon

Postby uli » Wed Oct 25, 2017 12:45 pm

That's what I was looking for, thanks!
uli
 
Posts: 23
Joined: Sat Mar 14, 2009 3:22 pm
Location: Berlin


Return to JFreeChart

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Yahoo [Bot] and 8 guests