提交 229e15a6 编写于 作者: S sushuang

Fix default text style bug (brought by previous optimize).

上级 a75ee4d8
......@@ -811,11 +811,14 @@ function getAutoColor(color, opt) {
// text position changing when hovering or being emphasis should be
// considered, where the `insideRollback` enables to restore the style.
function applyDefaultTextStyle(textStyle) {
if (textStyle.textFill != null) {
var opt = textStyle.insideRollbackOpt;
// Only insideRollbackOpt create (setTextStyleCommon used),
// applyDefaultTextStyle works.
if (!opt || textStyle.textFill != null) {
return;
}
var opt = textStyle.insideRollbackOpt;
var useInsideStyle = opt.useInsideStyle;
var textPosition = textStyle.insideRawTextPosition;
var insideRollback;
......
......@@ -100,7 +100,9 @@ under the License.
},
xAxis: {
type: 'time',
splitNumber: 7
minInterval: 3600 * 1000,
maxInterval: 3600 * 1000
// splitNumber: 7
},
yAxis: {},
series: [
......
......@@ -138,7 +138,7 @@ under the License.
xAxisIndex: 0
},
toolbox: {
top: 25,
top: 50,
// right: 20,
feature: {
magicType: {
......@@ -179,6 +179,9 @@ under the License.
}
},
tooltip: {},
grid: {
top: 100
},
xAxis: {
data: xAxisData,
name: '横轴',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册