Quantcast
Channel: PHPExcel Forum Rss Feed
Viewing all articles
Browse latest Browse all 2707

New Post: scatter chart problems

$
0
0
no it trys to open excel and I get the message, nothing comes back to the browser. I know if I comment this statement:
$objWorksheet->addChart($chart);
I will get the data in excel in column a and b. If I put the statement in I get the error message:
Excel cannot open the file 'xxxxx.xlsx' because the file format or file extension is not valid. Verify that the file has not been corupted and that the file extension matches the format of the file.

It seems to be something with the charting parms. I can put in :
// array(

// array('tagname', 'value'),
// array('11/19/13 14:42', 89300.0475),
// array('11/19/13 15:12', 89444.13835),
// array('11/19/13 15:42', 89332.66993),
// array('11/19/13 16:12', 89308.91376),
// array('11/19/13 16:42', 89810.509871),
// array('11/19/13 17:12', 90237.95934),
// array('11/19/13 17:42', 90235.1259),
// array('11/19/13 18:12', 90712.74051),
// )

as values and it gives the data in column a and b and does a scatter chart with no problem with the: $objWorksheet->addChart($chart);
included. This was just the first few values of the real data it had 98 lines and when I use it I get the message:
Excel cannot open the file 'xxxxx.xlsx' because the file format or file extension is not valid. Verify that the file has not been corupted and that the file extension matches the format of the file.

Viewing all articles
Browse latest Browse all 2707

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>