-
Notifications
You must be signed in to change notification settings - Fork 1
Using the JSON reporter to generate graphs
Harry Cummings edited this page Feb 14, 2015
·
4 revisions
The JSON reporter can be used to generate graphs locally rather than using plotly.
To use Chart.js you would need config like the following:
....
"reporters": {
"console": null,
"json": {
"filename": "chart.json",
"plotListKey": "datasets",
"plotNameKey": "label",
"build": "$BUILD_NUMBER"
}
}
....
And HTML as in this Gist.
To use Chartist, you would need config like the following:
"reporters": {
"console": null,
"json": {
"filename": "chart.json",
"plotListKey": "series",
"plotNameKey": "name",
"build": "$BUILD_NUMBER"
}
}
And HTML something like the 'Line Chart With Tooltips' example on http://gionkunz.github.io/chartist-js/examples.html