{"action":"created","issue":{"url":"https://api.github.com/repos/pyecharts/pyecharts/issues/1074","repository_url":"https://api.github.com/repos/pyecharts/pyecharts","labels_url":"https://api.github.com/repos/pyecharts/pyecharts/issues/1074/labels{/name}","comments_url":"https://api.github.com/repos/pyecharts/pyecharts/issues/1074/comments","events_url":"https://api.github.com/repos/pyecharts/pyecharts/issues/1074/events","html_url":"https://github.com/pyecharts/pyecharts/issues/1074","id":440427536,"node_id":"MDU6SXNzdWU0NDA0Mjc1MzY=","number":1074,"title":"Line图如何隐藏Y轴坐标系？","user":{"login":"kiverc","id":42595176,"node_id":"MDQ6VXNlcjQyNTk1MTc2","avatar_url":"https://avatars1.githubusercontent.com/u/42595176?v=4","gravatar_id":"","url":"https://api.github.com/users/kiverc","html_url":"https://github.com/kiverc","followers_url":"https://api.github.com/users/kiverc/followers","following_url":"https://api.github.com/users/kiverc/following{/other_user}","gists_url":"https://api.github.com/users/kiverc/gists{/gist_id}","starred_url":"https://api.github.com/users/kiverc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiverc/subscriptions","organizations_url":"https://api.github.com/users/kiverc/orgs","repos_url":"https://api.github.com/users/kiverc/repos","events_url":"https://api.github.com/users/kiverc/events{/privacy}","received_events_url":"https://api.github.com/users/kiverc/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2019-05-05T10:15:01Z","updated_at":"2019-05-05T14:04:06Z","closed_at":"2019-05-05T10:50:00Z","author_association":"NONE","body":"<!--\r\n### 提 issue 注意事项\r\n0. 先仔细阅读文档中是否有关于您需要解决的问题的解决方法\r\n1. 提 issue 前请先搜搜看以往的 issue 有没有解决了您的问题\r\n2. 如若是不能正常使用的问题，请贴上详细的 pyecharts 版本，使用系统以及 Python 版本\r\n3. 最好详细描述问题，必要时加上**代码+贴图**\r\n-->\r\n\r\n**问题**\r\n用的Line图，然后创建了图表 想把Y轴隐藏掉 ，这个1.0能实现吗？\r\n是写在哪个位置？还有想问下X轴的颜色是怎么调？\r\n\r\n\r\n**运行环境（系统环境及 pyecharts 版本）**\r\npyecharts 1.0\r\nmacos\r\n\r\n\r\n**代码及截图**\r\n`c = (\r\n    Line(init_opts=opts.InitOpts(width=\"900px\", height=\"450px\",\r\n                                 page_title=\"行业渗透率\", bg_color=\"#46C5B2\"))\r\n    .add_xaxis([str(x) for x in df['date']])  # X轴要文本格式\r\n    .add_yaxis(\"pene\", [round(x, 4) for x in df['pene_new']],\r\n               is_symbol_show=True,\r\n               is_smooth=True,\r\n               color =\"yellow\",\r\n               yaxis_index=\"0\",\r\n               #is_selected='True',\r\n               #symbol =\"circle\",\r\n               #markpoint_opts=opts.MarkPointOpts(color=\"yellow\"),\r\n               markline_opts=opts.MarkLineOpts(data=[opts.MarkLineItem(type_=\"average\"),]))\r\n    .set_series_opts(\r\n                     label_opts=opts.LabelOpts(is_show=True, color=\"white\"),\r\n                     linestyle_opts=opts.LineStyleOpts(width=2, color=\"yellow\"))\r\n    .set_global_opts(title_opts=opts.TitleOpts(title=\"某行业渗透率\", pos_left='auto',title_textstyle_opts=opts.TextStyleOpts(color=\"white\")),\r\n                     datazoom_opts=[opts.DataZoomOpts()],\r\n                     legend_opts=opts.LegendOpts(orient='vertical',pos_right='10%')))\r\nc.render_notebook()\r\n`\r\n![image](https://user-images.githubusercontent.com/42595176/57192313-a313b780-6f61-11e9-97cb-a078d68b9d4f.png)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/pyecharts/pyecharts/issues/comments/489429563","html_url":"https://github.com/pyecharts/pyecharts/issues/1074#issuecomment-489429563","issue_url":"https://api.github.com/repos/pyecharts/pyecharts/issues/1074","id":489429563,"node_id":"MDEyOklzc3VlQ29tbWVudDQ4OTQyOTU2Mw==","user":{"login":"kiverc","id":42595176,"node_id":"MDQ6VXNlcjQyNTk1MTc2","avatar_url":"https://avatars1.githubusercontent.com/u/42595176?v=4","gravatar_id":"","url":"https://api.github.com/users/kiverc","html_url":"https://github.com/kiverc","followers_url":"https://api.github.com/users/kiverc/followers","following_url":"https://api.github.com/users/kiverc/following{/other_user}","gists_url":"https://api.github.com/users/kiverc/gists{/gist_id}","starred_url":"https://api.github.com/users/kiverc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiverc/subscriptions","organizations_url":"https://api.github.com/users/kiverc/orgs","repos_url":"https://api.github.com/users/kiverc/repos","events_url":"https://api.github.com/users/kiverc/events{/privacy}","received_events_url":"https://api.github.com/users/kiverc/received_events","type":"User","site_admin":false},"created_at":"2019-05-05T14:04:06Z","updated_at":"2019-05-05T14:04:06Z","author_association":"NONE","body":"> @kiverc\r\n> \r\n> * 隐藏 Y 轴： 你试试 `opts.AxisOpts(is_show=False)`\r\n> * X 轴的颜色:\r\n> \r\n> ```python\r\n> opts.AxisOpts(\r\n>     axisline_opts=opts.AxisLineOpts(\r\n>         linestyle_opts=opts.LineStyleOpts(color=\"red\")\r\n>    )\r\n> )\r\n> ```\r\n\r\n.add_yaxis里面Y轴的没有这个参数设置呢，global也没有呢"}}
{"actor":{"display_login":"kiverc"}}