Persistence Switch ON OFF

Hello, i’d like to chart my swich with RRD4j but it saved only 1 or 0. ON or OFF doesn’t work.
How can i optimize the Chart display like ON OFF?
Thank you for Help