Source
.attr('y', 2 * CSVGPie.TOTAL_VALUE_SIZE_DEFAULT * 10 / 2 / CSVGPie.LINE_HEIGHT - 2 * CSVGPie.TOTAL_VALUE_SIZE_DEFAULT)
/*
** Zabbix
** Copyright (C) 2001-2023 Zabbix SIA
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
**/
class CSVGPie {
static ZBX_STYLE_CLASS = 'svg-pie-chart';
static ZBX_STYLE_ARCS = 'svg-pie-chart-arcs';
static ZBX_STYLE_ARC = 'svg-pie-chart-arc';
static ZBX_STYLE_ARC_PLACEHOLDER = 'svg-pie-chart-arc-placeholder';
static ZBX_STYLE_ARC_NO_DATA_OUTER = 'svg-pie-chart-arc-no-data-outer';
static ZBX_STYLE_ARC_NO_DATA_INNER = 'svg-pie-chart-arc-no-data-inner';
static ZBX_STYLE_TOTAL_VALUE = 'svg-pie-chart-total-value';
static ZBX_STYLE_TOTAL_VALUE_NO_DATA = 'svg-pie-chart-total-value-no-data';
static LINE_HEIGHT = 1.14;
static ANIMATE_DURATION_WHOLE = 1000;
static ANIMATE_DURATION_POP_OUT = 300;
static ANIMATE_DURATION_POP_IN = 100;
static DRAW_TYPE_PIE = 0;
static DRAW_TYPE_DOUGHNUT = 1;
static TOTAL_VALUE_SIZE_DEFAULT = 10;
static TOTAL_VALUE_PADDING = 4;
/**
* Widget configuration.
*
* @type {Object}
*/
#config;
/**
* Inner padding of the root SVG element.
*
* @type {Object}
*/
#padding;
/**
* Root SVG element.
*
* @type {SVGSVGElement}
* @member {Selection}
*/