[gelöst] Den aktuellen Monat in highcharts/simplecharts anzeigen?

Begonnen von wildea, 22 Juni 2016, 23:14:21

Vorheriges Thema - Nächstes Thema

wildea

Hallo Leute,

ich spiele gerade mit den highchart für das Tablet Ui im rum und würde gerne ein Chart erstellen in dem mir immer der aktuelle komplette Monat angezeigt wird.

In fhemweb gibt es bei den SVG plots ja das attr "fixedrange". Bei den Charts für das tablet ui habe ich nur sowas wie "data-daysago_start " gefunden.
Die Beschreibung dafür besagt folgendes:

data-daysago_start number of days back from now for the start of the plot (0 means the plot starts from today 0:00).
Additionally the x-axis start value can be set here unsing standard data formats like ('2013-10-23'), the time portion of the string is only used when data-nofulldays is 'true'. (default 0)

data-daysago_end number of days back from now for the end of the plot (-1 means the plot ends today 24:00).
Additionally the x-axis end value can be set here unsing standard data formats like ('2013-10-23'), the time portion of the string is only used when data-nofulldays is 'true'. (default -1)


Ist es damit möglich sich automatisch immer den kompletten Monat anzeigen zu lassen oder kann man da nur die Anzahl von Tagen angeben die er zurück gehen soll.
Ich verstehe das nicht so ganz. Wäre super wenn mich jemand da aufschlauen könnte.

Vielen dank

eki

wenn Du chart statt simplechart nutzt, dann geht das. Du musst für Deinen Fall dort bei daysago-start "0M" und bei daysago-end "-1M" eintragen. Details auch im Wiki zum chart widget.

wildea

danke eki.

mit einem

data-daysago="1M"

klappt es auch bei highchart.