| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 | $(function () {    BWA.ChartOptions = BWA.ChartOptions || {};    var seriesBudgetCode;    BWA.ChartOptions.MainDashboardFMS = {                getPieChartDayOptions: function () {            return _.extend({                palette: "Pastel",            }, BWA.ChartOptions.MainDashboardFMS.getPieChartOptions());        },        getPieChartOptions: function () {            return {                legend: {                    horizontalAlignment: "right",                    verticalAlignment: "top",                    margin: 2,                    border: {                        visible: true                    }                },                tooltip: {                    enabled: true,                    format: 'fixedPoint',                    precision: 0,                    customizeTooltip: function (point) {                        return {                            text: [this.argumentText, ': ', this.valueText].join('')                        };                    }                },                series: [                    {                        type: "doughnut",  // if not, pie.                        argumentField: "FuelTypeName",                        argumentType: "string",                        valueField: "Value",                        hoverStyle: {                            color: "#ffd700"                        },                        label: {                            visible: false,                            connector: {                                visible: true                            },                            customizeText: function (pointInfo) {                                return pointInfo.argumentText;                            }                        }                    }                ]            };        }    };});
 |