java scrip graph