Ok,
After some struggle, I managed to get the results I needed so, I will share how to do it. Hope it helps anyone with the same question.
At the time of this answer, this will only work with the most recent Dev version. Also, after that, you have to apply this patch. It won't work unless you make these two steps.
On your content type, check if you have the Create new revision option checked.
In views, create a new view to show Content revisions and format as Chart. Change the following inside views:
===== First Display =====
Remove the Content revision: Content
relationship.
Remove the Content: Published (Yes)
filter.
If you have more than one content type, the way you filter (at least I did it this way) is to add a field to the Filter criteria like this: Content (historical data): [your field] (not empty)
.
Set Use aggregation
to yes
.
Add a Content revision: Nid
field to the display and set aggregation to COUNT.
On the Chart settings, select field Content revision: Updated date
to provide labels and COUNT(Content revision: Nid)
to provide data.
The result is a display that shows the total of nodes for each revision (x-axis date).
===== Second (and similar) displays =====
Now, you create chart add-on displays for each of the different states/values of your data field (in my case it was a status_field).
The settings for these displays are the same as the first one with one difference:
Add the [your field]
field to the filter section and filter by one of the states/values. You will have to do this for each dispay, each one represents the chart for each state.
Combine the chart add-on with parent chart
.
Finally, to get the chart as stacked, you have to create some code. Add the following code to your module:
function mymoudle_chart_alter(&$chart, $chart_id) {
if ($chart_id == '[my_chart_machine_name]__[first_display_machine_name]') {
$chart['#stacking'] = TRUE;
}
Notes: remove the [
and ]
from above example but keep both undersores (__
).
And that's it. This is the result I got:

I have the update date of the revision to show as unix timestamp but you can have it as you like!
As suggested, here is a similar chart but using 'bar' type:
