Package com.atlassian.jira.charts.util
Interface ChartUtils
- All Known Implementing Classes:
ChartUtilsImpl
public interface ChartUtils
Utility class for charting
- Since:
- v4.0
-
Method Summary
Modifier and TypeMethodDescriptionGet the directory that charts are temporarily stored in.renderBase64Chart
(BufferedImage image, String chartName) Encode givenimage
into the base 64 string.retrieveOrMakeSearchRequest
(String searchQuery, Map<String, Object> params) Make a search request out of the searchQuery parameter and populate the report/portlet param map
-
Method Details
-
retrieveOrMakeSearchRequest
Make a search request out of the searchQuery parameter and populate the report/portlet param map- Parameters:
searchQuery
- a jql string, a project id or a filter idparams
- the map of parameters to modify- Returns:
- The SearchRequest for the project/filter id
-
getChartDirectory
File getChartDirectory()Get the directory that charts are temporarily stored in.- Returns:
- Directory
- Since:
- v6.3
-
renderBase64Chart
Encode givenimage
into the base 64 string.- Parameters:
image
- image to be encodedchartName
- name that occurs in log in case of error- Returns:
image
as aString
in base 64 encoded format ("data:image/png;base64,iVBORw0KGgoAAAANS...")
-