History-graph: add an option to manage labels

Add an option to set a mode:

  1. Do not show labels.
    Sometimes the graph is absolutely clear for a user, and he does not need these labels:
    image

  2. Show localized device-class-dependent labels if available (like Connected / Disconnected).
    This is a default option. This is how it works since 2022.12.x.

  3. Show localized on/off labels.
    In some cases periods are short, long labels like “Connected” do not fit - so a user may decide to show short “On / Off” labels. In some languages even these labels may be LONG - but anyway it is up to a user to decide whether to show labels or not.