0

I have a barchart to display the number of action on a keyboard for a time interval of 10 seconds. Without using "group by" function, I have the expected result:

http://postimg.org/image/by1vzottr/

However, I wanted to improve it by using group by function. Therefore, I categorized my Y value. EG: if Y < 10, cat = 0; if Y < 20, cat = 1 etc. But when using "Group by" option, I have this result:

http://postimg.org/image/fcx8e8j4x/

My goal is to have the first graph display, but with the colour corresponding to the categories.

4

1 回答 1

1

这是来自 plotly 的 Étienne。

简而言之,plotly 不明白您的 x 轴值实际上是时间,而不仅仅是类别。

目前,plotly 网格可以理解这里列出的日期时间格式。

一旦采用一种受支持的格式,像 https://plot.ly/~etpinard/2603 这样的网格就会变成像https://plot.ly/~etpinard/2607/_0-1-2/这样的图。

我希望这有帮助。

于 2015-04-15T16:04:26.410 回答