Skip to content

Commit

Permalink
Add test JSON files.
Browse files Browse the repository at this point in the history
Add <pre> tag to `pkg` documentation.
  • Loading branch information
wesalvaro committed Mar 12, 2016
1 parent 4cd73d1 commit c296c23
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
8 changes: 4 additions & 4 deletions google-chart.html
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,10 @@
* A Promise for the Google Visualization library.
*
* Example:
* myChart.pkg.then(function(viz) {
* // `viz` is equivalent to `google.visualization`
* myChart.view = new viz.DataView(myData);
* })
* <pre>myChart.pkg.then(function(viz) {
* // `viz` is equivalent to `google.visualization`
* myChart.view = new viz.DataView(myData);
* });</pre>
*
*/
pkg: {
Expand Down
4 changes: 4 additions & 0 deletions test/test-data-array.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[
["Data", "Value"],
["Someting", 1]
]
9 changes: 9 additions & 0 deletions test/test-data-object.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"cols": [
{"label": "Data", "type": "string"},
{"label": "Value", "type": "number"}
],
"rows": [
{"c": ["Someting", 1]}
]
}

0 comments on commit c296c23

Please sign in to comment.