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

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

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