Skip to content
This repository has been archived by the owner on Dec 19, 2018. It is now read-only.

Commit

Permalink
Merge pull request #9 from NikoRoberts/master
Browse files Browse the repository at this point in the history
Made CSS file structure match the JS and updated Readme to include JQPlot upgrade instructions
  • Loading branch information
eightbitraptor committed Feb 14, 2013
2 parents 2f02953 + e5f7861 commit b1932d3
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,30 @@ like in this example
<%= jqplot 200, 400, [[1, 2, 3, 4], [4, 3, 2, 1]], {legend: {show: true}} %>

This helper is based on code from https://github.com/Guidecase/jqplot-rails

## Note on Patches/Pull Requests

- Fork the project.
- Make your feature addition or bug fix
- Commit, do not mess with gemspec or version. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
- Send a pull request

To upgrade the JQPlot library

1. Download the JQPlot files from https://bitbucket.org/cleonello/jqplot/downloads/
2. Rename the plugin files from the terminal and remove minified files

```
cd plugins
rename -v 's/jqplot\.(.*)\.js+/$1.js/' *
rm *.min.js
```
3. Copy the files specified below into their appropriate /vendor/assets/ folders

a) javascripts/jqplot/jquery.jqplot.js

b) javascripts/jqplot/excanvas.js

c) javascripts/jqplot/plugins/*

d) stylesheets/jqplot/jquery.jplot.css
4 changes: 4 additions & 0 deletions vendor/assets/stylesheets/jqplot/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/*
*= require_self
*= require ./jquery.jqplot
*/

0 comments on commit b1932d3

Please sign in to comment.