UNPKG

@syncfusion/ej2-circulargauge

Version:
21 lines (20 loc) 517 B
/** * Specifies Circular-Gauge axis-panel Helper methods */ /** * Function to calculate the sum of array values. * * @param {number} from - Specifies the from value. * @param {number} to - Specifies the to value. * @param {number[]} values - Specifies the number. * @returns {number} - Returns the number. * @private */ export function calculateSum(from, to, values) { var sum = 0; var length = values.length; for (; from < length; from++) { sum += values[from]; } return sum; }