Class XChartUtil
- java.lang.Object
-
- lumis.service.analytics.eventanalytics.XChartUtil
-
public class XChartUtil extends Object
Utilities for generating report charts.- Since:
- 14.0.0
- Version:
- $Revision: 24476 $ $Date: 2021-04-28 11:28:23 -0300 (Wed, 28 Apr 2021) $
-
-
Constructor Summary
Constructors Constructor Description XChartUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]
printBarChart(DashboardEmailUtil.Series series, EventAnalyticsReport report, ServiceInstanceConfig cxServiceInstance)
Returns a PNG image (bytes) for the given bar chart.static byte[]
printLineChart(DashboardEmailUtil.Series series, EventAnalyticsReport report, ServiceInstanceConfig cxServiceInstance)
Returns a PNG image (bytes) for the given line chart.static byte[]
printPieChart(DashboardEmailUtil.Series series, EventAnalyticsReport report, boolean isDonut, ServiceInstanceConfig cxServiceInstance)
Returns a PNG image (bytes) for the given chart.static String
renderValue(Metric metric, Double value)
Renders the given value
-
-
-
Method Detail
-
printLineChart
public static byte[] printLineChart(DashboardEmailUtil.Series series, EventAnalyticsReport report, ServiceInstanceConfig cxServiceInstance) throws IOException, PortalException
Returns a PNG image (bytes) for the given line chart.- Parameters:
series
- the seriesreport
- the reportcxServiceInstance
- the customer experience service instance- Returns:
- a PNG image (bytes) for the given line chart.
- Throws:
IOException
PortalException
- Since:
- 14.0.0
-
printBarChart
public static byte[] printBarChart(DashboardEmailUtil.Series series, EventAnalyticsReport report, ServiceInstanceConfig cxServiceInstance) throws IOException, PortalException
Returns a PNG image (bytes) for the given bar chart.- Parameters:
series
- the seriesreport
- the reportcxServiceInstance
- the customer experience service instance- Returns:
- a PNG image (bytes) for the given bar chart.
- Throws:
IOException
PortalException
- Since:
- 14.0.0
-
printPieChart
public static byte[] printPieChart(DashboardEmailUtil.Series series, EventAnalyticsReport report, boolean isDonut, ServiceInstanceConfig cxServiceInstance) throws IOException, PortalException
Returns a PNG image (bytes) for the given chart.- Parameters:
series
- the seriesreport
- the reportisDonut
- indicates if the chart is a donut onecxServiceInstance
- the customer experience service instance- Returns:
- a PNG image (bytes) for the given chart.
- Throws:
IOException
PortalException
- Since:
- 14.0.0
-
-