提交 02410158 编写于 作者: L lang

tweak

上级 89ed2d18
......@@ -191,7 +191,7 @@ define(function (require) {
// Update common properties
var normalStyleAccessPath = ['itemStyle', 'normal'];
var emphasisStyleAccessPath = [normalStyleAccessPath[0], 'emphasis'];
var emphasisStyleAccessPath = ['itemStyle', 'emphasis'];
data.eachItemGraphicEl(function (el, idx) {
var itemModel = data.getItemModel(idx);
var normalItemStyleModel = itemModel.getModel(normalStyleAccessPath);
......@@ -240,10 +240,11 @@ define(function (require) {
},
remove: function (enableAnimation) {
if (this._data) {
var group = this.group;
var group = this.group;
var data = this._data;
if (data) {
if (enableAnimation) {
this._data.eachItemGraphicEl(function (el) {
data.eachItemGraphicEl(function (el) {
el.animateTo({
scale: [0, 0]
}, 200, 'cubicOut', function () {
......
......@@ -120,7 +120,9 @@ define(function (require) {
for (var i = 0; i < seriesGroup.length; i++) {
var subData = seriesGroup[i].getData();
if (!isNaN(subData.getRawValue(dataIndex))) {
seriesNames.push(seriesGroup[i].name);
seriesNames.push(
encodeHTML(seriesGroup[i].name)
);
}
}
......
......@@ -66,32 +66,34 @@ define(function (require) {
// 炫光模糊
// shadowBlur: 0
},
label: {
normal: {
show: true,
// 标签文本格式器,同Tooltip.formatter,不支持回调
// formatter: null,
// 可选为'left'|'right'|'top'|'bottom'
position: 'inside'
// 默认使用全局文本样式,详见TEXTSTYLE
// textStyle: null
},
emphasis: {
show: true
// 标签文本格式器,同Tooltip.formatter,不支持回调
// formatter: null,
// position: 'inside' // 'left'|'right'|'top'|'bottom'
// textStyle: null // 默认使用全局文本样式,详见TEXTSTYLE
}
},
itemStyle: {
normal: {
// color: 各异,
// 标注边线颜色,优先于color
// borderColor: 各异,
// 标注边线线宽,单位px,默认为1
borderWidth: 2,
label: {
show: true,
// 标签文本格式器,同Tooltip.formatter,不支持回调
// formatter: null,
// 可选为'left'|'right'|'top'|'bottom'
position: 'inside'
// 默认使用全局文本样式,详见TEXTSTYLE
// textStyle: null
}
borderWidth: 2
},
emphasis: {
// color: 各异
label: {
show: true
// 标签文本格式器,同Tooltip.formatter,不支持回调
// formatter: null,
// position: 'inside' // 'left'|'right'|'top'|'bottom'
// textStyle: null // 默认使用全局文本样式,详见TEXTSTYLE
}
}
}
}
......
......@@ -15,6 +15,7 @@ define(function (require) {
return valueArr;
};
var curry = zrUtil.curry;
// TODO Specified percent
var markerTypeCalculator = {
/**
......@@ -23,21 +24,21 @@ define(function (require) {
* @param {string} baseAxisDim
* @param {string} valueAxisDim
*/
min: zrUtil.curry(markerTypeCalculatorWithExtent, 0),
min: curry(markerTypeCalculatorWithExtent, 0),
/**
* @method
* @param {module:echarts/data/List} data
* @param {string} baseAxisDim
* @param {string} valueAxisDim
*/
max: zrUtil.curry(markerTypeCalculatorWithExtent, 1),
max: curry(markerTypeCalculatorWithExtent, 1),
/**
* @method
* @param {module:echarts/data/List} data
* @param {string} baseAxisDim
* @param {string} valueAxisDim
*/
average: zrUtil.curry(markerTypeCalculatorWithExtent, 0.5)
average: curry(markerTypeCalculatorWithExtent, 0.5)
};
var dataTransform = function (data, baseAxis, valueAxis, item) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册