$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1251763200000,7.21959],[1251849600000,7.28852],[1251936000000,7.22307],[1252022400000,7.27131],[1252108800000,7.31819],[1252195200000,7.31819],[1252281600000,7.31819],[1252368000000,7.42552],[1252454400000,7.47533],[1252540800000,7.39983],[1252627200000,7.3636],[1252713600000,7.42078],[1252800000000,7.42078],[1252886400000,7.42078],[1252972800000,7.33314],[1253059200000,7.36967],[1253145600000,7.4815],[1253232000000,7.51606],[1253318400000,7.47433],[1253404800000,7.47433],[1253491200000,7.47433],[1253577600000,7.4375],[1253664000000,7.49607],[1253750400000,7.49427],[1253836800000,7.46351],[1253923200000,7.32521],[1254009600000,7.32521],[1254096000000,7.32521],[1254182400000,7.3218],[1254268800000,7.34742]], 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, 7.219591],[1251763200000, 7.219591],[1251849600000, 7.288522],[1251936000000, 7.223073],[1252022400000, 7.271311],[1252108800000, 7.318188],[1252195200000, 7.318188],[1252281600000, 7.318188],[1252368000000, 7.425520],[1252454400000, 7.475333],[1252540800000, 7.399834],[1252627200000, 7.363596],[1252713600000, 7.420782],[1252800000000, 7.420782],[1252886400000, 7.420782],[1252972800000, 7.333136],[1253059200000, 7.369675],[1253145600000, 7.481500],[1253232000000, 7.516056],[1253318400000, 7.474326],[1253404800000, 7.474326],[1253491200000, 7.474326],[1253577600000, 7.437495],[1253664000000, 7.496073],[1253750400000, 7.494272],[1253836800000, 7.463512],[1253923200000, 7.325211],[1254009600000, 7.325211],[1254096000000, 7.325211],[1254182400000, 7.321801],[1254268800000, 7.347424]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });