summaryrefslogtreecommitdiffstats
path: root/js/rendercharts.js
Commit message (Collapse)AuthorAgeFilesLines
* Add type estimation to rendercharts.js to improve CSV portabilityTakayuki MATSUOKA2015-04-031-3/+58
|
* Replace chartselector by Bootstrap's tab.Takayuki MATSUOKA2015-04-021-2/+2
| | | | | js/bootstrap-patch.css is copied from the following answer on SO : http://stackoverflow.com/a/23267110/2132223
* Add js/rendercharts.jsTakayuki MATSUOKA2015-03-311-0/+180
js/rendercharts.js is JavaScript filter which renders <div> tag which has data-csv-props attribute. js/rendercharts.js invoke Google Charts script for rendering. "data-csv-props" attribute is custom properties for js/rendercharts.js. Properties which has "csv" prefix are basic settings for js/rendercharts.js. "csvSrc" : Source CSV URL "csvGvType": Google Charts class name "csvGvPackage": Google Charts package name. See Each Google Charts class document has "Loading" section - https://google-developers.appspot.com/chart/interactive/docs/gallery/table#Loading - https://google-developers.appspot.com/chart/interactive/docs/gallery/combochart#Loading In this section, you can find "class name" and "package name". Other properties are "Configuration Options" for specific Google Charts class. Each class document has "Configuration Options" section - https://google-developers.appspot.com/chart/interactive/docs/gallery/table#Configuration_Options - https://google-developers.appspot.com/chart/interactive/docs/gallery/combochart#Configuration_Options # CSV file format Each column in CSV header (first) line must contain "type" suffix. Suffix format is "ColumnName:ColumnType". "ColumnType" must be choosen from the type name { "string", "number", "boolean" }. CSV example : ``` "Name:string","Salary:number","Full Time Employee:boolean" Mike,10000,true Jim,8000,false Alice,12500,true Bob,7000,true ```