{"action":"created","issue":{"url":"https://api.github.com/repos/ecomfe/echarts/issues/3719","repository_url":"https://api.github.com/repos/ecomfe/echarts","labels_url":"https://api.github.com/repos/ecomfe/echarts/issues/3719/labels{/name}","comments_url":"https://api.github.com/repos/ecomfe/echarts/issues/3719/comments","events_url":"https://api.github.com/repos/ecomfe/echarts/issues/3719/events","html_url":"https://github.com/ecomfe/echarts/issues/3719","id":167545469,"number":3719,"title":"关于line颜色和symbol的颜色不一致的问题","user":{"login":"daoyuanjiao","id":20084531,"avatar_url":"https://avatars.githubusercontent.com/u/20084531?v=3","gravatar_id":"","url":"https://api.github.com/users/daoyuanjiao","html_url":"https://github.com/daoyuanjiao","followers_url":"https://api.github.com/users/daoyuanjiao/followers","following_url":"https://api.github.com/users/daoyuanjiao/following{/other_user}","gists_url":"https://api.github.com/users/daoyuanjiao/gists{/gist_id}","starred_url":"https://api.github.com/users/daoyuanjiao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daoyuanjiao/subscriptions","organizations_url":"https://api.github.com/users/daoyuanjiao/orgs","repos_url":"https://api.github.com/users/daoyuanjiao/repos","events_url":"https://api.github.com/users/daoyuanjiao/events{/privacy}","received_events_url":"https://api.github.com/users/daoyuanjiao/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-26T08:08:50Z","updated_at":"2016-11-24T03:20:11Z","closed_at":"2016-08-18T15:52:52Z","body":"<!--\n为了方便我们能够复现和修复 bug，请遵从下面的规范描述您的问题。\n-->\n#### 问题简述 (One-line summary)\n\n我在lineStyle里面设置了线的颜色，但是我无法设置series[i]-line.symbol的颜色。symbol的颜色总是根据我的color中的颜色交替显示。如何保证symbol的颜色与线的颜色一致呢？\n#### 版本及环境 (Version & Environment)\n- ECharts 版本 (ECharts version):\n- 浏览器类型和版本 (Browser version):\n- 操作系统类型和版本 (OS Version):\n#### 重现步骤 (Steps to reproduce)\n\n1.\n2.\n#### 期望结果 (Expected behaviour)\n\nsymbol可以设置成与line一样的颜色\n#### 可能哪里有问题 (What went wrong)\n#### ECharts配置项 (ECharts option)\n\n<!-- 下方贴你的option，注意不要删掉下方 ```javascript 和 尾部的 ``` 字样。\n最好是我们能够直接运行的 option。如何得到能运行的 option 参见上方的 guidelines for contributing\n-->\n\n``` javascript\nvar color = ['rgb(155,187,89)','#c23531']\noption = {\n    title: {\n        text: '未来一周气温变化',\n        subtext: '纯属虚构'\n    },\n    color:color,\n    tooltip: {\n        trigger: 'axis'\n    },\n    legend: {\n        data:['最高气温','最低气温']\n    },\n    toolbox: {\n        show: true,\n        feature: {\n            dataZoom: {\n                yAxisIndex: 'none'\n            },\n            dataView: {readOnly: false},\n            magicType: {type: ['line', 'bar']},\n            restore: {},\n            saveAsImage: {}\n        }\n    },\n    xAxis:  {\n        type: 'category',\n        boundaryGap: false,\n        data: ['周一','周二','周三','周四','周五','周六','周日']\n    },\n    yAxis: {\n        type: 'value',\n        axisLabel: {\n            formatter: '{value} °C'\n        }\n    },\n    series: [\n        {\n            name:'最高气温',\n            type:'line',\n            symbol:'arrow',\n        symbolSize:10,\n            data:[11, 11, 15, 13, 12, 13, 10],           \n            lineStyle: {\n                normal: {\n                        color: color[0],\n                        },\n                },\n          },\n        {\n            name:'最低气温',\n            type:'line',\n            symbol:'arrow',\n                symbolSize:10,\n            data:[1, -2, 2, 5, 3, 2, 0],\n            lineStyle: {\n                normal: {\n                        color: color[0],\n                        },\n                },\n         },\n        {\n            name:'最低气温',\n            type:'line',\n            symbol:'arrow',\n        symbolSize:10,\n            data:[5, 5,8, 9, 8, 9, 5],\n            lineStyle: {\n                normal: {\n                        color: color[1],\n                        },\n                },\n        }\n    ]\n};\n```\n#### 其他信息 (Other comments)\n\n<!-- 例如，截图或线上实例 (JSFiddle/JSBin/Codepen) (For example: Screenshot or Online demo) -->\n\n![1234](https://cloud.githubusercontent.com/assets/20084531/17275180/3bbf71dc-5731-11e6-849d-77d5c28dce03.png)\n"},"comment":{"url":"https://api.github.com/repos/ecomfe/echarts/issues/comments/262681490","html_url":"https://github.com/ecomfe/echarts/issues/3719#issuecomment-262681490","issue_url":"https://api.github.com/repos/ecomfe/echarts/issues/3719","id":262681490,"user":{"login":"daoyuanjiao","id":20084531,"avatar_url":"https://avatars.githubusercontent.com/u/20084531?v=3","gravatar_id":"","url":"https://api.github.com/users/daoyuanjiao","html_url":"https://github.com/daoyuanjiao","followers_url":"https://api.github.com/users/daoyuanjiao/followers","following_url":"https://api.github.com/users/daoyuanjiao/following{/other_user}","gists_url":"https://api.github.com/users/daoyuanjiao/gists{/gist_id}","starred_url":"https://api.github.com/users/daoyuanjiao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daoyuanjiao/subscriptions","organizations_url":"https://api.github.com/users/daoyuanjiao/orgs","repos_url":"https://api.github.com/users/daoyuanjiao/repos","events_url":"https://api.github.com/users/daoyuanjiao/events{/privacy}","received_events_url":"https://api.github.com/users/daoyuanjiao/received_events","type":"User","site_admin":false},"created_at":"2016-11-24T03:20:11Z","updated_at":"2016-11-24T03:20:11Z","body":"非常感谢，使用成功！"}}
{"actor":{"display_login":"daoyuanjiao"}}