{"id":20643933,"url":"https://github.com/adjust/nvd3-rails","last_synced_at":"2025-05-10T08:31:11.085Z","repository":{"id":4022250,"uuid":"5122086","full_name":"adjust/nvd3-rails","owner":"adjust","description":"nvd3 reusable charts for rails 3","archived":true,"fork":false,"pushed_at":"2014-07-31T10:22:53.000Z","size":220,"stargazers_count":23,"open_issues_count":1,"forks_count":22,"subscribers_count":74,"default_branch":"master","last_synced_at":"2025-03-22T07:51:27.603Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adjust.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-07-20T10:46:39.000Z","updated_at":"2024-09-10T12:51:29.000Z","dependencies_parsed_at":"2022-09-02T16:22:13.407Z","dependency_job_id":null,"html_url":"https://github.com/adjust/nvd3-rails","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adjust%2Fnvd3-rails","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adjust%2Fnvd3-rails/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adjust%2Fnvd3-rails/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adjust%2Fnvd3-rails/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adjust","download_url":"https://codeload.github.com/adjust/nvd3-rails/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253389742,"owners_count":21900805,"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":[],"created_at":"2024-11-16T16:14:20.434Z","updated_at":"2025-05-10T08:31:10.600Z","avatar_url":"https://github.com/adjust.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NVD3 Rails - reusable charts for rails 3\n\n## Install\n\nTo include nvd3-rails into your rails project add\n\n    gem \"nvd3-rails\", :git =\u003e \"git@github.com:adeven/nvd3-rails.git\", :submodules =\u003e true\n\nTo your Projects Gemfile.\n\nTo add the necessary javascript files into your asset pipeline add\n\n    //= require nvd3-rails\n\nin ```app/assets/javascripts/application.js```\n\nalso add\n\n    *= require nvd3-rails\n\nin ```app/assets/stylesheets/application.css```\n\nNote as of today nvd3 clutters the model naming e.g. lineWithFisheyeChart.js and lineChart.js export their model both as lineChart.\nIf you only need a subset of models e.g. lineChart you can add \n\n    //= require nvd3/lib/d3.v2\n    //= require nvd3/src/core\n    //= require nvd3/src/tooltip\n    //= require nvd3/src/utils.js\n    //= require nvd3/src/models/lineChart\n    //= require nvd3/src/models/legend.js\n    //= require nvd3/src/models/axis.js\n    //= require nvd3/src/models/scatter.js\n    //= require nvd3/src/models/line.js\n\nto your ```application.js```\n\n## Contribution Guide\n\n### Updating Submodules\n\nThe repository uses submodules following are the steps to manually get the submodules:\n\n    git clone https://github.com/adeven/nvd3-rails.git\n    cd nvd3-rails\n    git submodule init\n    git submodule update\n\nOr:\n\n    git clone https://github.com/adeven/nvd3-rails.git\n    cd nvd3-rails\n    git submodule update --init\n\nOr:\n\n    git clone --recursive https://github.com/adeven/nvd3-rails.git\n    cd nvd3-rails\n\n\nIf you want to work inside a submodule, it is possible, but first you need to checkout a branch:\n\n    cd vendor/assets/javascripts/nvd3\n    git checkout master\n\nAfter you've committed your changes to the submodule, you'll update the nvd3-rails project to point to the new commit, but remember to push the submodule changes before pushing the new nvd3-rails commit:\n\n    cd vendor/assets/javascripts/nvd3\n    git push origin master\n    cd ..\n    git add vendor/assets/javascripts/nvd3\n    git commit\n\n### cleaning\n\nIf you want to purge your working directory back to the status of upstream, following commands can be used (remember everything you've worked on is gone after these):\n\ngit reset --hard upstream/master\ngit clean -fdx\n\n### Using a local copy during development\n\nNvd3-rails gets added as a Rails::Engine to your project.\n\nGenerally during development you want your main application to include a local development copy of your engine.\nYou should be able to add gem groups for each Rails environment to your Gemfile, like this:\n\n```ruby\ngroup :development do\n    gem \"nvd3-rails\", :path =\u003e \"../nvd3-rails\"\nend\n\ngroup :production do\n    gem \"nvd3-rails\", :git =\u003e \"git://github.com/adeven/nvd3-rails.git\"\nend\n```\n\nIn Bundler 1.1 and earlier, that generates this error message: \"You cannot specify the same gem twice coming from different sources.\"\nThis should be fixed in 1.2 https://github.com/carlhuda/bundler/issues/751\n\nThere are several work arounds for this, however I sugest to update to the latest version of bundle.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadjust%2Fnvd3-rails","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadjust%2Fnvd3-rails","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadjust%2Fnvd3-rails/lists"}