| <?php |
| /******************************************************************************** |
| * Copyright (c) 2018 The Eclipse Foundation |
| * |
| * This program and the accompanying materials are made available under the |
| * terms of the Eclipse Public License v. 2.0 which is available at |
| * http://www.eclipse.org/legal/epl-2.0. |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| ********************************************************************************/ |
| require_once dirname(__FILE__) . '/../charts.inc'; |
| |
| function chart_eclipse_contributors($context) { |
| return ChartBuilder::named('eclipse_contributors') |
| ->title("Eclipse Top Level Project Contributors") |
| ->description( |
| "Quarterly statistics on contribution to the Eclipse Top Level Project") |
| ->query('dashboard', " |
| select |
| quarter, |
| contributors, |
| committers, |
| companies |
| from ProjectQuarterlyContributionSummary |
| where project='eclipse' |
| ") |
| ->column('Quarter', 'quarter', 'string', function($value) {return asYearMonth($value);}) |
| ->column('Contributors', 'contributors', 'number') |
| ->column('Committers', 'committers', 'number') |
| ->column('Companies', 'companies', 'number'); |
| } |
| ?> |