Guest User

Untitled

a guest
Oct 19th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. function setPriceParameterAndDisplay(){
  2. document.getElementById('container').style.visibility='visible';
  3. Highcharts.chart('container', {
  4. chart: {
  5. type: 'area'
  6. },
  7. title: {
  8. text: StockHeading ,
  9. },
  10. subtitle: {
  11. text: '<a style="color:blue;" href="https://www.alphavantage.co">Source: Alpha Vantage</a>'
  12. },
  13. xAxis: {
  14. categories: XAxisData,
  15. minTickInterval: 6,
  16.  
  17. showLastLabel: true,
  18.  
  19. },
  20. yAxis: [{
  21. title: {
  22. text: 'Stock Price',
  23. },
  24. },{
  25. title: {
  26. text: 'Volume '
  27. },
  28. labels: {
  29. format: '{value}m',
  30. },
  31. opposite:true,
  32.  
  33. }],
  34. plotOptions: {
  35. label: {
  36. enabled: false,
  37. },
  38. line: {
  39.  
  40. enableMouseTracking: true
  41. },
  42. series: {
  43. marker: {
  44. enabled: false
  45. },}
  46. },
  47. legend: {
  48. layout: 'vertical',
  49. align: 'right',
  50. verticalAlign: 'middle'
  51. },
  52. series: [{
  53. name: '".$symbol."',
  54. label: {
  55. enabled: false,
  56. },
  57. type: 'area',
  58. color: '#F66464',
  59. data: PriceData,
  60. tooltip: {
  61. valueDecimals: 2
  62. }
  63.  
  64. }, {
  65. name: '".$symbol." Volume' ,
  66. label: {
  67. enabled: false,
  68. },
  69. type: 'column',
  70. color: '#FFFFFF',
  71. yAxis: 1,
  72. data: StockVolume,
  73. tooltip: {
  74. valueDecimals: 2
  75. }
  76.  
  77.  
  78. }]
  79. });}
Add Comment
Please, Sign In to add comment