{"id":13756389,"url":"https://github.com/zieckey/gochart","last_synced_at":"2025-04-10T05:04:33.178Z","repository":{"id":25028146,"uuid":"28447616","full_name":"zieckey/gochart","owner":"zieckey","description":"A chart plotting tool implemented by Golang and Highcharts.","archived":false,"fork":false,"pushed_at":"2017-03-21T10:39:11.000Z","size":4402,"stargazers_count":309,"open_issues_count":0,"forks_count":43,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-04-03T01:12:02.717Z","etag":null,"topics":["excel","golang","highcharts","plot"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zieckey.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-24T11:59:23.000Z","updated_at":"2025-03-30T07:40:35.000Z","dependencies_parsed_at":"2022-08-23T11:31:09.346Z","dependency_job_id":null,"html_url":"https://github.com/zieckey/gochart","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zieckey%2Fgochart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zieckey%2Fgochart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zieckey%2Fgochart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zieckey%2Fgochart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zieckey","download_url":"https://codeload.github.com/zieckey/gochart/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248161277,"owners_count":21057554,"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":["excel","golang","highcharts","plot"],"created_at":"2024-08-03T11:00:43.343Z","updated_at":"2025-04-10T05:04:33.140Z","avatar_url":"https://github.com/zieckey.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"gochart\n=======\n\n[中文说明](http://blog.codeg.cn/2014/12/27/gochart-info/)\n\n[gochart](https://github.com/zieckey/gochart) is a chart ploting tool which is simple to use. It used the open sources [golang](https://golang.org) and [highcharts](http://www.highcharts.com) which is modeled after [goplot](https://github.com/skoo87/goplot). It can plot spline/line/area/bar/column/pie. This tool is just a binary independent with any other lib or environment.\n\n### Dependent\n\n- [https://github.com/zieckey/goini](https://github.com/zieckey/goini)\n- [https://github.com/bitly/go-simplejson](https://github.com/bitly/go-simplejson)\n\n\n### Install from resource\n\n- Install go\n- Execute the command : `go get -u github.com/zieckey/gochart`\n\n### Usage\n\n* Download the binary tar.gz file and untar it. Enter the gochart directory, you can see an executable file `gochart` and some *.chart files. This chart files are the example data files. Execute the exe `gochart`, then you can open your browser and navigate to [http://localhost:8000](http://localhost:8000), and now you can see the charts.\n* You can put `gochart` to your `PATH` environment and execute `gochart` in the directory which holds *.chart files. If you have several *.chart files, you can refresh the web page to plot diffrent chart.\n\n### Example 1 : Spline data format \n  \nThis data format can be also used to plot line/bar/column/area when you can change the value of `ChartType`. The option value of `ChartType` is below : \n\n- spline\n- line\n- bar\n- column\n- area\n\n```go\n# The chart type , option : spline/line/bar/column/area\nChartType = spline\nTitle = Source: WorldClimate.com\nSubTitle = Monthly Average Temperature\nValueSuffix = °C\n\n# The height (px) of the chart\nHeight = 400\n\n# The x Axis numbers. The count this numbers MUST be the same with the data series\nXAxisNumbers = 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12\n\n# The y Axis text\nYAxisText = Temperature (°C)\n\n# The data and the name of the lines\nData|Tokyo = 7.0, 6.9, 9.5, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6\nData|New York = -0.2, 0.8, 5.7, 11.3, 17.0, 22.0, 24.8, 24.1, 20.1, 14.1, 8.6, 2.5\nData|Berlin = -0.9, 0.6, 3.5, 8.4, 13.5, 17.0, 18.6, 17.9, 14.3, 9.0, 3.9, 1.0\nData|London = 3.9, 4.2, 5.7, 8.5, 11.9, 15.2, 17.0, 16.6, 14.2, 10.3, 6.6, 4.8\n```\n\n\n### Example 1 : Pie chart\n\n```go\nChartType  = pie\nTitle \t   = Browser market shares at a specific website, 2014\nSubTitle   = from website.com\nSeriesName = Browser shares\n\n# The data and the name of the pieces of the pie \nData|Firefox = 45.0\nData|IE \t = 26.8\nData|Chrome  = 12.8\nData|Safari  = 8.5\nData|Opera   = 6.2\nData|Others  = 0.7    \n```\n\n### Spline\n\n![](image/spline.png)\n\n### Pie\n![](image/pie.png)\n\n### Column\n![](image/column.png)\n\n###　Area\n![](image/area.png)\n\n### Line\n![](image/line.png)\n\n### Bar\n![](image/bar.png)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzieckey%2Fgochart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzieckey%2Fgochart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzieckey%2Fgochart/lists"}