echarts字体适配

var html = document.getElementsByTagName("html")[0];
var width = html.clientWidth;
var tooltipFontSize = 14 / 1280 * width;
var fontSize = 10 / 1280 * width;
var legendFontSize = 10 / 1280 * width;
var labelFontSize = 10 / 1280 * width;
var itemHeight = 8 / 1280 * width;
var itemWidth = 10 / 1280 * width;

 

posted @ 2019-05-10 10:18  abcByme  阅读(2231)  评论(0编辑  收藏  举报