improvement of highstockJSON