Hello everyone,
I created the stacked bar chart attached using the variables and the code below:
My problem is that the variable on the x-axis doesn't take the labels I assigned to it, but number instead. It is in float format and has date-labels for each quarter, which I assigned using this code:
Where created_at originally is in string format. Example: "2008-05-15 11:26:35"
And quarter_created is in float format with labels like: "2008q3"
I would be very happy if you could help me with my problem.
I created the stacked bar chart attached using the variables and the code below:
Code:
graph bar, over(party) over(quarter_created, label(angle(45))) missing stack asyvars
Code:
gen date_created = date(created_at, "YMD hms") format date_created %td gen quarter_created = qofd(date_created) format quarter_created %tqCCYY-!Qq
And quarter_created is in float format with labels like: "2008q3"
I would be very happy if you could help me with my problem.
Comment