Fix charts with data larger than 32KB