天天的博客
标签
归档
图表
github
关于
上传
怎么让ECharts图表向左移动起来?-slider
让ECharts图表动起来~
雷达图,边框颜色,区域着色等-
雷达图,边框颜色,顶点颜色,legend设置,雷达区域着色
3d饼图-custom
现在还没有做label,有做了label的后面我会上传github
Awesome Chart-折线
x轴类型为'time'时,无法指定data的问题 (Display Failure when trying to assign xAxis data when xAxis.type is set to 'time') -折线
这个问题时在实现我们的实时可视化项目中发现的。 x坐标轴类型为time时,x轴只能接受series中的data第一列作为label,而不能通过指定xAxis.data来进行label的设定(xdata为timestamp时)。 When xAxis.type is set to 'time', the chart displays incorrectly when timestamps xlabel input is set in xAxis.data
map地图+气泡散点图+带排名的柱状图+拼音显示省份名称-category
怎么用ECharts绘制带排名的柱状图以及在ECharts地图上绘制气泡散点图、带涟漪动画的散点图?
事件进度追溯-pictorialBar
3D立体图分段柱状图-2020
雷达图-rgba(0,255,48, 1)
雷达图
玩转ECharts之实现“动态颜色的Label”-.'); var minDecimals = maxDecimals - (optionals || 0); var boundedPrecision = splitValue.length === 2 ? Math.min(Math.max(splitValue[1].length, minDecimals), maxDecimals) : minDecimals; var power = Math.pow(10, boundedPrecision); var output = (roundingFunction(value + 'e+' + boundedPrecision) / power).toFixed(boundedPrecision); if (optionals > maxDecimals - boundedPrecision) { var optionalsRegExp = new RegExp('\\.?0{1,' + (optionals - (maxDecimals - boundedPrecision)) + '}$'); output = output.replace(optionalsRegExp, ''); } return output; } // 以下代码均为辅助性代码理论上不需要详细阅读,未做详细介绍 function numIsNaN(value) { return typeof value === 'number' && isNaN(value); } // 以下代码均为辅助性代码理论上不需要详细阅读,未做详细介绍 function numerify(input, formatType, roundingFunction) { var value = void 0; if (input === 0 || typeof input === 'undefined') { value = 0; } else if (input === null || numIsNaN(input)) { value = null; } else if (typeof input === 'string') { if (options.zeroFormat && input === options.zeroFormat) { value = 0; } else if (options.nullFormat && input === options.nullFormat || !input.replace(/[^0-9]+/g, '').length) { value = null; } else { value = +input; } } else { value = +input || null; } return format(value, formatType, roundingFunction); } // 以下代码均为辅助性代码理论上不需要详细阅读,未做详细介绍 function format(value, formatType, roundingFunction) { formatType = formatType || options.defaultFormat; roundingFunction = roundingFunction || Math.round; var output = void 0; var formatFunction = void 0; if (value === 0 && options.zeroFormat !== null) { output = options.zeroFormat; } else if (value === null && options.nullFormat !== null) { output = options.nullFormat; } else { for (var kind in formats) { if (formats[kind] && formatType.match(formats[kind].regexp)) { formatFunction = formats[kind].format; break; } } formatFunction = formatFunction || numberToFormat.bind(null, options); output = formatFunction(value, formatType, roundingFunction, numerify); } return output; } // 以下代码均为辅助性代码理论上不需要详细阅读,未做详细介绍 function numberToFormat(options, value, format, roundingFunction) { var abs = Math.abs(value); var negP = false; var optDec = false; var abbr = ''; var decimal = ''; var neg = false; var abbrForce = void 0; var signed = void 0; format = format || ''; value = value || 0; if (~format.indexOf('(')) { negP = true; format = format.replace(/[(|)]/g, ''); } else if (~format.indexOf('+') || ~format.indexOf('-')) { signed = ~format.indexOf('+') ? format.indexOf('+') : value < 0 ? format.indexOf('-') : -1; format = format.replace(/[+|-]/g, ''); } if (~format.indexOf('a')) { abbrForce = format.match(/a(k|m|b|t)?/); abbrForce = abbrForce ? abbrForce[1] : false; if (~format.indexOf(' a')) abbr = ' '; format = format.replace(new RegExp(abbr + 'a[kmbt]?'), ''); if (abs >= TRILLION && !abbrForce || abbrForce === 't') { abbr += options.abbrLabel.tr; value = value / TRILLION; } else if (abs < TRILLION && abs >= BILLION && !abbrForce || abbrForce === 'b') { abbr += options.abbrLabel.bi; value = value / BILLION; } else if (abs < BILLION && abs >= MILLION && !abbrForce || abbrForce === 'm') { abbr += options.abbrLabel.mi; value = value / MILLION; } else if (abs < MILLION && abs >= THOUSAND && !abbrForce || abbrForce === 'k') { abbr += options.abbrLabel.th; value = value / THOUSAND; } } if (~format.indexOf('[.]')) { optDec = true; format = format.replace('[.]
玩转ECharts之实现“动态颜色的Label”
pre
1
...
926
927
928
929
930
931
...
2102
next