Alternative x-axis unit of measure

Currently I’ve only found that you can have time related unit if measures as your x-axis in charts (e.g. ApexChart).

I would like to create a chart showing electricity usage by usage times of the equipment. This would allow to see if if the energy consumption varies between usage. I’ve already created a counter that increments always when the equipment is turned on. So this counter I would like to have as x-axis and the have the power consumption on the y-axis.

I can’t use time as x-axis as equipment can be run multiple times per day and also I don’t want have empty space in graph between the time that equipment is not used.

Would this type of graph be possible to create in HA or Graphana (I’ve data in Influx as well) or any other visualization integration for HA? Preference would be ApexChart.

Thanks.

Br
Sébastien