Forum Replies Created by Epinephrine

Viewing 1 post (of 1 total)
  • in reply to: Format “onmouseover” Text #29756

    I’m not sure if it is the “best practice” but I was able to solve my problem via
    toolTip:{
    contentFormatter: function ( e ) {
    var content = \” \”;
    for (var i = 0; i < e.entries.length; i++) {
    content += e.entries[i].dataSeries.name + \”<br/>Datum: \” +(new
    Date(e.entries[i].dataPoint.x)).toLocaleString(\”de-DE\”) + \”<br/>Wert: \”
    +(Math.round((e.entries[i].dataPoint.y)*100)/100);
    content += \”<br/>\”;
    }
    return content;

    Additiional chars due to embedded into PHP

Viewing 1 post (of 1 total)