setTimeAxis problems

17 views
Skip to first unread message

Igor Artamonov

unread,
Nov 6, 2016, 5:24:01 PM11/6/16
to rrd4j-discuss
I am porting my old Tcl app to Java. The app takes RRD files for one month and plot them for
a HTML report.  Everything went fine until I called setTimeAxis.

RRDTOOL command option that I was used before is:

--x-grid DAY:1:DAY:1:DAY:1:86400:%d

I converted it into a following call:

gDef.setTimeAxis(RrdGraph.DAY, 1, RrdGraph.DAY, 1, RrdGraph.DAY, 1, 86400, "%d");

It fills all image field with vertical lines and text field under it looks like a black line.
I tried miscellaneous  setTimeAxis arguments but with no effect. The result is always the same.

Without x-grip command RRD4j and RRDTOOL behave identically and plot the same graphics
with the same wrong text under X-axis.

I enclosed two example graphics to show what has happened. The only difference is the presence of
setTimeAxis call for the wrong one.




inet-with-setTimeAxis.png
inet-without-setTimeAxis.png
Reply all
Reply to author
Forward
0 new messages