An open API service indexing awesome lists of open source software.

https://github.com/studio24/cjbs-svg-charts

A toolkit for creating SVG charts for Cambridge Judge Business School
https://github.com/studio24/cjbs-svg-charts

Last synced: 10 months ago
JSON representation

A toolkit for creating SVG charts for Cambridge Judge Business School

Awesome Lists containing this project

README

          

# Cambridge Judge Business School SVG charts

An Open Source toolkit for creating SVG charts for Cambridge Judge Business School.

Developed for CJBS http://www.jbs.cam.ac.uk by Studio 24 http://www.studio24.net

### Open Source license

Copyright (c) 2014 Studio 24 Ltd

Licensed under the MIT License, see LICENSE.md

### Overview

All charts use JSON data for configuration, with the exception of the Global Map which uses a CSV file, this is purely for ease of editing.

### Required Files

The following files are required to be included on all pages with any chart on it:

```
/js/d3/d3.min.js
/js/s24/s24.charts.js
/js/s24/s24.charts.css
```

The following file is required if the page has a Global Map on it:

```
/js/d3/toppjson.min.js
```

All files in the /js/d3 folder are required for the Global Map pages (world.json), however these are automatically included in the script, and the location is also configurable through the standard options.

### Initialisation

Before any charts are initialised on the page, the charting library must be first be initialised:

```
S24.Charts.init({
colourScheme: '/js/studio24charts/colours.json'
});
```

The colour scheme is a changeable option, so if two pages have different colours, this can be updated.