coloring html and layout for graph