<commit_before>Class {
	#name : #KEChart,
	#superclass : #KEEntity,
	#instVars : [
		'xLabel',
		'yLabel',
		'legends',
		'legendTitle',
		'dataFrames'
	],
	#category : #'Kendrick-Core-Visualisation-Roassal3'
}

{ #category : #accessing }
KEChart >> addDataFrame: aDataFrame [
	dataFrames add: aDataFrame
]

{ #category : #initialization }
KEChart >> initialize [
	dataFrames := OrderedCollection new.
	legendTitle := ''
]

{ #category : #accessing }
KEChart >> legendTitle: aString [
	legendTitle := aString
]

{ #category : #accessing }
KEChart >> legends [
	^ dataFrames collect: [ :each | each columnNames first ]
]
<commit_msg>- remove legends from instance variables in KEChart - Add basic comment in KEChart<commit_after>"
KEChart is the main class to plot results of simulation in Kendrick.

How to use KEChar:

	chart := KEChart new
		addDataFrame: df1;
		addDataFrame: df2;
		addDataFrame: df3.
	chart plot

will plot on the same chart, the 3 dataframes df1, df2 and df3.
"
Class {
	#name : #KEChart,
	#superclass : #KEEntity,
	#instVars : [
		'xLabel',
		'yLabel',
		'legendTitle',
		'dataFrames'
	],
	#category : #'Kendrick-Core-Visualisation-Roassal3'
}

{ #category : #accessing }
KEChart >> addDataFrame: aDataFrame [
	dataFrames add: aDataFrame
]

{ #category : #initialization }
KEChart >> initialize [
	dataFrames := OrderedCollection new.
	legendTitle := ''
]

{ #category : #accessing }
KEChart >> legendTitle: aString [
	legendTitle := aString
]

{ #category : #accessing }
KEChart >> legends [
	^ dataFrames collect: [ :each | each columnNames first ]
]

{'fraction_non_alphanumeric': 0.1281725888324873, 'fraction_numerical': 0.005710659898477157, 'mean_word_length': 4.291946308724833, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3076981', 'n_tokens_mistral': 579, 'n_tokens_neox': 547, 'n_words': 144}