$(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: 'Курс JPY, грн'}, 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: 'Курс JPY', data: [[1159660800000,0.0428104],[1159747200000,0.0428104],[1159833600000,0.042709],[1159920000000,0.0429213],[1160006400000,0.0427598],[1160092800000,0.042985],[1160179200000,0.0427866],[1160265600000,0.0427866],[1160352000000,0.0427866],[1160438400000,0.0424047],[1160524800000,0.0422197],[1160611200000,0.0422394],[1160697600000,0.0422243],[1160784000000,0.0422968],[1160870400000,0.0422968],[1160956800000,0.0422968],[1161043200000,0.0423796],[1161129600000,0.0425413],[1161216000000,0.0425601],[1161302400000,0.0425497],[1161388800000,0.0426826],[1161475200000,0.0426826],[1161561600000,0.0426826],[1161648000000,0.0423538],[1161734400000,0.042227],[1161820800000,0.0423724],[1161907200000,0.0424851],[1161993600000,0.0426255],[1162080000000,0.0426255],[1162166400000,0.0426255],[1162252800000,0.0430521]], 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: [[1159660800000, 0.042810],[1159660800000, 0.042810],[1159747200000, 0.042810],[1159833600000, 0.042709],[1159920000000, 0.042921],[1160006400000, 0.042760],[1160092800000, 0.042985],[1160179200000, 0.042787],[1160265600000, 0.042787],[1160352000000, 0.042787],[1160438400000, 0.042405],[1160524800000, 0.042220],[1160611200000, 0.042239],[1160697600000, 0.042224],[1160784000000, 0.042297],[1160870400000, 0.042297],[1160956800000, 0.042297],[1161043200000, 0.042380],[1161129600000, 0.042541],[1161216000000, 0.042560],[1161302400000, 0.042550],[1161388800000, 0.042683],[1161475200000, 0.042683],[1161561600000, 0.042683],[1161648000000, 0.042354],[1161734400000, 0.042227],[1161820800000, 0.042372],[1161907200000, 0.042485],[1161993600000, 0.042625],[1162080000000, 0.042625],[1162166400000, 0.042625],[1162252800000, 0.043052]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });