As the title says, sometimes, if I have 2 charts on a page they get the same ID and the second one just overwrites the first one:
<div id="47b9faa99f89b"></div>
<script type="text/javascript" src="/sites/all/modules/open_flash_chart_api/js/swfobject.js"></script>
<script type="text/javascript">
var so = new SWFObject("/sites/all/modules/open_flash_chart_api/open-flash-chart.swf", "ofc", "200", "200", "9", "#FFFFFF");
so.addVariable("variables","true");so.addVariable("title","Bar Chart, {font-size: 20px;}");so.addVariable("x_label_style","10,#9933CC,0,2");so.addVariable("x_axis_steps","2");so.addVariable("y_legend","Open Flash Chart,12,#736AFF");so.addVariable("y2_legend","");so.addVariable("y_ticks","5,10,4");so.addVariable("bar","50,#9933CC,#8010A0,Page views");so.addVariable("values","7,7,7,5,9,5");so.addVariable("x_labels","January,February,March,April,May,June");so.addVariable("y_min","0");so.addVariable("y_max","10");so.addVariable("y2_min","");so.addVariable("y2_max","");so.addVariable("bg_colour","0xDFFFDF");so.write("47b9faa99f89b");
</script>
<div id="47b9faa99f89b"></div>
<script type="text/javascript" src="/sites/all/modules/open_flash_chart_api/js/swfobject.js"></script>
<script type="text/javascript">
var so = new SWFObject("/sites/all/modules/open_flash_chart_api/open-flash-chart.swf", "ofc", "250", "200", "9", "#FFFFFF");
so.addVariable("variables","true");so.addVariable("x_axis_steps","1");so.addVariable("y_legend","");so.addVariable("y2_legend","");so.addVariable("y_ticks","5,10,5");so.addVariable("line","3,#87421F");so.addVariable("y_min","0");so.addVariable("y_max","20");so.addVariable("y2_min","");so.addVariable("y2_max","");so.addVariable("pie","60,#505050,{font-size: 12px; color: #404040;");so.addVariable("values","10,11,10,5,14");so.addVariable("pie_labels","IE,Firefox,Opera,Wii,Other");so.addVariable("colours","#d01f3c,#356aa0,#C79810");so.addVariable("links","IE,Firefox,Opera,Wii,Other");so.write("47b9faa99f89b");
</script>
I know you work on v.3 and I'm in no hurry so I just want to make sure you take this into acount for v.3
Thank you for a great module!
/Andrei Ignat
Comments
Comment #1
redndahead commentedThe chances of getting the same uniqueid from php must be slim, I would think. I've added some things that will hopefully fix this issue as well as some php4 issues. You can find it in the next development version that should show up tomorrow. This has already been committed. Can you get back to me if it fixed it for you?
Comment #2
TypQxQ commentedUploaded the open_flash_chart_api 6.x-1.x-dev and it works great, no more dissapearing charts :D
It happened quite often actually, maybe 50% of the time, if not more... I have a fast host running IIS.
Than you!
Comment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.