Hi @demkic,
Just to clarify for some of the previous responders, since you're using the timewrap custom visualization there's no need to wrap the results in your SPL. The visualization takes in a single time series and wraps it for you. There are, however, a couple of limitations to the visualization:
It assumes that the time series is uniformly binned with no gaps. Using | bin _time will not fill in time gaps that exist in your data.
It only looks at the first two columns of your results, and assumes that the first contains the timestamps and the second contains the values.
So I think if you switch to using the timechart command, and remove the intermediate calculation fields from the final results, you'll get what you're looking for:
base search
| timechart span=1h count(eval(payment_method="credit_card")) as creditcard, count(payment_method) AS total
| eval percent=(creditcard*100/total)
| fields _time, percent
Let me know if that helps!
... View more