Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function () {
- $('#container').highcharts({
- chart: {
- zoomType: 'x',
- spacingRight: 1
- },
- title: {
- text: 'USD to EUR exchange rate from 2006 through 2008'
- },
- subtitle: {
- text: document.ontouchstart === undefined ?
- 'Click and drag in the plot area to zoom in' :
- 'Pinch the chart to zoom in'
- },
- xAxis: {
- type: 'linear',
- ordinance: false,
- maxZoom: 10, // fourteen days
- title: {
- text: null
- }
- },
- yAxis: {
- title: {
- text: 'Exchange rate'
- }
- },
- tooltip: {
- shared: true
- },
- legend: {
- enabled: false
- },
- plotOptions: {
- area: {
- fillColor: {
- linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1},
- stops: [
- [0, Highcharts.getOptions().colors[0]],
- [1, Highcharts.Color(Highcharts.getOptions().colors[0]).setOpacity(0).get('rgba')]
- ]
- },
- lineWidth: 1,
- marker: {
- enabled: false
- },
- shadow: false,
- states: {
- hover: {
- lineWidth: 1
- }
- },
- threshold: null
- }
- },
- series: [{
- type: 'area',
- name: 'USD to EUR',
- pointInterval: 1,
- pointStart: 0,
- data: [
- {name: '1970/ 9/ 27', y: 0 },
- {name: '1970/ 10/ 10', y: 0.6 },
- {name: '1970/ 10/ 18', y: 0.7 },
- {name: '1970/ 11/ 2', y: 0.8 },
- {name: '1970/ 11/ 9', y: 0.6 },
- {name: '1970/ 11/ 16', y: 0.6 },
- {name: '1970/ 11/ 28', y: 0.67},
- {name: '1971/ 0/ 1', y: 0.81},
- {name: '1971/ 0/ 8', y: 0.78},
- {name: '1971/ 0/ 12', y: 0.98},
- {name: '1971/ 0/ 27', y: 1.84},
- {name: '1971/ 1/ 10', y: 1.80},
- {name: '1971/ 1/ 18', y: 1.80},
- {name: '1971/ 1/ 24', y: 1.92},
- {name: '1971/ 2/ 4', y: 2.49},
- {name: '1971/ 2/ 11', y: 2.79},
- {name: '1971/ 2/ 15', y: 2.73},
- {name: '1971/ 2/ 25', y: 2.61},
- {name: '1971/ 3/ 2', y: 2.76},
- {name: '1971/ 3/ 6', y: 2.82},
- {name: '1971/ 3/ 13', y: 2.8 },
- {name: '1971/ 4/ 3', y: 2.1 },
- {name: '1971/ 4/ 26', y: 1.1 },
- {name: '1971/ 5/ 9', y: 0.25},
- {name: '1971/ 5/ 12', y: 0 }
- ]
- }]
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment