put k means data in graph