fix plot in core and migrated scatter 3d to js