Manual metrics and treemap components
- by Greg
I have a problem with SonarQube.
I use web API to inject manual metrics values for a project like this :
curl -u nom:password -d "resource=<projet>&metric=<key de la metric>&val=<valeur>" http://localhost:8081/sonar/api/manual_measures
One of these metrics is a percentage and this metric is declared as a Percentage value in Sonar in Settings = Manual Metrics window.
I have a project with components and each project and components have this metric value.
When I want to show this metric as a color metric in a "treemap of components" of widget, all the treemap is grey (as if values are not defined).
But if I put mouse on the name of component in treemap, I saw the color metric value as a percentage value like this :
myComponent - ncloc: 800 - myMetric: 84,0%
Moreover, scale metric color does not appear in treemap title (after Size ncloc Color <my metric>).