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: 24985 $ $Date: 2022-05-02 23:04:30 -0300 (Mon, 02 May 2022) $
-
-
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
renderPercentage(Double value)
Renders the given valuestatic 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
-
renderValue
public static String renderValue(Metric metric, Double value)
Renders the given value- Parameters:
metric
- the metricvalue
- the value- Returns:
- the rendered value
- Since:
- 14.0.0
-
-