Hi, I have two fields I want plotted on a bar chart, a date field (‘Inbound Date’) and the count of inbound leads.
I want to show the counts in terms of months on the bar chart, however when I try to plot this, I just get a bar chart of all the dates (understandably). I think then tried to create another column translating the date to the Month Name. I then tried to plot the month name and the aggregated counts, however the x axis ordered the months alphabetically when I need them ordered by calendar month.
Here is my code. Is there anyway I can plot the dates but have them shown as month aggregates? Or a way where I can change the order of the x axis if I plot the Month column instead?
I’m not sure I understand the structure of the data you’re working with. Setting xaxis.tickformat to '%b' like you have should cause the abbreviated month name to be displayed for each axis tick. Are you getting too many tick marks? If so, you can set xaxis.tickvals to an array of the exact dates where you want the tick marks to appear.
If that doesn’t help, could you include some sample data and a screen shot of what you’re seeing?
What do you mean “to an array of the exact dates where you want the tick marks to appear”?
I set the tickformat to %b, but to your point now the dates appear as month names, but there are too many “month” ticks. I would like them to be aggregated into 1 month tick per month if that makes sense.