You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2019/10/15 09:44:43 UTC
[GitHub] [incubator-echarts] edenluhongdeng opened a new issue #11407: 多类目项 xAxis.axisTick.interval 失效
edenluhongdeng opened a new issue #11407: 多类目项 xAxis.axisTick.interval 失效
URL: https://github.com/apache/incubator-echarts/issues/11407
### Version
4.3.0
### Steps to reproduce
在4.3.0版本可视使用,多类目X轴失效
### What is expected?
在4.3.0版本可视使用
在4.0.4板本是可以使用的
### What is actually happening?
解决问题
---
877898552@qq.com
<!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
{
"animation": false,
"title": {
"text": "",
"subtext": "",
"show": false,
"textStyle": {
"color": "#666",
"fontWeight": "bold"
},
"left": "left",
"subtextStyle": {
"color": "#111",
"fontSize": 14,
"fontFamily": "MicrosoftYaHei",
"fontWeight": "normal",
"fontStyle": "normal"
}
},
"legend": {
"data": [
{
"name": "折扣",
"align": "left"
}
],
"show": true,
"type": "scroll",
"itemWidth": 15,
"borderRadius": 10,
"orient": "horizontal",
"top": "bottom",
"left": "center",
"position": "bottom",
"_align": "center",
"_orient": "bottom",
"textStyle": {
"fontSize": 14,
"lineHeight": 18,
"color": "rgba(85,85,85,1)",
"fontWeight": "normal",
"fontStyle": "normal"
}
},
"xAxis": [
{
"type": "category",
"data": [
{
"value": "办公用品"
},
{
"value": "办公用品",
"textStyle": {
"color": "#ffffff"
}
},
{
"value": "办公用品",
"textStyle": {
"color": "#ffffff"
}
},
{
"value": "办公用品",
"textStyle": {
"color": "#ffffff"
}
},
{
"value": "电子设备"
},
{
"value": "电子设备",
"textStyle": {
"color": "#ffffff"
}
},
{
"value": "电子设备",
"textStyle": {
"color": "#ffffff"
}
},
{
"value": "电子设备",
"textStyle": {
"color": "#ffffff"
}
},
{
"value": "家具"
},
{
"value": "家具",
"textStyle": {
"color": "#ffffff"
}
},
{
"value": "家具",
"textStyle": {
"color": "#ffffff"
}
},
{
"value": "家具",
"textStyle": {
"color": "#ffffff"
}
}
],
"name": "",
"nameGap": 15,
"offset": 20,
"position": "bottom",
"axisTick": {
"show": true,
"length": 40,
"lineStyle": {
"width": 1,
"color": "rgba(204,204,204,1)"
}
},
"axisLine": {
"show": true,
"lineStyle": {
"width": 1,
"color": "rgba(204,204,204,1)"
}
},
"axisLabel": {
"show": true,
"showMinLabel": true,
"rotate": 0,
"fontStyle": "normal",
"fontWeight": "normal",
"textStyle": {
"color": "rgba(136,136,136,1)",
"fontSize": 14
}
},
"show": true,
"nameTextStyle": {
"fontSize": 14,
"color": "rgba(136,136,136,1)",
"fontStyle": "normal",
"fontWeight": "normal",
"_isShow": true,
"rich": {
"alignConfig": {
"fontStyle": "normal",
"fontWeight": "normal"
}
}
}
},
{
"type": "category",
"data": [
{
"value": "标准级"
},
{
"value": "当日"
},
{
"value": "二级"
},
{
"value": "一级"
},
{
"value": "标准级"
},
{
"value": "当日"
},
{
"value": "二级"
},
{
"value": "一级"
},
{
"value": "标准级"
},
{
"value": "当日"
},
{
"value": "二级"
},
{
"value": "一级"
}
],
"name": "",
"nameGap": 15,
"offset": 0,
"position": "bottom",
"axisTick": {
"show": true,
"length": 5,
"interval": "auto",
"lineStyle": {
"width": 1,
"color": "rgba(204,204,204,1)"
}
},
"axisLine": {
"show": true,
"lineStyle": {
"width": 1,
"color": "rgba(204,204,204,1)"
}
},
"axisLabel": {
"show": true,
"interval": 0,
"showMinLabel": true,
"rotate": 0,
"fontStyle": "normal",
"fontWeight": "normal",
"textStyle": {
"color": "rgba(136,136,136,1)",
"fontSize": 14
}
},
"show": true,
"nameTextStyle": {
"fontSize": 14,
"color": "rgba(136,136,136,1)",
"fontStyle": "normal",
"fontWeight": "normal",
"_isShow": true,
"rich": {
"alignConfig": {
"fontStyle": "normal",
"fontWeight": "normal"
}
}
}
}
],
"yAxis": [
{
"type": "value",
"position": "left",
"name": "",
"min": 0,
"max": 500,
"axisTick": {
"show": true,
"lineStyle": {
"width": 1,
"color": "rgba(204,204,204,1)"
}
},
"axisLabel": {
"show": true,
"rotate": 0,
"textStyle": {
"fontStyle": "normal",
"fontWeight": "normal",
"color": "rgba(136,136,136,1)",
"fontSize": 14
}
},
"axisLine": {
"show": true,
"lineStyle": {
"width": 1,
"color": "rgba(204,204,204,1)"
}
},
"splitLine": {
"show": false
},
"yAxisFromatterValues": [
"0",
"50",
"100",
"150",
"200",
"250",
"300",
"0",
"100",
"200",
"300",
"400",
"500"
],
"extMinAndMax": [
0,
500
],
"interval": 100,
"show": true,
"nameTextStyle": {
"fontStyle": "normal",
"fontWeight": "normal",
"fontSize": 14,
"color": "rgba(136,136,136,1)",
"_isShow": true,
"rich": {
"alignConfig": {
"fontStyle": "normal",
"fontWeight": "normal"
}
}
}
}
],
"series": [
{
"name": "折扣",
"type": "bar",
"data": [
{
"name": [
"办公用品",
"标准级"
],
"titleName": [
"产品大类",
"邮寄方式"
],
"titleAliasName": [
"产品大类",
"邮寄方式"
],
"value": 282.2,
"formatValue": "282.20",
"label": {
"normal": {
"position": "top"
}
},
"itemStyle": {
"normal": {
"color": "rgba(0,179,158,1)"
}
}
},
{
"name": [
"办公用品",
"当日"
],
"titleName": [
"产品大类",
"邮寄方式"
],
"titleAliasName": [
"产品大类",
"邮寄方式"
],
"value": 20,
"formatValue": "20.00",
"label": {
"normal": {
"position": "top"
}
},
"itemStyle": {
"normal": {
"color": "rgba(0,179,158,1)"
}
}
},
{
"name": [
"办公用品",
"二级"
],
"titleName": [
"产品大类",
"邮寄方式"
],
"titleAliasName": [
"产品大类",
"邮寄方式"
],
"value": 105.6,
"formatValue": "105.60",
"label": {
"normal": {
"position": "top"
}
},
"itemStyle": {
"normal": {
"color": "rgba(0,179,158,1)"
}
}
},
{
"name": [
"办公用品",
"一级"
],
"titleName": [
"产品大类",
"邮寄方式"
],
"titleAliasName": [
"产品大类",
"邮寄方式"
],
"value": 78.4,
"formatValue": "78.40",
"label": {
"normal": {
"position": "top"
}
},
"itemStyle": {
"normal": {
"color": "rgba(0,179,158,1)"
}
}
},
{
"name": [
"电子设备",
"标准级"
],
"titleName": [
"产品大类",
"邮寄方式"
],
"titleAliasName": [
"产品大类",
"邮寄方式"
],
"value": 149.8,
"formatValue": "149.80",
"label": {
"normal": {
"position": "top"
}
},
"itemStyle": {
"normal": {
"color": "rgba(0,179,158,1)"
}
}
},
{
"name": [
"电子设备",
"当日"
],
"titleName": [
"产品大类",
"邮寄方式"
],
"titleAliasName": [
"产品大类",
"邮寄方式"
],
"value": 10.8,
"formatValue": "10.80",
"label": {
"normal": {
"position": "top"
}
},
"itemStyle": {
"normal": {
"color": "rgba(0,179,158,1)"
}
}
},
{
"name": [
"电子设备",
"二级"
],
"titleName": [
"产品大类",
"邮寄方式"
],
"titleAliasName": [
"产品大类",
"邮寄方式"
],
"value": 56.4,
"formatValue": "56.40",
"label": {
"normal": {
"position": "top"
}
},
"itemStyle": {
"normal": {
"color": "rgba(0,179,158,1)"
}
}
},
{
"name": [
"电子设备",
"一级"
],
"titleName": [
"产品大类",
"邮寄方式"
],
"titleAliasName": [
"产品大类",
"邮寄方式"
],
"value": 34.8,
"formatValue": "34.80",
"label": {
"normal": {
"position": "top"
}
},
"itemStyle": {
"normal": {
"color": "rgba(0,179,158,1)"
}
}
},
{
"name": [
"家具",
"标准级"
],
"titleName": [
"产品大类",
"邮寄方式"
],
"titleAliasName": [
"产品大类",
"邮寄方式"
],
"value": 192.25,
"formatValue": "192.25",
"label": {
"normal": {
"position": "top"
}
},
"itemStyle": {
"normal": {
"color": "rgba(0,179,158,1)"
}
}
},
{
"name": [
"家具",
"当日"
],
"titleName": [
"产品大类",
"邮寄方式"
],
"titleAliasName": [
"产品大类",
"邮寄方式"
],
"value": 15.65,
"formatValue": "15.65",
"label": {
"normal": {
"position": "top"
}
},
"itemStyle": {
"normal": {
"color": "rgba(0,179,158,1)"
}
}
},
{
"name": [
"家具",
"二级"
],
"titleName": [
"产品大类",
"邮寄方式"
],
"titleAliasName": [
"产品大类",
"邮寄方式"
],
"value": 65.45,
"formatValue": "65.45",
"label": {
"normal": {
"position": "top"
}
},
"itemStyle": {
"normal": {
"color": "rgba(0,179,158,1)"
}
}
},
{
"name": [
"家具",
"一级"
],
"titleName": [
"产品大类",
"邮寄方式"
],
"titleAliasName": [
"产品大类",
"邮寄方式"
],
"value": 53.05,
"formatValue": "53.05",
"label": {
"normal": {
"position": "top"
}
},
"itemStyle": {
"normal": {
"color": "rgba(0,179,158,1)"
}
}
}
],
"label": {
"normal": {
"show": true,
"textStyle": {
"fontSize": 14,
"fontWeight": "normal",
"fontStyle": "normal",
"color": "rgba(85,85,85,1)",
"insideColor": "rgba(0,0,0,1)"
}
},
"emphasis": {
"show": true,
"textStyle": {
"fontSize": 14
}
}
},
"markLine": {
"data": []
},
"labelLine": {
"normal": {
"show": true
}
}
}
],
"color": [
"rgba(0,179,158,1)",
"rgba(64,73,97,1)",
"rgba(254,112,106,1)",
"rgba(255,173,31,1)",
"rgba(83,121,138,1)",
"rgba(23,164,230,1)",
"rgba(121,85,72,1)",
"rgba(149,117,205,1)",
"rgba(79,102,91,1)",
"rgba(37,205,217,1)",
"rgba(255,137,82,1)"
],
"grid": {
"left": "12%",
"right": "12%",
"top": "14%",
"bottom": "14%",
"width": "auto",
"height": "auto"
},
"tooltip": {
"trigger": "item",
"followPointer": true,
"confine": true,
"borderWidth": 0,
"extraCssText": "box-shadow: 0px 3px 6px 0px rgba(74,81,93,0.25);",
"textStyle": {
"fontSize": 14,
"color": "rgba(85,85,85,1)"
},
"borderColor": "rgba(78,89,104,0.19)",
"backgroundColor": "rgba(255,255,255,1)"
},
"chartType": "bar"
}
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org