Created
November 25, 2014 11:21
-
-
Save zverok/4b42441bbbbc9a319ed7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// до всего - присваиваем темам последовательные индексы | |
// нумерация раздельная для своих и конкурентов | |
labels. | |
filter(function(l){return l.is_competitor;}). | |
forEach(function(l, i){l.number = i}); | |
labels. | |
filter(function(l){return !l.is_competitor;}). | |
forEach(function(l, i){l.number = i}); | |
// выбираем цвет в colorize_label | |
var color = _colors[label.number]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment