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
- Host: GitHub
- URL: https://github.com/studio24/cjbs-svg-charts
- Owner: studio24
- License: mit
- Created: 2014-05-17T09:02:14.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-07-29T09:18:06.000Z (almost 12 years ago)
- Last Synced: 2025-02-25T18:04:52.084Z (over 1 year ago)
- Language: JavaScript
- Size: 770 KB
- Stars: 0
- Watchers: 15
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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.