{"id":20925836,"url":"https://github.com/prabdeb/go-google-chart","last_synced_at":"2025-08-23T01:07:13.984Z","repository":{"id":142895854,"uuid":"157321550","full_name":"prabdeb/go-google-chart","owner":"prabdeb","description":"Go utility for converting JSON data type to Google Chart structure so that DataTable can understand","archived":false,"fork":false,"pushed_at":"2018-11-13T05:04:16.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-13T01:16:25.496Z","etag":null,"topics":["go","golang","google-charts"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/prabdeb.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-11-13T04:44:47.000Z","updated_at":"2023-09-16T18:19:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"69bbe303-cbe7-426a-83fd-a6690e44154f","html_url":"https://github.com/prabdeb/go-google-chart","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/prabdeb/go-google-chart","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prabdeb%2Fgo-google-chart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prabdeb%2Fgo-google-chart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prabdeb%2Fgo-google-chart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prabdeb%2Fgo-google-chart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prabdeb","download_url":"https://codeload.github.com/prabdeb/go-google-chart/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prabdeb%2Fgo-google-chart/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271727565,"owners_count":24810561,"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","status":"online","status_checked_at":"2025-08-22T02:00:08.480Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["go","golang","google-charts"],"created_at":"2024-11-18T20:35:24.438Z","updated_at":"2025-08-23T01:07:13.962Z","avatar_url":"https://github.com/prabdeb.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-google-chart\n\nGo utility for converting JSON data type to [Google Chart](https://google-developers.appspot.com/chart\n) structure so that DataTable can understand.\n\nThis utility export the types needed for creating \n[Data Parameters](https://developers.google.com/chart/interactive/docs/reference#dataparam) needed to draw the chart\n\n## Examples\n\n1. Import Chart\n\n    ```go\n    import (\n        GoogleChart \"github.com/prabdeb/go-google-chart\"\n    )\n    ```\n\n2. Initiate the chart object with Columns\n\n    ```go\n    zooData := GoogleChart.Chart{\n        Cols: []GoogleChart.ColsType{\n            GoogleChart.ColsType{\n                Label: \"Animals\",\n                Type:  \"string\",\n            },\n            GoogleChart.ColsType{\n                Label: \"Count\",\n                Type:  \"number\",\n            },\n        },\n    }\n    ```\n\n3. Insert into Rows\n\n    ```go\n    for animal, count := range zooDatabase[\"zoo_name\"].(map[string]interface{}) {\n        zooData.Rows = append(zooData.Rows, GoogleChart.RowType{\n            C: []GoogleChart.RowCType{\n                GoogleChart.RowCType{\n                    V: animal,\n                },\n                GoogleChart.RowCType{\n                    V: count,\n                },\n            },\n        })\n    }\n    ```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprabdeb%2Fgo-google-chart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprabdeb%2Fgo-google-chart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprabdeb%2Fgo-google-chart/lists"}