- 已关闭。**此问题需要debugging details。当前不接受答案。
编辑问题以包含desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem。这将有助于其他人回答问题。
4小时前关门了。
Improve this question
我想做一个聊天来显示工作的年龄和工作的位置chart like this我不知道这是否是posable与散点聊天。一切我所看到的和使用的海关标签使用他们只是作为一个计数器。我只是想知道是否有可能这样做或有更好的方式来显示这些信息。
我试过使用chart.js散点图,但是如果x和y都不是数字,我就无法让它工作。
1条答案
按热度按时间6tr1vspr1#
这是可以改变你的X和Y在散点图。下面是我是如何做到这一点,但如果有人发现一个更好的方法,然后添加到我在这里所做的。
在刻度X中,我找到表中显示的值,并循环$Job_Steps数组以找到匹配的名称。(感觉这是最糟糕的一点,希望找到更好的方法)
在刻度Y中,我只是将时间戳传递到DateFormatter函数中,并将相反顺序设置为true,以便较早的刻度更接近顶部