{"id":17246232,"url":"https://github.com/hanson/newline-echarts","last_synced_at":"2025-04-14T04:11:51.054Z","repository":{"id":81844395,"uuid":"50352328","full_name":"Hanson/newline-echarts","owner":"Hanson","description":"echarts 换行利器","archived":false,"fork":false,"pushed_at":"2016-01-25T13:44:27.000Z","size":2,"stargazers_count":17,"open_issues_count":0,"forks_count":13,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-14T04:11:39.419Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Hanson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-25T13:30:15.000Z","updated_at":"2023-03-21T00:23:25.000Z","dependencies_parsed_at":"2023-04-20T04:05:14.876Z","dependency_job_id":null,"html_url":"https://github.com/Hanson/newline-echarts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hanson%2Fnewline-echarts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hanson%2Fnewline-echarts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hanson%2Fnewline-echarts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hanson%2Fnewline-echarts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hanson","download_url":"https://codeload.github.com/Hanson/newline-echarts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248819403,"owners_count":21166477,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T06:32:49.169Z","updated_at":"2025-04-14T04:11:51.034Z","avatar_url":"https://github.com/Hanson.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# newline-echarts\n\n###Introduce\n\n许多人使用百度的echarts.js时候会出现数据名太长覆盖的情况，newline-echarts.js能够很好解决这种换行问题\n\n\n###Usage\n\nnewline(option, 6, 'yAxis')\n* 参数一：是你的option\n* 参数二：是多少个字就换行\n* 参数三：是x轴还是y轴 可选项 'yAxis' OR 'xAxis'\n\n##Example\n```\nvar chart = echarts.init(document.getElementById(\"main\"));\n\u003cscript src=\"js/echarts.js\"\u003e\u003c/script\u003e\nvar option = \n{\n    # your options\n}\n\noption = newline(option, 6, 'yAxis')\nchart.setOption(option)\n\n```\n\n\n![参考图片](http://i.imgur.com/CluVBGb.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhanson%2Fnewline-echarts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhanson%2Fnewline-echarts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhanson%2Fnewline-echarts/lists"}