Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function setPriceParameterAndDisplay(){
- document.getElementById('container').style.visibility='visible';
- Highcharts.chart('container', {
- chart: {
- type: 'area'
- },
- title: {
- text: StockHeading ,
- },
- subtitle: {
- text: '<a style="color:blue;" href="https://www.alphavantage.co">Source: Alpha Vantage</a>'
- },
- xAxis: {
- categories: XAxisData,
- minTickInterval: 6,
- showLastLabel: true,
- },
- yAxis: [{
- title: {
- text: 'Stock Price',
- },
- },{
- title: {
- text: 'Volume '
- },
- labels: {
- format: '{value}m',
- },
- opposite:true,
- }],
- plotOptions: {
- label: {
- enabled: false,
- },
- line: {
- enableMouseTracking: true
- },
- series: {
- marker: {
- enabled: false
- },}
- },
- legend: {
- layout: 'vertical',
- align: 'right',
- verticalAlign: 'middle'
- },
- series: [{
- name: '".$symbol."',
- label: {
- enabled: false,
- },
- type: 'area',
- color: '#F66464',
- data: PriceData,
- tooltip: {
- valueDecimals: 2
- }
- }, {
- name: '".$symbol." Volume' ,
- label: {
- enabled: false,
- },
- type: 'column',
- color: '#FFFFFF',
- yAxis: 1,
- data: StockVolume,
- tooltip: {
- valueDecimals: 2
- }
- }]
- });}
Add Comment
Please, Sign In to add comment