{"id":17035017,"url":"https://github.com/justquick/google-chartwrapper","last_synced_at":"2025-09-09T08:47:07.362Z","repository":{"id":66561676,"uuid":"1617083","full_name":"justquick/google-chartwrapper","owner":"justquick","description":"Python Wrapper for the Google Chart API","archived":false,"fork":false,"pushed_at":"2014-06-28T07:36:54.000Z","size":424,"stargazers_count":14,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-12T13:13:34.293Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/justquick.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.txt","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-04-15T01:37:45.000Z","updated_at":"2021-10-13T00:43:42.000Z","dependencies_parsed_at":"2023-02-20T10:45:47.208Z","dependency_job_id":null,"html_url":"https://github.com/justquick/google-chartwrapper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/justquick/google-chartwrapper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justquick%2Fgoogle-chartwrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justquick%2Fgoogle-chartwrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justquick%2Fgoogle-chartwrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justquick%2Fgoogle-chartwrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justquick","download_url":"https://codeload.github.com/justquick/google-chartwrapper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justquick%2Fgoogle-chartwrapper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274268373,"owners_count":25253390,"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-09-09T02:00:10.223Z","response_time":80,"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":[],"created_at":"2024-10-14T08:45:17.272Z","updated_at":"2025-09-09T08:47:07.308Z","avatar_url":"https://github.com/justquick.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Google Chart Wrapper\n======================\n\n\n:Authors:\n    Justin Quick \u003cjustquick@gmail.com\u003e, and many more in AUTHORS.txt  \n:Version: 1.0\n\n::\n\n    pip install google-chartwrapper==1.0.0\n    \n\nSecond generation Python wrapper for the `Google Chart Image API \u003chttp://code.google.com/apis/chart/image/\u003e`_.\nChart instances can render the URL of the actual Google chart and quickly insert into webpages on the fly or save images for later use.\nMade for dynamic Python websites (Django, Zope, CGI, etc.) that need on the fly, dynamic chart image generation. Works for Python versions 2.3 to 3.2.::\n\n    from gchart import Pie\n    Pie([5,10]).title('Hello Pie').color('red','lime').label('hello', 'world')\n\nThis generates a chart instance that can be rendered/saved in many ways. The most useful is display on a website\n\n.. image:: http://chart.apis.google.com/chart?chco=ff0000,00ff00\u0026chd=s:f9\u0026chs=300x150\u0026cht=p3\u0026chl=hello|world\u0026chtt=Hello%20Pie\u0026.png\n\nRequirements\n--------------\n\n- Python 2.3 to 3.2\n\nOptional\n\n- PIL (for PNG image manipulation)\n- Nose and Tox (for testing)\n\nUsage\n--------\n\nConstruction\n^^^^^^^^^^^^^^\n\nThe chart takes any iterable python data type (now including numpy arrays)\nand does the encoding for you::\n\n    Data sets \n    \u003e\u003e\u003e dataset = (1, 2, 3)\n \n    Also 2 dimensional\n    \u003e\u003e\u003e dataset = [[3,4], [5,6], [7,8]]\n\nInitialize the chart with a valid type (see API reference) and dataset::\n\n    3D Pie chart\n    \u003e\u003e\u003e from gchart import BaseChart\n    \u003e\u003e\u003e BaseChart('p3', dataset)\n    ... \u003cBaseChart  p3 (1, 2, 3)\u003e\n    \n    Encoding (simple/text/extended)\n    \u003e\u003e\u003e chart = BaseChart('p3', dataset, encoding='text')\n    \n    maxValue (for encoding values)\n    \u003e\u003e\u003e chart = BaseChart('p3', dataset, maxValue=100)\n    \n    Size\n    \u003e\u003e\u003e chart = BaseChart('p3', dataset, size=(300,150))\n    \n    OR directly pass in API parameters\n    \u003e\u003e\u003e chart = BaseChart('p3', dataset, chtt='My Cool Chart', chl='A|B|C')\n\n\nRendering, Viewing and Saving\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\nThe wrapper has many useful ways to take the URL of your chart and output it \ninto different formats like::\n\n    URL of the actual Google chart\n    \u003e\u003e\u003e chart.url\n    ... 'http://chart.apis.google.com/chart?...'\n    \n    As an HTML \u003cimg\u003e tag, keyword arguments will be added as tag attributes\n    \u003e\u003e\u003e chart.img(height=500,id=\"chart\")\n    ... '\u003cimg alt=\"\" title=\"\" src=\"http://chart.apis.google.com/chart?...\" id=\"chart\" height=\"500\" \u003e'\n    \n    Save chart to a file as PNG image, returns file name\n    \u003e\u003e\u003e chart.save('my-cool-chart')\n    ... 'my-cool-chart.png'\n    \n    Fetches the PngImageFile using the PIL module for image manipulation\n    \u003e\u003e\u003e chart.image()\n    ... \u003cPngImagePlugin.PngImageFile instance at 0xb795ee4c\u003e\n    \n    Now that you have the image instance, the world is your oyster\n    Try saving image as JPEG,GIF,etc.\n    \u003e\u003e\u003e chart.image().save('my-cool-chart.jpg','JPEG')\n    \n    Show URL directly in your default web browser\n    \u003e\u003e\u003e chart.show()\n    \nExamples\n------------\n\nSee the `demo page \u003chttp://justquick.github.com/google-chartwrapper-demos/\u003e`_ for tons of examples and source code\n\n\nTesting \n--------\n\nTests are located in ``gchart/tests.py`` and contributions are welcome.\nTo run the tests, simply execute ``nosetests`` in the source checkout. \nIf you have Tox installed and have the right Python environments setup,\nyou can test the module against them by running ``tox`` in the source checkout.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustquick%2Fgoogle-chartwrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustquick%2Fgoogle-chartwrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustquick%2Fgoogle-chartwrapper/lists"}