add test bar chart split js and index