Transform boolean values from True / False to 1/0

I have IoT alarms in Boolean format: True / False.
But I would like to show the trend of these alarms over time. How can I do it? Is it possible to turn True / False into 1/0 on Kibana? In this way it would be more convenient to show their progress.

The best way to do it would be to convert them between the IoT device and Elasticsearch. Logstash if you're using it.
Otherwise, you could use a scripted field that reads the value of that field and returns 1 or 0 accordingly.