public class DefaultChartFactory extends Object implements ChartFactory
ChartFactory.ChartContext, ChartFactory.PeriodName, ChartFactory.VersionLabelFRAGMENT_IMAGE_HEIGHT, FRAGMENT_IMAGE_WIDTH, PORTLET_IMAGE_HEIGHT, PORTLET_IMAGE_WIDTH, REPORT_IMAGE_HEIGHT, REPORT_IMAGE_WIDTH| Constructor and Description |
|---|
DefaultChartFactory(SearchProvider searchProvider,
VersionManager versionManager,
IssueIndexManager issueIndexManager,
IssueSearcherManager issueSearcherManager,
ConstantsManager constantsManager,
CustomFieldManager customFieldManager,
FieldManager fieldManager,
SearchService searchService,
ApplicationProperties applicationProperties,
ProjectManager projectManager,
TimeZoneManager timeZoneManager) |
| Modifier and Type | Method and Description |
|---|---|
Chart |
generateAverageAgeChart(ChartFactory.ChartContext context,
int days,
ChartFactory.PeriodName periodName)
Generates what is essentially a bar chart showing the average time that issues have been open for over time.
|
Chart |
generateCreatedVsResolvedChart(ChartFactory.ChartContext context,
int days,
ChartFactory.PeriodName periodName,
ChartFactory.VersionLabel versionLabel,
boolean cumulative,
boolean showUnresolvedTrend)
Generates a created vs resolved line graph, showing the difference between created and resolved issues.
|
Chart |
generateDateRangeTimeChart(ChartFactory.ChartContext context,
int days,
ChartFactory.PeriodName periodName,
long yAxisTimePeriod,
String labelSuffixKey,
String dateFieldId)
Generates a date range chart time, meaning a chart that shows time values for particular date ranges.
|
Chart |
generatePieChart(ChartFactory.ChartContext context,
String statisticType)
Generates a pie chart for a particular field.
|
Chart |
generateRecentlyCreated(ChartFactory.ChartContext context,
int days,
ChartFactory.PeriodName periodName)
Generates a stacked bar chart showing the number of created/resolved issues for a certain time period.
|
Chart |
generateTimeSinceChart(ChartFactory.ChartContext context,
int days,
ChartFactory.PeriodName periodName,
boolean cumulative,
String dateFieldId)
Generates a chart showing the number of issues since a certain date field.
|
public DefaultChartFactory(SearchProvider searchProvider, VersionManager versionManager, IssueIndexManager issueIndexManager, IssueSearcherManager issueSearcherManager, ConstantsManager constantsManager, CustomFieldManager customFieldManager, FieldManager fieldManager, SearchService searchService, ApplicationProperties applicationProperties, ProjectManager projectManager, TimeZoneManager timeZoneManager)
public Chart generateCreatedVsResolvedChart(ChartFactory.ChartContext context, int days, ChartFactory.PeriodName periodName, ChartFactory.VersionLabel versionLabel, boolean cumulative, boolean showUnresolvedTrend)
ChartFactorygenerateCreatedVsResolvedChart in interface ChartFactorycontext - Basic information needed to generate all chartsdays - Number of days to go back in time for the chartperiodName - Defines if the data will be grouped in days, weeks, months...versionLabel - Defines what version labels to show in the chartcumulative - Display cumulative totals for the resolved and unresolved issuesshowUnresolvedTrend - Displays a subgraph showing the trend at which issues are being resolvedpublic Chart generateDateRangeTimeChart(ChartFactory.ChartContext context, int days, ChartFactory.PeriodName periodName, long yAxisTimePeriod, String labelSuffixKey, String dateFieldId)
ChartFactorygenerateDateRangeTimeChart in interface ChartFactorycontext - Basic information needed to generate all chartsdays - Number of days to go back in time for the chartperiodName - Defines if the data will be grouped in days, weeks, months...yAxisTimePeriod - Time period in millis to display on the yAxis. Only supports Hours and DayslabelSuffixKey - The i18n suffix key to display for mouse tool tips in the chartdateFieldId - The date field to use as the basis for the times displayed per date rangepublic Chart generatePieChart(ChartFactory.ChartContext context, String statisticType)
ChartFactoryFilterStatisticsValuesGenerator
for possible values for the statisticType. Custom fields are also supported by simply entering the
'customfield_generatePieChart in interface ChartFactorycontext - Basic information needed to generate all chartsstatisticType - The field for which to generate the pie slices.public Chart generateAverageAgeChart(ChartFactory.ChartContext context, int days, ChartFactory.PeriodName periodName)
ChartFactorygenerateAverageAgeChart in interface ChartFactorycontext - Basic information needed to generate all chartsdays - Number of days to go back in time for the chartperiodName - Defines if the data will be grouped in days, weeks, months...public Chart generateRecentlyCreated(ChartFactory.ChartContext context, int days, ChartFactory.PeriodName periodName)
ChartFactorygenerateRecentlyCreated in interface ChartFactorycontext - Basic information needed to generate all chartsdays - Number of days to go back in time for the chartperiodName - Defines if the data will be grouped in days, weeks, months...public Chart generateTimeSinceChart(ChartFactory.ChartContext context, int days, ChartFactory.PeriodName periodName, boolean cumulative, String dateFieldId)
ChartFactoryDateField.generateTimeSinceChart in interface ChartFactorycontext - Basic information needed to generate all chartsdays - Number of days to go back in time for the chartperiodName - Defines if the data will be grouped in days, weeks, months...cumulative - Display cumulative totals for the number of issuesdateFieldId - The date field to use as the basis for the times displayed per date rangeCopyright © 2002-2018 Atlassian. All Rights Reserved.