Closed Kazuyakisho closed 3 years ago
Please test the current github version, i made a bug fix
Really good. Very fast and it works.
Thank you very much. Top. :)
That was a little bit to hasty. :)
There is another problem. The chart is hanging respectively it can not be updated automatically while the data labels has been overwritten.
Can't repoduce this. Need more detailed informations.
Activate the debug mode (common -> debug), reload the runtime (F5), wait for change or trigger change of the json data manual. After this copy the complete consolen log (F12, mode debug!) and paste it here.
Additional i need the json string before and after updating the data.
Graphs:
Console Log: console.log
After the error "Uncaught TypeError: Cannot read property 'call' of undefined in lib.min.js:4 comes up, the charts are no longer willing to update. That is happen while hovering over the overrided data labels. And after reload will F5 it is working normally. See in Video:
here a little video - rename the file to error.webm error.zip
JSON Strings: JSON Strings.txt
Wie wäre es mit ner anderen Sprache ;-)
Ok der Fehler kommt vom Tooltip. Bitte teste nochmal folgendes:
Na dann machen wir dit so. :D
Jap, Tooltip öffnet nicht. Und zudem interessant: Die Fehlermeldung kommt ÜBERALL wo ein Tooltip erwartet wird (CHART 1). Ich habe die Datalabels auch nur im LINE-Chart überschrieben und der Fehler wird überall geworfen, ob ich nun initial auf eine der BARS gehe oder auf LINE.
CHART 2 (ohne datalabe_overrides). Reagiert dann ebenfalls nicht auf Updates aber schmeißt auch keine Fehler.
Und vielleicht habe ich es auch vorher übersehen, aber hier kommt jetzt noch nen Array Error lib.min.js:4 Uncaught TypeError: Cannot read property 'length' of undefined Hier nochmal die Log. error.log
Teste bitte die aktuelle version von github. Upload vis adapter nicht vergessen.
Hi. Jetzt musste ich erstmal nachschlagen, was du mit Upload VIS adapter meinst. oO
Habe VIS upgeloaded und die aktuelleste Version geladen, aber leider kein Erfolg oder ich mache irgendwas falsch.
Adapter -> GitHub -> vis-materialdesign auswählen ... dann wird dieses Kommando ausgeführt. ./iobroker url "https://github.com/Scrounger/ioBroker.vis-materialdesign/tarball/master" vis-materialdesign
Ist doch richtig oder?
Habe VIS upgeloaded und die aktuelleste Version geladen, aber leider kein Erfolg oder ich mache irgendwas falsch. Adapter -> GitHub -> vis-materialdesign auswählen ... dann wird dieses Kommando ausgeführt.
./iobroker url "https://github.com/Scrounger/ioBroker.vis-materialdesign/tarball/master" vis-materialdesign
Ist doch richtig oder?
Ja korrekt. VIS Adapter upload geht so:
Bist du dir sicher das dein Skript nicht irgendwas falsch macht. Ich kann das nicht reproduzieren und hab es mit deinem json getestet, funktioniert einwandfrei.
Schalt nochmal den debug modus an, runtime neu laden, chart updaten und dann das ganze log posten
Hääää. Nanu. Es läuft jetzt. Ich habe den debug modus erstmal ausgestellt und TADA es geht. Wenn ich den Debug Modus jetzt wieder einschalte geht's auch. Top.
Aber überhaupt mal ein riesen Danke schön. Es ist echt schnike, was du da hingezimmert hast. :+1: :+1: :+1: Na dann gebe ich dir mal nen Kaffee aus ;)
Jup. Läuft alles perfekt. Dann schließe ick mal das Ticket.
Hääää. Nanu. Es läuft jetzt.
Ok komisch, aber wenns läuft dann läufts 😁
Aber überhaupt mal ein riesen Danke schön. Es ist echt schnike, was du da hingezimmert hast. 👍 👍 👍 Na dann gebe ich dir mal nen Kaffee aus ;)
Danke, Kaffee werd ich mir schmecken lassen!
It seems that the datalabel override doesn't work in JSON Chart or I misunterstood that.
To reproduce, try overriding [line, bar]chart data labels with datalabel_override: array[string] (like in documentation)
What I wanted to try is replacing the datalabels (are for the correct calculation of points I guess) with own datalabels: As an example I want to have an empty string if datalabel equals '0'.
If it works on your site, than maybe I have error in my code. KR