def make_top2(rangelist):
widthpercentage = 100.0 / float(len(rangelist))
return '''<style>
.legend label,
.legend span {
display:block;
float:left;
height:15px;
width:xx%;
text-align:center;
font-size:9px;
color:#808080;
}
</style>'''.replace('xx',str(widthpercentage))
# generates 5 labels and then inserts dummy spaces in each label value not used
# may eventually accept a number of labels right now assumes 5 and returns adequate dummy labels for inbetween values
评论列表
文章目录