deviaji opened a new issue #9518: help needed - Days interval grouping in 
distributed bar chart
URL: https://github.com/apache/incubator-superset/issues/9518
 
 
   Hi all,
   I have a requirement to draw a distribution bar chartin Superset. Its Schema 
is of customers and product purchase for different purchase dates. In this 
case, product is not relevant. The schema is like this:
   Customer_name   Purchase_amount   Purchase_date
   A                16500             10-15-2019
   A                1200              3-9-2019
   B                7800              2-25-2020
   B                5300              8-19-2019
   C                12000             5-14-2019
   D                6500              1-19-2020
   In Bar chart, need to show 'day interval' in groups of 30 days in X axis. 
The 'day interval' means the day difference between today's date and 
'Purchase_date'. I tried to create one more column in sql query to find out the 
'day interval group' like 0-30, 31-60 etc. Then created the chart. It looks 
fine. But the ordering is based on the amount. But I want it in  the order of 
'day interval'.
   
![Capture15](https://user-images.githubusercontent.com/63591408/79119646-77729180-7dae-11ea-8a04-5e82cf7ef7a9.PNG)
   
   Thanks in advance,
   Sreedevi
   

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to