*vega/vega-lite 基于json的编程
*Echarts
*AntV、DataV
D3 可视化编程库
1.设置字体颜色
d3.selectAll(“p”).style(“color”,”red”);
2.设置隔段字体颜色
d3.selectAll(“p”).style(“color”,function(data, index){return index%2 ? “blue” : “red”}) ;
3.根据数据设置字号
d3.select(‘body’).selectAll(‘p’).data(element).style(“front-size”,function(data){return data + “px”});
0 条评论