Moderators mark1million Posted February 24, 2010 Moderators Report Posted February 24, 2010 Hi Nabeel, i have this display problem with the pirep chart screen shot below, is there any way this can be changed to display more figures on the left ie like 1 2 3 4 then the line wouldn't be at the top Quote
Administrators Nabeel Posted February 24, 2010 Administrators Report Posted February 24, 2010 It should be doing that... which version do you have? Quote
Moderators mark1million Posted February 24, 2010 Author Moderators Report Posted February 24, 2010 I am on the latest beta, but i copied the chart code from another template thats on my test server which has a different release on it, has the code changed at all? This is how im using the chart, <?php /* Added in 2.0! */ $chart_width = '700'; $chart_height = '250'; /* Don't need to change anything below this here */ ?> <div align="center" style="width: 100%;"> <div align="center" id="pireps_chart"></div> </div> <script type="text/javascript" src="<?php echo fileurl('/lib/js/ofc/js/swfobject.js')?>"></script> <script type="text/javascript"> swfobject.embedSWF("<?php echo fileurl('/lib/js/ofc/open-flash-chart.swf');?>", "pireps_chart", "<?php echo $chart_width;?>", "<?php echo $chart_height;?>", "9.0.0", "expressInstall.swf", {"data-file":"<?php echo actionurl('/pilots/statsdaysdata/'.$userinfo->pilotid);?>"}); </script> Quote
Administrators Nabeel Posted February 24, 2010 Administrators Report Posted February 24, 2010 That code shouldn't have - is it passing the pilot id (if you view source and goto the url). Try loading that URL in the browser too. If you paste what that URL loads, it could be that my scaling algorithm has a bug in it (I have to manually do scaling) Quote
Moderators mark1million Posted February 24, 2010 Author Moderators Report Posted February 24, 2010 Could this be it? noticed "min": 1, "max": 1, { "elements": [ { "type": "area", "width": 2, "dot-style": { "type": "solid-dot", "dot-size": 3, "halo-size": 1, "colour": "#3D5C56" }, "colour": "#3D5C56", "fill": "#3D5C56", "fill-alpha": 0.3, "on-show": { "type": "pop-up", "cascade": 2, "delay": 0.5 }, "text": "", "font-size": 10, "values": [ 1, 1 ] } ], "title": { "text": "Past 30 days PIREPs" }, "y_axis": { "min": 1, "max": 1, "steps": 1 }, "x_axis": { "labels": { "labels": [ "2010-02-21", "2010-02-23" ], "rotate": 270 } }, "bg_colour": "#FFFFFF" } Quote
Moderators mark1million Posted February 24, 2010 Author Moderators Report Posted February 24, 2010 Just to add to this, i have looked at a few of these now and it inly seems to do it when the values are the same like 1 and 1 or 2and 2, if for example you have 1 and 2 the scaling is OK. Quote
Administrators Nabeel Posted February 24, 2010 Administrators Report Posted February 24, 2010 Thanks, can you add a bug for that with that json output (the 1 and 1). I'll hopefully get to it this week. Quote
Moderators mark1million Posted February 24, 2010 Author Moderators Report Posted February 24, 2010 Done. Quote
poole3003 Posted June 2, 2014 Report Posted June 2, 2014 what file is the change height and lengh in mate Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.