Klasse CoverageTrendChart
java.lang.Object
io.jenkins.plugins.coverage.model.visualization.charts.CoverageTrendChart
Builds the Java side model for a trend chart showing the line and branch coverage of a project.
The number of builds to consider is controlled by a
ChartModelConfiguration
instance. The created model object
can be serialized to JSON (e.g., using the JacksonFacade
) and can be used 1:1 as ECharts configuration object in the corresponding JS file.- Autor:
- Ullrich Hafner
- Siehe auch:
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungedu.hm.hafner.echarts.LinesChartModel
create
(Iterable<? extends edu.hm.hafner.echarts.BuildResult<CoverageBuildAction>> results, edu.hm.hafner.echarts.ChartModelConfiguration configuration) Creates the chart for the specified results.
-
Konstruktordetails
-
CoverageTrendChart
public CoverageTrendChart()
-
-
Methodendetails
-
create
public edu.hm.hafner.echarts.LinesChartModel create(Iterable<? extends edu.hm.hafner.echarts.BuildResult<CoverageBuildAction>> results, edu.hm.hafner.echarts.ChartModelConfiguration configuration) Creates the chart for the specified results.- Parameter:
results
- the forensics results to render - these results must be provided in descending order, i.e. the current * build is the head of the list, then the previous builds, and so onconfiguration
- the chart configuration to be used- Gibt zurück:
- the chart model, ready to be serialized to JSON
-