added dynamic checking of chart opts