Forum Replies Created by Jacob

Viewing 11 posts - 1 through 11 (of 11 total)
  • in reply to: AxisY2 Maximum broken in 1.8 #10370

    Ah that sucks. Not cool paid $400 then a feature I used was ripped out :-(

    in reply to: AxisY2 Maximum broken in 1.8 #10109

    When could we expect this back in the future versions?

    in reply to: AxisY2 Maximum broken in 1.8 #10076

    Yeah I don’t know the maximum though…. its completely different based on the system the product is running on and the maximum is different each day. I’m using it to display the data in MB, GB, or TB which is why I need to know what the maximum is.

    For now I just hard coded it to use GB format but thats not really ideal.

    in reply to: AxisY2 Maximum broken in 1.8 #10068

    Yes you are right BUT under axisY2 it is missing the “maximum” value.

    So: e.chart.options.axisY2.maximum is ALWAYS “undefined”. This started with 1.8

    in reply to: AxisY2 Maximum broken in 1.8 #10062

    You can see from the console.log output of e.chart under the labelformatter:

    No max

    in reply to: AxisY2 Maximum broken in 1.8 #10061

    This does not work. That option always returned “undefined”!

    in reply to: Area Spline problem with DateTime values #9962

    Find anything interesting?

    in reply to: Area Spline problem with DateTime values #9927

    Ok thanks! Let me know.. have some customers waiting on the fix :-)

    in reply to: AxisY2 Maximum broken in 1.8 #9923

    Uhm… I will try that. I rolled back to 1.7 and its working with e.chart.axisY2.maximum.

    in reply to: Area Spline problem with DateTime values #9921

    I was able to reproduce this for you:
    http://jsfiddle.net/QwZuf/359/

    in reply to: Area Spline problem with DateTime values #9920

    In there is one value for 9 and not 11. I think you may have skipped over that. I will try fiddle but here is the code to make the graph:

    function GetHistoryOverview(url) {
        $(".panel-systemhistory").block();
        $.getJSON(url, function (data) {
            var users = { type: "splineArea", lineThickness: 2, name: "Users", showInLegend: true, xValueType: "dateTime", dataPoints: [] };
            var mailboxes = { type: "splineArea", lineThickness: 2, name: "Mailboxes", showInLegend: true, xValueType: "dateTime", dataPoints: [] };
            var citrix = { type: "splineArea", lineThickness: 2, name: "Citrix", showInLegend: true, xValueType: "dateTime", dataPoints: [] };
    
            var chart = new CanvasJS.Chart("historyOverview",
                {
                    animationEnabled: true,
                    zoomEnabled: true,
                    title: { text: "" },
                    toolTip: { shared: true },
                    axisX: { labelAngle: -50 },
                    legend: {
                        cursor: "pointer",
                        itemclick: function (e) {
                            if (typeof (e.dataSeries.visible) === "undefined" || e.dataSeries.visible) {
                                e.dataSeries.visible = false;
                            }
                            else {
                                e.dataSeries.visible = true;
                            }
                            chart.render();
                        }
    
                    },
                    data: []
                }
            );
    
            $.each(data, function (i, val) {
                if (val.retrieved != null) {
                    var actualTime = moment(val.retrieved).format();
                    var xValue = new Date(actualTime);
    
                    if (val.hasOwnProperty("userCount"))
                        users.dataPoints.push({ x: xValue, y: val.userCount });
    
                    if (val.hasOwnProperty("mailboxCount"))
                        mailboxes.dataPoints.push({ x: xValue, y: val.mailboxCount });
    
                    if (val.hasOwnProperty("citrixCount"))
                        citrix.dataPoints.push({ x: xValue, y: val.citrixCount });
                }
            });
    
            if (users.dataPoints.length > 0)
                chart.options.data.push(users);
    
            if (mailboxes.dataPoints.length > 0)
                chart.options.data.push(mailboxes);
    
            if (citrix.dataPoints.length > 0)
                chart.options.data.push(citrix);
    
            chart.render();
        }).fail(function (data) {
            ShowError(data);
        }).always(function() {
            $(".panel-systemhistory").unblock();
        });
    }
Viewing 11 posts - 1 through 11 (of 11 total)