def opt_to_dict(options, chart_id='chart_id'):
    """
    returns dictionary of options for highcharts/highstocks object
    with field chart:renderTo set to arg chart_id
    """
    _options = dict(options)
    _options['chart']['renderTo'] = chart_id
    return _options
