Hi dbcase,
look at this answer https://answers.splunk.com/answers/196554/timechart-fill-values-in-empty-slots.html where you can find an example an another link to another answer.
Hope this helps ...
cheers, MuS
UPDATE: Try this run everywhere search:
index=_internal
| eval hasSource=if(searchmatch("source"),1,0)
| stats count as myCount sum(hasSource) AS hasSource by _time
| bin _time span=1min
| chart sum(hasSource) AS count over _time
it will check the events for the field called source and counts them, the bin sets the _time to the span value and the chart will display it like timechart ( timechart is nothing else but a chart ... over _time by ... )
UPDATE OF UPDATE: The final working search was this:
host="ccivirpxa0*" index=cox sourcetype=wls_managedserver
| eval isEvent=if(searchmatch("STUCK"),1,0)
| stats count as myCount sum(isEvent) AS isEvent
| eval result=if(isEvent>0, isEvent, myCount)
| table result
... View more