0

ZK Charts PointFormat

asked 2014-04-15 12:49:54 +0800

IngoB gravatar image IngoB flag of Germany
256 6

updated 2014-04-15 13:10:11 +0800

Hi,

I want to customize the output of the tooltip for a chartpoint.

So I use "setPointFormat" to set my desired format, but I can't find the %-Values for "hour" and "minute".

The X-Value is set like in this example (datetime), I use date.getTime() for the x-Value

charts.getTooltip().setPointFormat("{point.x:%A, %d.%m.%Y}");

...

Point point = new Point(1397558652984, 100.0);

where:

  • %A = day of the week
  • %d = day
  • %m = month
  • %Y = year

How do i get "EEEE, dd.MM.yyyy HH:mm" ? and is there a list for "all %" values ?

P.S.: ZK 7.0.1, Charts 1.0.0-BETA

delete flag offensive retag edit

1 Answer

Sort by » oldest newest most voted
2

answered 2014-04-15 14:06:29 +0800

IngoB gravatar image IngoB flag of Germany
256 6

updated 2014-04-15 14:11:11 +0800

http://php.net/manual/en/function.strftime.php

{point.x:%A, %d.%m.%y - %H:%M:%S}

Found it :)

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2014-04-15 12:49:54 +0800

Seen: 18 times

Last updated: Apr 15 '14

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More