You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2019/12/20 09:55:33 UTC
[GitHub] [incubator-superset] kalimuthu123 edited a comment on issue #519:
Ordering on X axis on the distribution bar chart
kalimuthu123 edited a comment on issue #519: Ordering on X axis on the distribution bar chart
URL: https://github.com/apache/incubator-superset/issues/519#issuecomment-567864807
sorting the chart based on time 00:00 AM ,01:00 AM ,02:00 AM ,03:00AM
if(fd.order_time){
data.forEach((d) => {
d.values.sort(function(a,b){return new Date('1970/01/01 ' + a.x) - new Date('1970/01/01 ' + b.x)});
});
![new time chronological order](https://user-images.githubusercontent.com/42966797/71246563-ebd77f80-233c-11ea-912b-952e328dad5a.png)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org