{"id":13394951,"url":"https://github.com/nullscreen/squid","last_synced_at":"2025-04-09T17:21:38.739Z","repository":{"id":32797595,"uuid":"36389948","full_name":"nullscreen/squid","owner":"nullscreen","description":"A Ruby library to plot charts in PDF files","archived":false,"fork":false,"pushed_at":"2023-04-03T15:44:29.000Z","size":1224,"stargazers_count":221,"open_issues_count":10,"forks_count":41,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-03-26T14:56:02.986Z","etag":null,"topics":["chart","charts","gem","graph","graphs","pdf","prawn","report","ruby"],"latest_commit_sha":null,"homepage":"http://nullscreen.github.io/squid/","language":"Ruby","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/nullscreen.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"MIT-LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2015-05-27T19:17:43.000Z","updated_at":"2024-11-23T07:13:27.000Z","dependencies_parsed_at":"2023-07-22T05:42:32.831Z","dependency_job_id":"bdfd2042-7198-47bd-940c-f8e4116d6062","html_url":"https://github.com/nullscreen/squid","commit_stats":null,"previous_names":["fullscreen/squid"],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nullscreen%2Fsquid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nullscreen%2Fsquid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nullscreen%2Fsquid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nullscreen%2Fsquid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nullscreen","download_url":"https://codeload.github.com/nullscreen/squid/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248075039,"owners_count":21043514,"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":["chart","charts","gem","graph","graphs","pdf","prawn","report","ruby"],"created_at":"2024-07-30T17:01:37.225Z","updated_at":"2025-04-09T17:21:38.718Z","avatar_url":"https://github.com/nullscreen.png","language":"Ruby","readme":"Squid\n=====\n\n[![Build Status](https://github.com/nullscreen/squid/actions/workflows/ci.yml/badge.svg)](https://github.com/nullscreen/squid/actions)\n[![Coverage Status](https://codecov.io/gh/nullscreen/squid/branch/master/graph/badge.svg?token=QcwqA4eA4h)](https://codecov.io/gh/nullscreen/squid)\n[![Codacy](https://app.codacy.com/project/badge/Grade/a36f326196474937a2821442930dbbf1)](https://app.codacy.com/gh/nullscreen/squid/dashboard)\n[![Online docs](http://img.shields.io/badge/docs-✓-green.svg)](http://www.rubydoc.info/github/nullscreen/squid/master/Squid/Interface)\n[![Gem Version](http://img.shields.io/gem/v/squid.svg)](http://rubygems.org/gems/squid)\n\nSquid helps you write Ruby code to draw graphs in PDF files.\n\nThe **source code** is available on\n[GitHub](https://github.com/nullscreen/squid) and the **documentation** on\n[RubyDoc](http://www.rubydoc.info/github/nullscreen/squid/master/Squid/Interface).\n\nQuickstart\n----------\n\n[Prawn](http://prawnpdf.org) is a great Ruby library to generate PDF files but\nlacks high-level components to draw graphs.\n\nSquid adds a single method `chart(data = {}, options = {})` to Prawn. Provide\nthe `data` to plot as a hash, with each key/value representing a series. For\ninstance, the following code generates the graph below:\n\n```ruby\ndata = {views: {2013 =\u003e 182, 2014 =\u003e 46, 2015 =\u003e 134}}\nchart data\n```\n\n![01-basic](https://raw.githubusercontent.com/nullscreen/squid/master/examples/readme.png \"chart(data)\")\n\nA comprehensive guide to Squid options\n--------------------------------------\n\nAll the settings available for the `chart` method are detailed on the [Squid homepage](http://nullscreen.github.io/squid):\n\n[![Squid homepage](https://cloud.githubusercontent.com/assets/7408595/9561009/3a333b1c-4de8-11e5-9eeb-0c45649e41b7.png)](http://nullscreen.github.io/squid)\n\nPlease proceed to\n[http://nullscreen.github.io/squid](http://nullscreen.github.io/squid) for more\ndetails and examples.\n\nHow to install\n--------------\n\nSquid requires **Ruby 2.4 or higher**. If used in a Rails project, requires\n**Rails 5.0 or higher**.\n\nTo include in your project, add `gem 'squid', '~\u003e 1.4'` to the `Gemfile` file of\nyour Ruby project.\n\nHow to generate the manual\n--------------------------\n\n```sh\nrake manual\n```\n\nHow to contribute\n-----------------\n\nIf you’ve made it this far in the README… thanks! :v:\nFeel free to try it the gem, explore the code, and send issues or pull requests.\n\nAll pull requests will have to make GitHub Actions and Code Climate happy in\norder to be accepted. :kissing_smiling_eyes:\n\nYou can also run the tests locally with `bundle exec rspec`.\n\nHappy hacking!\n","funding_links":[],"categories":["Ruby"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnullscreen%2Fsquid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnullscreen%2Fsquid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnullscreen%2Fsquid/lists"}