Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/DuneSt/ChartJs
This is a Seaside binding for ChartJS
https://github.com/DuneSt/ChartJs
chart chartjs charts pharo seaside web
Last synced: 2 days ago
JSON representation
This is a Seaside binding for ChartJS
- Host: GitHub
- URL: https://github.com/DuneSt/ChartJs
- Owner: DuneSt
- License: mit
- Created: 2016-09-02T14:04:09.000Z (about 8 years ago)
- Default Branch: development
- Last Pushed: 2022-05-14T00:51:15.000Z (over 2 years ago)
- Last Synced: 2024-02-09T06:33:55.566Z (9 months ago)
- Topics: chart, chartjs, charts, pharo, seaside, web
- Language: Smalltalk
- Size: 167 KB
- Stars: 7
- Watchers: 7
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
- awesome-pharo - ChartJs - Seaside binding of ChartJs to display and interact with charts. (Web)
README
# ChartJS for Seaside
This project is an implementation of ChartJs in Seaside with a model associated to charts.
It uses Stylesheet for customization and can be used in local network.
# Documentation
## Version management
This project use semantic versionning to define the releases. This mean that each stable release of the project will get associate a version number of the form `vX.Y.Z`.
- **X** define the major version number
- **Y** define the minor version number
- **Z** define the patch version numberWhen a release contains only bug fixes, the patch number increase. When the release contains new features backward compatibles, the minor version increase. When the release contains breaking changes, the major version increase.
Thus, it should be safe to depend on a fixed major version and moving minor version of this project.
## Install ChartJs Seaside
To install ChartJs on your Pharo image you can execute:
```Smalltalk
Metacello new
githubUser: 'DuneSt' project: 'ChartJs' commitish: 'master' path: 'src';
baseline: 'ChartJs';
onUpgrade: [ :e | e useIncoming ];
onWarningLog;
load
```To add ChartJs Seaside to your baseline just add this:
```Smalltalk
spec
baseline: 'ChartJs'
with: [ spec repository: 'github://DuneSt/ChartJs:v1.x.x/src' ]
```Note that you can replace the #v1.x.x by a branch name as #master, #development or a tag as #v1.0.0, #v1.? or #v1.2.? or a commit SHA.
## Getting started
### Add the right libraries
To use ChartJs for Seaside you will need to add JQuery and ChartJs libraries to your application:
```Smalltalk
(WAAdmin register: self asApplicationAt: 'myApplication')
addLibrary: ChartJsLibrary;
addLibrary: JQDeploymentLibrary
```## Examples
You can find multiple examples when the application will be installed at the url: [http://localhost:8080/ChartJsDemo](http://localhost:8080/ChartJs)
When you install in a plain Pharo image you need to start the seaside server first by opening `World menu > Tools > Seaside Control Panel` and adding and starting an appropropriate `ZnZincServerAdaptor`. If you do not use port 8080, change the port in the URL.
You can find a demo at: [https://demos.ferlicot.fr/ChartJsDemo](https://demos.ferlicot.fr/ChartJsDemo)
## Latest supported Dependency
- [ChartJs v1.0.1](https://github.com/chartjs/Chart.js/releases/tag/v1.0.1)
## Smalltalk versions compatibility
| ChartJs version | Compatible Pharo versions |
|--------------- |--------------------------- |
| v1.x.x | Pharo 61, 70, 80, 90, 10 |
| development | Pharo 61, 70, 80, 90 , 10 |## Contact
If you have any question or problem do not hesitate to open an issue or contact cyril (a) ferlicot.me or guillaume.larcheveque (a) gmail.com