Template:CategorizedChart: Difference between revisions
From FANTOM5_SSTAR
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 21: | Line 21: | ||
} | } | ||
var series = { data: []}; | var series = { data: []}; | ||
var categories ={catalog: | var categories ={catalog: [], score:[]}; | ||
var tmp_data = []; | var tmp_data = []; | ||
Line 34: | Line 34: | ||
var distincs = getDistinctElements(categories_array); | var distincs = getDistinctElements(categories_array); | ||
for(var i=0, l=distincs.length; i<l; i++){ | for(var i=0, l=distincs.length; i<l; i++){ | ||
categories.catalog | var myMap = {}; | ||
categories.score | myMap[distincs[i]] = []; | ||
categories.catalog[i]=myMap; | |||
categories.score[i]=myMap | |||
} | } | ||
Line 43: | Line 45: | ||
var tmp_score= content_array[i]; | var tmp_score= content_array[i]; | ||
categories.catalog | categories.catalog(tmp_motiftype); | ||
categories.score | categories.score(tmp_motiftype); | ||
} | } | ||
}); | }); |
Latest revision as of 17:41, 16 August 2013