use Ox.formatColorPercent

This commit is contained in:
rolux 2012-10-05 14:15:27 +02:00
parent 9ca815d99b
commit af9a038c19
2 changed files with 3 additions and 3 deletions

View file

@ -325,7 +325,7 @@
"title": "Mainstream Score",
"type": "float",
"columnWidth": 60,
"format": {"type": "unit", "args": ["%", 1]},
"format": {"type": "ColorPercent", "args": [1, true]},
"sort": true
},
{
@ -333,7 +333,7 @@
"title": "Arthouse Score",
"type": "float",
"columnWidth": 60,
"format": {"type": "unit", "args": ["%", 1]},
"format": {"type": "ColorPercent", "args": [1, true]},
"sort": true
},
{

View file

@ -462,7 +462,7 @@ pandora.ui.infoView = function(data) {
.css({marginBottom: '4px'})
.append(formatKey(key == 'votes' ? 'Mainstream Score' : 'Arthouse Score'), true)
.append(
Ox.Theme.formatColor(value * 1.2, 'hue')
Ox.Theme.formatColor(Math.sqrt(value) * 12, 'hue')
.css({textAlign: 'right'})
.html(Ox.formatNumber(value, 1) + '%')
)