Commit 2bf59ee3 authored by József Gyürüsi's avatar József Gyürüsi
Browse files

[incident #1758979] CPS chart times fixed



Change-Id: Ic190b441dfca74313a5d42f35cd60ccc4f6201cb
Signed-off-by: default avatarJózsef Gyürüsi <jozsef.gyurusi@ericsson.com>
parent 8bc55afa
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -60,6 +60,7 @@ function CView_Chart(p_viewmodels, p_mainId, p_parentId, p_data) {
            
            if (v_customData.type == "timeseries") {
                options.xaxis.mode = "time";
                options.xaxis.timezone = "browser";
                options.xaxis.timeformat = "%H:%M:%S";
                //options.grid.margin.bottom = 10;
            } else if (v_customData.type == "distribution") {
@@ -251,7 +252,7 @@ function CView_Chart(p_viewmodels, p_mainId, p_parentId, p_data) {
        $("#" + v_mainId).on("plothover", function(event, pos, data) {
            if (data != undefined) {
                if (v_customData.type == "timeseries") {
                    $("#" + v_mainId).prop("title", data.series.label + "\nx: " + Date(data.datapoint[0]) + "\ny: " + data.datapoint[1]);
                    $("#" + v_mainId).prop("title", data.series.label + "\nx: " + new Date(data.datapoint[0]) + "\ny: " + data.datapoint[1]);
                } else {
                    $("#" + v_mainId).prop("title", data.series.label + "\n" + data.datapoint[1]);
                }