Pirep Chart problem

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

It should be doing that… which version do you have?

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>

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)

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" }

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.

Thanks, can you add a bug for that with that json output (the 1 and 1). I’ll hopefully get to it this week.

Done.

what file is the change height and lengh in mate