Botton & Left Border Missing when using PHP

Posted by user439111 
Botton & Left Border Missing when using PHP
September 15, 2010 12:12AM
I am using PHP to create the data array, but when i view the graph the bottom and left borders are missing from the background.

any ideas?

<script type="text/javascript">
var myChart = new JSChart('graph', 'line');
myChart.setDataArray([<? for ($index = 0; $index < $nrL; $index++) {
echo '['. $xAxisSI .', '. $L['ISSUES'][$index].']'.($index < $nrL - 1 ? ',' : '');
$xAxisSI++;
}?>], 'blue');
myChart.setAxisPaddingLeft(70);
myChart.setAxisPaddingBottom(40);
myChart.setTextPaddingBottom(10);
myChart.setAxisValuesNumberY(5);
myChart.setIntervalStartY(0);
myChart.setIntervalEndY(500);
myChart.setTitle('Incidents')
myChart.setAxisNamehot smiley' ');
myChart.setAxisNameY('Amount');
<? for ($index = 0; $index < $nrL; $index++) {
echo "myChart.setLabel hot smiley[".$xAxisLabel.", '". $month = date(F ,strtotime($L['DATE'][$index]))."']);";
$xAxisLabel++;}?>
myChart.setAxisValuesNumberhot smiley5);
myChart.setShowXValues(false);
myChart.setTitleColor('#454545');
myChart.setAxisValuesColor('#454545');
myChart.setLineColor('#A4D314', 'green');
myChart.setLineColor('#BBBBBB', 'gray');
myChart.setTooltip([1]);
myChart.setTooltip([2]);
myChart.setTooltip([3]);
myChart.setTooltip([4]);
myChart.setTooltip([5]);
myChart.setTooltip([6]);
myChart.setTooltip([7]);
myChart.setTooltip([8]);
myChart.setTooltip([9]);
myChart.setTooltip([10]);
myChart.setFlagColor('#9D16FC');
myChart.setFlagRadius(4);
myChart.setBackgroundImage('chart_bg.jpg');
myChart.setSize(600, 300);
myChart.draw();
</script>
Sorry, you do not have permission to post/reply in this forum.