Using charts.* functions to get options for highcharts.