Skip to content

danielhdzzz/enneagram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

enneagram

Library to generate a responsive Enneagram of Personality. Work in progress. Each of the 9 points is asigned a value in order to display different configurations of personality.

preview

Usage:

  1. Include script.
  2. Add canvas:
<canvas id="myEnneagram"></canvas>
  1. Initiate:
<script type="text/javascript">
	enneagram({
		targetId: 'myEnneagram',
		data: [0,14,24,12,50,80,89,29,100],
		options: {
			//options go here
		}
	});
</script>

Options:

maxColor: [255, 10, 10], // Array (rgb values)
minColor: [230,230,230], // Array (rgb values)
lineWidth: 2, // Int
lineColor: 'black', // String
pointSize: 15, // Int
pointFontSize: 17, // Int
fontColor: 'black' // String

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published