Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 9th, 2012  |  syntax: None  |  size: 1.07 KB  |  hits: 71  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. HighCharts.js is not rendering chart under IE8
  2. function generateChart(series) {
  3.     var chart = new Highcharts.Chart({
  4.         chart: {
  5.             renderTo: 'company_chart',
  6.         },
  7.         xAxis: {
  8.             type: "datetime",
  9.         },
  10.         yAxis: [{
  11.             title: {
  12.                 text: "T1",
  13.                 },
  14.             },{
  15.             title: {
  16.                 text: "T2",
  17.                 },
  18.             },
  19.             opposite: true,
  20.         }],
  21.         plotOptions: {
  22.             series: { shadow: false },
  23.             column: { shadow: false, },
  24.         },
  25.         series: series
  26.     });
  27. );
  28.        
  29. chart_data = [
  30.     {
  31.         type: "spline",
  32.         color: '#ff0000',
  33.         yAxis: 0,
  34.         data: dataT1,
  35.     },
  36.     {
  37.         type: "column",
  38.         color: '#0000ff',
  39.         yAxis: 1,
  40.         data: dataT2,
  41.     }
  42. ];
  43.        
  44. dataT1 = [ [1325721600000,1.64],
  45.            [1325635200000,1.64],
  46.            [1325548800000,1.7],
  47.            [1325462400000,1.7],];
  48.        
  49. chart: {
  50.         renderTo: 'company_chart', // <--- get rid of that comma
  51.     },
  52.        
  53. [1, 2, 3,].length