creating interactive charts using JS family