Commit Graph

7 Commits

Author SHA1 Message Date
Takayuki MATSUOKA
56216ac160 Add 'include' function to strapdown
Usage:
Set 'src' attribute to <xmp> tag to include external Markdown file.

Example :
<xmp theme="sandstone" style="display:none;" src="lz4_Block_format.md"></xmp>
2015-05-05 11:36:56 +09:00
Takayuki MATSUOKA
bbc4f56132 Add type estimation to rendercharts.js to improve CSV portability 2015-04-04 06:47:29 +09:00
Takayuki MATSUOKA
faf5d67b90 Replace chartselector by Bootstrap's tab.
js/bootstrap-patch.css is copied from the following answer on SO :
http://stackoverflow.com/a/23267110/2132223
2015-04-03 06:17:29 +09:00
Takayuki MATSUOKA
02e130312d Add js/chartselector.js 2015-04-02 16:17:35 +09:00
Takayuki MATSUOKA
c3e8a42627 Remove js/csvToArray.v.2.1.js
csvToArray is merged to js/rendercharts.js
2015-04-01 07:42:22 +09:00
Takayuki MATSUOKA
11679d884a Add js/rendercharts.js
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
```
2015-04-01 07:41:31 +09:00
Takayuki MATSUOKA
c2b9fcd49b Import csv-to-array
https://code.google.com/p/csv-to-array/
2015-03-31 19:54:47 +09:00