$(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: [[1257033600000,11.8296],[1257120000000,11.8296],[1257206400000,11.8132],[1257292800000,11.7434],[1257379200000,11.8306],[1257465600000,11.9141],[1257552000000,11.8792],[1257638400000,11.8792],[1257724800000,11.8792],[1257811200000,11.9727],[1257897600000,11.9578],[1257984000000,12.0173],[1258070400000,11.9321],[1258156800000,11.8885],[1258243200000,11.8885],[1258329600000,11.8885],[1258416000000,11.962],[1258502400000,11.8856],[1258588800000,11.952],[1258675200000,11.8755],[1258761600000,11.8372],[1258848000000,11.8372],[1258934400000,11.8372],[1259020800000,11.9594],[1259107200000,11.9602],[1259193600000,12.0438],[1259280000000,12.0282],[1259366400000,11.9059],[1259452800000,11.9059],[1259539200000,11.9059]], 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: [[1257033600000, 11.829640],[1257033600000, 11.829640],[1257120000000, 11.829640],[1257206400000, 11.813168],[1257292800000, 11.743403],[1257379200000, 11.830646],[1257465600000, 11.914116],[1257552000000, 11.879197],[1257638400000, 11.879197],[1257724800000, 11.879197],[1257811200000, 11.972666],[1257897600000, 11.957834],[1257984000000, 12.017270],[1258070400000, 11.932079],[1258156800000, 11.888453],[1258243200000, 11.888453],[1258329600000, 11.888453],[1258416000000, 11.961973],[1258502400000, 11.885571],[1258588800000, 11.951989],[1258675200000, 11.875537],[1258761600000, 11.837185],[1258848000000, 11.837185],[1258934400000, 11.837185],[1259020800000, 11.959432],[1259107200000, 11.960231],[1259193600000, 12.043776],[1259280000000, 12.028165],[1259366400000, 11.905907],[1259452800000, 11.905907],[1259539200000, 11.905907]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });