Rendering Middle Millisecond instead of first Millisecond

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Post Reply
uli
Posts: 23
Joined: Sat Mar 14, 2009 3:22 pm
Location: Berlin

Rendering Middle Millisecond instead of first Millisecond

Post by 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!

david.gilbert
JFreeChart Project Leader
Posts: 11680
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Re: Rendering Middle Millisecond instead of first Millisecon

Post by 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

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

Re: Rendering Middle Millisecond instead of first Millisecon

Post by uli » Wed Oct 25, 2017 12:45 pm

That's what I was looking for, thanks!

Post Reply