$(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: 'Курс DKK, грн'}, 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: 'Курс DKK', data: [[1257033600000,1.58936],[1257120000000,1.58936],[1257206400000,1.58728],[1257292800000,1.57795],[1257379200000,1.58973],[1257465600000,1.60106],[1257552000000,1.59619],[1257638400000,1.59619],[1257724800000,1.59619],[1257811200000,1.60895],[1257897600000,1.60702],[1257984000000,1.61509],[1258070400000,1.60352],[1258156800000,1.59776],[1258243200000,1.59776],[1258329600000,1.59776],[1258416000000,1.60762],[1258502400000,1.59733],[1258588800000,1.60628],[1258675200000,1.59594],[1258761600000,1.59068],[1258848000000,1.59068],[1258934400000,1.59068],[1259020800000,1.60713],[1259107200000,1.60728],[1259193600000,1.6185],[1259280000000,1.6163],[1259366400000,1.59968],[1259452800000,1.59968],[1259539200000,1.59968]], 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, 1.589365],[1257033600000, 1.589365],[1257120000000, 1.589365],[1257206400000, 1.587279],[1257292800000, 1.577948],[1257379200000, 1.589735],[1257465600000, 1.601058],[1257552000000, 1.596194],[1257638400000, 1.596194],[1257724800000, 1.596194],[1257811200000, 1.608948],[1257897600000, 1.607020],[1257984000000, 1.615094],[1258070400000, 1.603515],[1258156800000, 1.597760],[1258243200000, 1.597760],[1258329600000, 1.597760],[1258416000000, 1.607619],[1258502400000, 1.597330],[1258588800000, 1.606277],[1258675200000, 1.595938],[1258761600000, 1.590677],[1258848000000, 1.590677],[1258934400000, 1.590677],[1259020800000, 1.607127],[1259107200000, 1.607277],[1259193600000, 1.618504],[1259280000000, 1.616298],[1259366400000, 1.599676],[1259452800000, 1.599676],[1259539200000, 1.599676]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });