Skip to content

pgtwitter/ScatterPlot3D

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dependence

usage

<script src="https://redirect.github.com/path/to/threejs/three.min.js"></script>
<script src="https://redirect.github.com/path/to/threejs/addons/CanvasRenderer.js"></script>
<script src="https://redirect.github.com/path/to/threejs/addons/Projector.js"></script>
<script src="https://redirect.github.com/path/to/threejs/addons/OrbitControls.js"></script>
<script src="https://redirect.github.com/path/to/ScatterPlot3D.js"></script>
const datam = [{
	type: 0,
	data: [{
			x: 0,
			y: 0,
			z: 1,
			style: '#f00'
		},
		{
			x: 0.3,
			y: 0,
			z: 0,
			style: '#0f0'
		},
		{
			x: 0,
			y: 0.5,
			z: 0,
			style: '#00f'
		}
	]
}];
ScatterPlot3D(document.getElementById('container'), datam);

result

result0

result1

result2

reference

About

using ThreeJS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages