1
데이터베이스의 일부 데이터를 표시하기 위해 php lib 그래프를 사용하고 있습니다. 내 페이지의 div 요소 내에서 그것을 사용할 때 그래프 이미지가 표시됩니다. 그러나 양식과 같은 다른 페이지 요소를 표시 할 수 없습니다.html 양식에 PHPGraphLib 그래프를 표시하는 방법
date_default_timezone_set("Asia/Calcutta");
include("includes.php");
include('phpgraphlib.php');
session_start();
$graph = new PHPGraphLib(350,280);
$data= array();
$Select_Query = "select level,sum(score) score,sum(total_time) total_time from
user_score where user_id='2' group by level";
$result_query = mysql_query($Select_Query);
$rows = mysql_num_rows($result_query);
while($row=mysql_fetch_array($result_query)){
$data[$row['level']] = $row['score'];
}
$graph->setBackgroundColor("black");
$graph->addData($data);
$graph->setBarColor('255,255,204');
$graph->setTitle('IQ Scores');
$graph->setTitleColor('yellow');
$graph->setupYAxis(12, 'yellow');
$graph->setupXAxis(20, 'yellow');
$graph->setGrid(false);
$graph->setGradient('silver', 'gray');
$graph->s`enter code here`etBarOutlineColor('white');
$graph->setTextColor('white');
$graph->setDataPoints(true);
$graph->setDataPointColor('yellow');
$graph->setLine(true);
$graph->setLineColor('yellow');
$graph->createGraph();
그리고 난 그 후에 몇 가지 HTML div와 양식이 있습니다. 그러나 그래프 이미지 만 브라우저에는 표시되지만 양식에는 표시되지 않습니다. 그것을 고치는 방법?
대단히 감사합니다. – user1755949