.addWidget(MeasureFilterTreemapWidget.ID, 2)
.setProperty(MeasureFilterListWidget.FILTER_PROPERTY, filter.getId().toString())
.setProperty(MeasureFilterTreemapWidget.SIZE_METRIC_PROPERTY, "ncloc")
- .setProperty(MeasureFilterTreemapWidget.COLOR_METRIC_PROPERTY, "violations_density");
+ .setProperty(MeasureFilterTreemapWidget.COLOR_METRIC_PROPERTY, "coverage");
}
}
super(filter, options)
@size_metric = Metric.by_key(@filter.criteria(:tmSize)||'ncloc')
- @color_metric = Metric.by_key(@filter.criteria(:tmColor)||'violations_density')
+ @color_metric = Metric.by_key(@filter.criteria(:tmColor)||'coverage')
@height_percents = (@filter.criteria(:tmHeight) || DEFAULT_HEIGHT_PERCENTS).to_i
@height_percents = DEFAULT_HEIGHT_PERCENTS if @height_percents<=0
@filter.metrics=([@size_metric, @color_metric].compact)