{ "info": { "author": "Mikhail Korobov", "author_email": "kmike84@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 7 - Inactive", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "==================\ndjango-chart-tools\n==================\n\ndjango-chart-tools is a simple app for creating charts in django templates\nusing Google Chart API. It doesn't try to invent another language for defining\ncharts unlike other Google Chart API wrappers. It instead make it easy to\nleverage the power of existing user-friendly chart-building tools like\nhttp://dexautomation.com/googlechartgenerator.php\n\n.. warning::\n\n Please note that Image Chart API (that django-chart-tools is using)\n is deprecated by Google.\n\nInstallation\n============\n\n::\n\n $ pip install django-chart-tools\n\nor ::\n\n $ easy_install django-chart-tools\n\nor grab the latest and the greatest version from bitbucket\n(https://bitbucket.org/kmike/django-chart-tools)\n\nThen add 'chart_tools' to your INSTALLED_APPS.\n\nUsage\n=====\n\n1. Generate a chart you like using\n http://dexautomation.com/googlechartgenerator.php or by following API docs\n https://developers.google.com/chart/image/docs/gallery/chart_gall.\n\n2. Copy&paste output to your template and wrap it with\n {% chart %} ... {% endchart %} tags::\n\n {% load chart_tags %}\n {% chart %}\n http://chart.apis.google.com/chart\n ?chxr=0,0,160\n &chxt=y\n &chbh=a\n &chs=440x220\n &cht=bvs\n &chco=4D89F9\n &chds=0,160\n &chd=t:10,50,60,80,40,60,30\n &chtt=Horizontal+bar+chart\n {% endchart %}\n\n You'll get the tag with generated chart in you template after rendering.\n\n3. chart tag also allows cleaned-up version of the example above::\n\n {% load chart_tags %}\n {% chart %}\n chxr=0,0,160\n chxt=y\n chbh=a\n chs=440x220\n cht=bvs\n chco=4D89F9\n chds=0,160\n chd=t:10,50,60,80,40,60,30\n chtt=Horizontal+bar+chart\n {% endchart %}\n\n4. Replace test data with your real data. For example, we want to provide\n real values. Change the test data in Image Chart Editor. The\n parameter we change will be highlited. It is 'chd' in our case. So now\n we replace 'chd' data with real data that comes from view::\n\n {% load chart_tags %}\n {% chart %}\n chxr=0,0,160\n chxt=y\n chbh=a\n chs=440x220\n cht=bvs\n chco=4D89F9\n chds=0,160\n chd=t:{{ values|join:',' }}\n chtt=Horizontal+bar+chart\n {% endchart %}\n\nThat's all.\n\nThere is also up-to-date API reference from Google:\nhttps://developers.google.com/chart/image/docs/chart_params\n\nWhat is {% chart %} tag for\n===========================\n\nI found plain copy-pasted html tag with some {{ variables }}\nunmaintainable and unreadable so the {% chart %} was introduced.\n\n1. It removes all whitespaces;\n2. builds chart url from parameter list;\n3. generates the tag with proper 'src', 'width' and 'height' attributes\n\nso generated charts can be nicely formatted and it is possible to maintain\nthem later.\n\n\nReusable chart tags\n===================\n\nOnce you created a chart you like you'll possibly want to use it multiple\ntimes. The preferred way is to write inclusion template tag around your\ntemplate::\n\n from django import template\n register = template.Library()\n\n @register.inclusion_tag('chart_tools/bar_chart.html')\n def bar_chart(values, captions, size='580x100', max_value=None):\n max_value = max_value or max(values)\n return {\n 'values': values,\n 'captions': captions,\n 'size': size,\n 'max_value': max_value,\n }\n\nThis example bar_chart tag is included in django-chart-tools.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://bitbucket.org/kmike/django-chart-tools/", "keywords": null, "license": "MIT license", "maintainer": null, "maintainer_email": null, "name": "django-chart-tools", "package_url": "https://pypi.org/project/django-chart-tools/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-chart-tools/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://bitbucket.org/kmike/django-chart-tools/" }, "release_url": "https://pypi.org/project/django-chart-tools/1.0/", "requires_dist": null, "requires_python": null, "summary": "A thin wrapper around Google Chart API that tries not to invent a new language for describing charts.", "version": "1.0" }, "last_serial": 1026270, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "e2d1238a4f6cfd39be86311feb0f929d", "sha256": "3054ebcb96ff3967dc1e703e3328e5b85fb3d7e192f4894ece3cfb2fc180c327" }, "downloads": -1, "filename": "django-chart-tools-0.1.0.tar.gz", "has_sig": false, "md5_digest": "e2d1238a4f6cfd39be86311feb0f929d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4207, "upload_time": "2010-08-01T13:37:50", "url": "https://files.pythonhosted.org/packages/0c/85/b889686213edbe7a0447c04b0c5b8240196bf919f37f795a95b9a77ac5df/django-chart-tools-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "ce845bedbafffb24a8ea09a05f04967d", "sha256": "1a748c594d968d7335a096e26efaf109eb218b8a8b9d8f1ee3a186de30316227" }, "downloads": -1, "filename": "django-chart-tools-0.1.1.tar.gz", "has_sig": false, "md5_digest": "ce845bedbafffb24a8ea09a05f04967d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4199, "upload_time": "2010-08-01T14:41:24", "url": "https://files.pythonhosted.org/packages/b7/0f/3e61c74b9852a31dcc073d5a136aa53eab7c3cbd21c439caf5815e647a0d/django-chart-tools-0.1.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "c62b826080493a69b85522120685feae", "sha256": "f453b29745766acd5fbece84eaef00b16e5a991d235bede6727fea30fc18e3da" }, "downloads": -1, "filename": "django-chart-tools-0.2.tar.gz", "has_sig": false, "md5_digest": "c62b826080493a69b85522120685feae", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4740, "upload_time": "2010-08-12T20:04:22", "url": "https://files.pythonhosted.org/packages/5e/e2/b179fd84a6240848e83d33cbf38dfb40983b982c1047ba349238a6f1271c/django-chart-tools-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "c960b54d96f0ee8fda22bfaf2e150031", "sha256": "bcb3a9f58a4405c32ea45804824b5fc61fc1245a0dc530886996898695eba528" }, "downloads": -1, "filename": "django-chart-tools-0.2.1.tar.gz", "has_sig": false, "md5_digest": "c960b54d96f0ee8fda22bfaf2e150031", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4915, "upload_time": "2010-11-26T14:11:27", "url": "https://files.pythonhosted.org/packages/48/0f/ac178923863eaebeedd6dda3a2fa82e7afec70d4e2e14eea8f7e45a83cb3/django-chart-tools-0.2.1.tar.gz" } ], "1.0": [ { "comment_text": "", "digests": { "md5": "1e395befda9ff0b0b0d510701498ac61", "sha256": "bd7dc65709272471aee3355db1072d607f15965ec8e25b9be8f40e83381e9938" }, "downloads": -1, "filename": "django-chart-tools-1.0.tar.gz", "has_sig": false, "md5_digest": "1e395befda9ff0b0b0d510701498ac61", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5055, "upload_time": "2014-03-11T18:41:49", "url": "https://files.pythonhosted.org/packages/9e/54/7f5daa1410ed023e4138f8e44f19cc0bb05999a58e76b383c6028d7bd546/django-chart-tools-1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1e395befda9ff0b0b0d510701498ac61", "sha256": "bd7dc65709272471aee3355db1072d607f15965ec8e25b9be8f40e83381e9938" }, "downloads": -1, "filename": "django-chart-tools-1.0.tar.gz", "has_sig": false, "md5_digest": "1e395befda9ff0b0b0d510701498ac61", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5055, "upload_time": "2014-03-11T18:41:49", "url": "https://files.pythonhosted.org/packages/9e/54/7f5daa1410ed023e4138f8e44f19cc0bb05999a58e76b383c6028d7bd546/django-chart-tools-1.0.tar.gz" } ] }