[英]Hour:Minute format on an APEX chart is not possible
I use Oracle APEX (v22.1) and on a page I created a (line) chart, but I have the following problem for the visualization of the graphic:我使用 Oracle APEX (v22.1) 并在一个页面上创建了一个(折线图)图表,但我在图形可视化方面遇到以下问题:
On the y-axis it is not possible to show the values in the format 'hh:mi' and I need a help for this.在 y 轴上,无法以“hh:mi”格式显示值,我需要帮助。
Details for the axis:轴的详细信息:
So I have the following SQL query for the visualization of the series:所以我对系列的可视化有以下 SQL 查询:
SELECT DISTINCT to_char(time2, 'YYYY-MM') AS YEAR_MONTH --x-axis,
AVG(time2 - time1) AS AVERAGE_VALUE --y-axis
FROM users
GROUP BY to_char(time2, 'YYYY-MM')
ORDER BY to_char(time2, 'YYYY-MM')
I have another problem to solve it in another way: I am not familiar with JavaScript, if the solution is only possible in this way.我还有一个问题要用另一种方式解决:我不熟悉JavaScript,如果只能通过这种方式解决的话。 Because I started new with APEX, but I have seen in different tutorials that you can use JS.
因为我是从 APEX 开始的新手,但我在不同的教程中看到您可以使用 JS。 So, when JS is the only solution, I would be happy to get a short description what I must do on the page.
所以,当 JS 是唯一的解决方案时,我很乐意得到一个简短的描述,我必须在页面上做什么。 (I don't know if this point is important for this case: The values time1 and time2 are updated daily.)
(我不知道这一点对于这种情况是否重要:值 time1 和 time2 每天更新。)
So where is my mistake or is it more difficult to solve this?那么我的错误在哪里或者更难解决这个问题?
ROUND(TRUNC(avg(time2 - time1)/60) + mod(avg(time2 - time1),60)/100, 2) AS Y ROUND(TRUNC(avg(time2 - time1)/60) + mod(avg(time2 - time1),60)/100, 2) 为 Y
will get close to what you want, you can set Y Axis minimum 0 maximum 24将接近您想要的,您可以设置 Y 轴最小值 0 最大值 24
then 12.23 means 12 hour and 23 minutes.那么 12.23 表示 12 小时 23 分钟。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.