Skip to content

Chart js2.8 #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 30 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
a5b8f50
Merge branch 'addInfoOnReleasev1'
jecisc Apr 27, 2018
6e3fe20
Merge pull request #11 from DuneSt/correctDemoLink
jecisc May 4, 2018
ec92aa4
Merge pull request #12 from DuneSt/development
jecisc Oct 4, 2018
5b246aa
Merge pull request #13 from DuneSt/development
jecisc Dec 20, 2018
67bd010
Start rebuilding chartJs library
mahugnon Oct 7, 2019
dc9ee98
draw chart ChartJs 2.0
mahugnon Oct 7, 2019
ee55711
remove fil
mahugnon Oct 8, 2019
d7f5526
add option. Fill
mahugnon Oct 8, 2019
06dc453
add a strategy to set options
mahugnon Oct 10, 2019
b88f664
Unified Chart1dData and Chart2dData
mahugnon Oct 14, 2019
61b5671
Remove ChartOptions
mahugnon Oct 14, 2019
95041ed
Default option by chartType
mahugnon Oct 14, 2019
8369b94
Merge a349b12a35d0fb8e272303b5248c8472a1d4c944
mahugnon Oct 14, 2019
e670dad
Rmove Tooltips options
mahugnon Oct 14, 2019
5bd6ebe
Merge branch 'development'
jecisc Nov 25, 2019
23f720d
Merge branch 'development'
jecisc Nov 25, 2019
0979481
Merge branch 'development'
jecisc Nov 25, 2019
42e21dd
testing and hacking
mahugnon Dec 2, 2019
5c68267
make ChartJs 1d work
mahugnon Dec 2, 2019
9c4afa0
update ChartJS:
mahugnon Dec 2, 2019
1bb39f6
Seem to work .
mahugnon Dec 2, 2019
254ad52
Boxplot is working
mahugnon Dec 3, 2019
44e297f
Added Violin chart with demo
mahugnon Dec 3, 2019
6b01557
fixing callback
mahugnon Dec 4, 2019
9548fb2
Handle call backs
mahugnon Dec 4, 2019
98df4fd
fix tests
mahugnon Dec 4, 2019
749d02b
fix baseline conflict
mahugnon Dec 4, 2019
edc723d
Merge branch 'master' into ChartJS2.8
jecisc Jan 2, 2020
439df5d
Change RTCPQualitative to color wheel
mahugnon Jan 2, 2020
32a9787
Merge edc723de1dd6415134cc940bff84eeb1e070aaf6
mahugnon Jan 2, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 0 additions & 30 deletions src/ChartJs-Core-Tests/Chart1dDataTest.class.st

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
A Chart2dDataTest is a test class for testing the behavior of Chart2dData
"
Class {
#name : #Chart2dDataTest,
#name : #ChartDataTest,
#superclass : #ChartDataAbstractTest,
#category : #'ChartJs-Core-Tests'
}

{ #category : #helpers }
Chart2dDataTest >> actualClass [
^ Chart2dData
ChartDataTest >> actualClass [
^ ChartData
]

{ #category : #tests }
Chart2dDataTest >> testHasData [
ChartDataTest >> testHasData [
| datas |
datas := self actualClass
xObjects: {'Eating' . 'Drinking' . 'Sleeping' . 'Designing' . 'Coding' . 'Cycling' . 'Running'}
Expand Down
40 changes: 40 additions & 0 deletions src/ChartJs-Core-Tests/ChartTypeTest.class.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
Class {
#name : #ChartTypeTest,
#superclass : #TestCase,
#category : #'ChartJs-Core-Tests'
}

{ #category : #tests }
ChartTypeTest >> testNeoJsonOnData [
| json chart stream colorConst |
chart := ChartData
xObjects: {'Eating' . 'Drinking'}
multiYObjects: {('Cyril' -> #(28 48))}.
chart dataSets
do: [ :ds |
ds styleSheet pointHoverBackgroundColor: Color red.
ds styleSheet pointBackgroundColor: Color red.
ds styleSheet fillColor: Color red.
ds styleSheet borderColor: Color red.
ds styleSheet pointHoverBorderColor: Color red.
ds styleSheet pointBorderColor: Color red.
ds styleSheet backgroundColor: Color red ].
stream := '' writeStream.
json := (NeoJSONWriter on: stream) nextPut: chart.
colorConst := '"fill":false,"pointBackgroundColor":"rgba(255,0,0,1.0)","pointBorderColor":"rgba(255,0,0,1.0)","borderColor":"rgba(255,0,0,1.0)","pointHoverBorderColor":"rgba(255,0,0,1.0)","backgroundColor":"rgba(255,0,0,1.0)"'.
self
assert: stream contents
equals:
'{"labels":["Eating","Drinking"],"datasets":[{' , colorConst
, ',"label":"Cyril","data":[28,48]}]}'
]

{ #category : #tests }
ChartTypeTest >> testNeoJsonOnOnlyType [
| json chart stream |
chart := ChartBar new.
stream := '' writeStream.
json := (NeoJSONWriter on: stream) nextPut: chart.

self assert: stream contents equals: '{"type":"bar"}'
]
6 changes: 6 additions & 0 deletions src/ChartJs-Core/Boolean.extension.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Extension { #name : #Boolean }

{ #category : #'*ChartJs-Core' }
Boolean >> forChartJs [

]
86 changes: 0 additions & 86 deletions src/ChartJs-Core/Chart1dData.class.st

This file was deleted.

154 changes: 0 additions & 154 deletions src/ChartJs-Core/Chart2dData.class.st

This file was deleted.

7 changes: 1 addition & 6 deletions src/ChartJs-Core/ChartBar.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,9 @@ ChartBar class >> dataFunction [
^ 'bars'
]

{ #category : #ChartJs }
ChartBar class >> eventsCode [
^ 'getBarsAtEvent(evt)'
]

{ #category : #ChartJs }
ChartBar class >> forChartJS [
^ 'Bar'
^ 'bar'
]

{ #category : #testing }
Expand Down
7 changes: 1 addition & 6 deletions src/ChartJs-Core/ChartBoxPlot.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,9 @@ ChartBoxPlot class >> dataFunction [
^ 'bars'
]

{ #category : #ChartJs }
ChartBoxPlot class >> eventsCode [
^ 'getBarsAtEvent(evt)'
]

{ #category : #ChartJs }
ChartBoxPlot class >> forChartJS [
^ 'BoxPlot'
^ 'boxplot'
]

{ #category : #testing }
Expand Down
Loading