{"id":19474662,"url":"https://github.com/tomasc/d3_charts","last_synced_at":"2026-05-13T22:34:41.784Z","repository":{"id":20275086,"uuid":"23548249","full_name":"tomasc/d3_charts","owner":"tomasc","description":"Rails helpers for building SVG charts using the d3 library.","archived":false,"fork":false,"pushed_at":"2016-05-19T20:25:33.000Z","size":23,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-11-18T22:02:46.384Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CoffeeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tomasc.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2014-09-01T16:11:47.000Z","updated_at":"2016-06-21T10:50:34.000Z","dependencies_parsed_at":"2022-07-25T07:17:05.678Z","dependency_job_id":null,"html_url":"https://github.com/tomasc/d3_charts","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/tomasc/d3_charts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasc%2Fd3_charts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasc%2Fd3_charts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasc%2Fd3_charts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasc%2Fd3_charts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomasc","download_url":"https://codeload.github.com/tomasc/d3_charts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomasc%2Fd3_charts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33002741,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"ssl_error","status_checked_at":"2026-05-13T13:14:51.610Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-11-10T19:26:06.087Z","updated_at":"2026-05-13T22:34:41.743Z","avatar_url":"https://github.com/tomasc.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# d3_charts\n\n[![Build Status](https://travis-ci.org/tomasc/d3_charts.svg)](https://travis-ci.org/tomasc/d3_charts) [![Gem Version](https://badge.fury.io/rb/d3_charts.svg)](http://badge.fury.io/rb/d3_charts) [![Coverage Status](https://img.shields.io/coveralls/tomasc/d3_charts.svg)](https://coveralls.io/r/tomasc/d3_charts)\n\nRails helpers for building SVG charts using the d3 library.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'd3_charts'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install d3_charts\n\nTo make it work you need to require the javascripts in `application.js`:\n\n    //= require d3_charts\n\nTo add some basic colouring of pie charts, add the the following in `application.css`:\n\n    *= require 'd3_charts'\n\n## Usage\n\n### Pie charts\n\n    = chart_tag(:pie, data, options)\n\nAvailable `options` are:\n\n* `width`, defaults to 1000\n* `height`, defaults to 1000\n\nWhich are passed in like so:\n\n    = chart_tag(:pie, data, { width: 123, height: 123 })\n\n### Area charts\n\n    = chart_tag(:area, data, options)\n\nAvailable `options` are:\n\n* `width`, defaults to 1000\n* `height`, defaults to 1000\n* `date_format`, the strftime format of datums as rendered in the chart, defaults to `%Y-%m-%d`\n* `data_date_format`, the strftime format of datums as specified in the data, defaults to `%Y-%m-%d`\n\nWhich are passed in like so:\n\n    = chart_tag(:area, data, { width: 123, height: 123 })\n\n## TODO:\n\n* More charts:\n  * Line Chart\n  * Histogram Chart\n  * Vertical Bar Chart\n  * Horizontal Bar Chart\n\n## Contributing\n\n1. Fork it ( https://github.com/tomasc/d3_charts/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomasc%2Fd3_charts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomasc%2Fd3_charts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomasc%2Fd3_charts/lists"}