Hi I'm trying to display two charts on one page, the first chart works fine, but the second just displays this

C:\Users\John\Documents\flash\svn\data-files\data-47.txt

Am I right in thinking only one chart can be displayed at once?

Many Thanks

Matt

Comments

Enkidu’s picture

I'm not certain that the issue is the display of two charts. I am having this issue exclusively in IE7 and then only when I attempt to render a line-dot style chart. In my scheme, I have pie charts for lower resolution data. Wedges can be selected for higher resolution metrics for a given category, eventually leading to a trend rendered in the line-dot format. When IE7 is passed the appropriate link and associated data, it spits out a flash object box containing the same path. I've done some digging, and that path seems to be set as the default data root in open-flash-chart.as in the actionscript subfolder. Changing that document root to my own data page did not meet with any success. Once again, this problem only seems to occur in IE7 for me, but I have not tested it with other versions of IE. Firefox, Safari, and Opera all seem to render the chart correctly.

Enkidu’s picture

I've managed to resolve this issue for my own purposes. I've discovered that I was attempting to pass width and height dimensions to open_flash_chart_object() as percentages, i.e. open_flash_chart_object('50%', '75%', 'foo.php'); I hadn't even noticed until I was about ready to pull my hair out, but when I changed the dimensions to regular integers, everything seemed to render correctly. Since I was only passsing the percentage in the line-dot render, it coincides with my mixed results. As a possible work around, it seems that, despite specifying pixel height and width, the flash object is still rendered relative to its container, though I don't know why. I have been able to resize it by putting it in a <div> and passing my size limitations to that in whichever format suited me. I hope this helps.

**Edit: Unparsing html

mattyb’s picture

Brilliant, thanks, I'll try that out.

redndahead’s picture

Status: Active » Fixed

Marking as fixed.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.