Documentation

Guide3D Statistics Service

Code-Example

Usage

Guide3DStatisticsService_V1.0.0.min.js requires Promise and window.fetch() support.


Download the Declaration Files Guide3DStatisticsService_V1.0.1.d.ts if you develop in Typescript to add auto-completion / IntelliSense to your IDE as follows:

/// <reference path="./yourpath/Guide3DStatisticsService_V1.0.1.d.ts"/>

Loading...
Loading...

© 2020 3d-berlin GmbH

Code-Example

Back

HTML


<script type="text/javascript" src="https://services.guide3d.com/statistics/js/Guide3DStatisticsService_V1.0.0.min.js"></script>
                    

JavaScript


var oGuide3DStatisticsServiceOptions = {
    "debug": false,
    "project": 100013,
    "callback": function (oEvent) {
        if (oEvent.id === Guide3DStatisticsService.EVENT_LOADED) {
            oGuide3DStatisticsService.drawGoogleVisualizations([
                {
                    "type": Guide3DStatisticsService.REQUEST_TYPE_EVENTS,
                    "chart": "divChartEvents",
                    "table": "divTableEvents",
                },
                {
                    "type": Guide3DStatisticsService.REQUEST_TYPE_TABLE,
                    "chart": "divChartTable",
                    "table": "divTableTable",
                },
                {
                    "type": Guide3DStatisticsService.REQUEST_TYPE_END_SELECTIONS,
                    "chart": "divChartEndSelections",
                    "table": "divTableEndSelections",
                },
                {
                    "type": Guide3DStatisticsService.REQUEST_TYPE_ROUTE_SELECTIONS,
                    "chart": "divChartRouteSelections",
                    "table": "divTableRouteSelections",
                }
            ]);
        }

    },
    //"service-url": "./res/php/services.guide3d.com/statistics/index.php"
};
var oGuide3DStatisticsService = new Guide3DStatisticsService(oGuide3DStatisticsServiceOptions);
                    
Open Example
© 2018 3d-berlin GmbH