$(document).ready(function () { chart = new Highcharts.StockChart({ chart: { renderTo: 'chart', type: 'line', animation: false, showAxes: true, height: 500 }, xAxis: { ordinal: false, type: 'datetime', showEmpty: true, gridLineWidth: 1, gridLineDashStyle: 'dot', ordinal: false }, yAxis: { title: {text: 'Курс EUR, грн'}, lineWidth: 3, gridLineWidth: 1, gridLineDashStyle: 'dash', ordinal: false }, plotOptions: { series: {connectNulls: true, shadow: false}, spline: {marker: {enabled: true}} }, tooltip: {valueDecimals: 8, xDateFormat: '%d %b %Y', shared: true}, series: [ { name: 'Курс EUR', data: [[1251763200000,11.4019],[1251849600000,11.4226],[1251936000000,11.3547],[1252022400000,11.4465],[1252108800000,11.4025],[1252195200000,11.4025],[1252281600000,11.4025],[1252368000000,11.4568],[1252454400000,11.5741],[1252540800000,11.6103],[1252627200000,11.6279],[1252713600000,11.6714],[1252800000000,11.6714],[1252886400000,11.6714],[1252972800000,11.6443],[1253059200000,11.6949],[1253145600000,11.743],[1253232000000,11.7792],[1253318400000,11.7736],[1253404800000,11.7736],[1253491200000,11.7736],[1253577600000,11.7364],[1253664000000,11.834],[1253750400000,11.8365],[1253836800000,11.8244],[1253923200000,11.746],[1254009600000,11.746],[1254096000000,11.746],[1254182400000,11.7347],[1254268800000,11.6537]], tooltip: {valueSuffix: ' грн'}, type: 'area', step: true, color: '#888888', fillColor: { linearGradient: {x1: 0, y1: 0, x2: 0, y2: 1}, stops: [[0, '#CCCCCC'], [1, 'rgba(50,50,50,0)']] }, threshold: null }, { name: 'Среднее за период', data: [[1251763200000, 11.401901],[1251763200000, 11.401901],[1251849600000, 11.422572],[1251936000000, 11.354670],[1252022400000, 11.446498],[1252108800000, 11.402469],[1252195200000, 11.402469],[1252281600000, 11.402469],[1252368000000, 11.456835],[1252454400000, 11.574058],[1252540800000, 11.610339],[1252627200000, 11.627855],[1252713600000, 11.671406],[1252800000000, 11.671406],[1252886400000, 11.671406],[1252972800000, 11.644286],[1253059200000, 11.694937],[1253145600000, 11.742962],[1253232000000, 11.779163],[1253318400000, 11.773558],[1253404800000, 11.773558],[1253491200000, 11.773558],[1253577600000, 11.736367],[1253664000000, 11.834050],[1253750400000, 11.836452],[1253836800000, 11.824442],[1253923200000, 11.745976],[1254009600000, 11.745976],[1254096000000, 11.745976],[1254182400000, 11.734650],[1254268800000, 11.653749]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });