<?
# 그래프 출력을 위한 데이터의 최대값및 최소값 세팅
$maxVal = 50; // 최대값 5백만
$step = 5; // 단위 5십만
$arrVal = array(25,18, 34, 46, 10, 29, 17, 38, 26, 25, 27, 39, 44, 22, 16, 43, 39, 22, 44, 18, 14, 22, 32, 45);
function showStickGraph($maxVal, $minVal, $step, $arrVal)
{
$bottomCommentHeight= 30; // 하단 설명공간 높이 픽셀값
$cntY = round($maxVal / $step); // y축 눈금개수
$unitHight = 30; // 단위 높이 픽셀값
$minVal = 0; // 최소값
$k= 10;
?>
<table cellpadding=0 cellspacing=0 border="1" >
<tr>
<!-- y축-->
<td >
<table cellpadding=0 cellspacing=0 border="1" >
<? for ($a= $maxVal; $a >= $minVal; $a -= $step){ ?>
<tr>
<td height="<?=$unitHight?>" valign="bottom" align="right">
<font size="2"><?=$a?></font>
</td>
</tr>
<?}?>
<tr>
<td height="<?=$bottomCommentHeight?>">
<font size="2">매출<br>(단위:10만)</font></td>
</tr>
</table>
</td>
<!--x축-->
<td valign="bottom">
<table cellpadding=0 cellspacing=0 border="0" >
<tr>
<? for ($i= 0; $i < 24; $i++){ ?>
<td align="center" valign="bottom">
<table cellpadding=0 cellspacing=0 border="1" >
<tr>
<td width="20" height="<?=($arrVal[$i])/$step * $unitHight ?>" bgcolor="green" valign="top" align="center">
<font size="2" color="white"><b><?=$arrVal[$i]?></b></font></td>
</tr>
<tr>
<td height="<?=$bottomCommentHeight?>" valigh="top"><font size="2"><?=($i<10)?"0$i":$i?></font></td>
</tr>
</table>
</td>
<?}?>
</tr>
</table>
</td>
</tr>
</table>
<?
}
showStickGraph($maxVal, $minVal, $step, $arrVal);
?>
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 8230 | 9년 전 | 86 | ||
| 8229 | 9년 전 | 84 | ||
| 8228 |
커네드커네드
|
9년 전 | 123 | |
| 8227 | 9년 전 | 137 | ||
| 8226 | 9년 전 | 176 | ||
| 8225 | 9년 전 | 161 | ||
| 8224 | 9년 전 | 156 | ||
| 8223 | 9년 전 | 124 | ||
| 8222 |
|
9년 전 | 201 | |
| 8221 | 9년 전 | 102 | ||
| 8220 | 9년 전 | 117 | ||
| 8219 | 9년 전 | 112 | ||
| 8218 | 9년 전 | 159 | ||
| 8217 |
star3840
|
9년 전 | 122 | |
| 8216 | 9년 전 | 169 | ||
| 8215 | 9년 전 | 129 | ||
| 8214 | 9년 전 | 231 | ||
| 8213 | 9년 전 | 173 | ||
| 8212 | 9년 전 | 88 | ||
| 8211 | 9년 전 | 264 | ||
| 8210 | 9년 전 | 257 | ||
| 8209 | 9년 전 | 345 | ||
| 8208 | 9년 전 | 234 | ||
| 8207 | 9년 전 | 241 | ||
| 8206 |
|
9년 전 | 203 | |
| 8205 | 9년 전 | 181 | ||
| 8204 | 9년 전 | 146 | ||
| 8203 | 9년 전 | 240 | ||
| 8202 | 9년 전 | 155 | ||
| 8201 | 9년 전 | 189 | ||
| 8200 | 9년 전 | 173 | ||
| 8199 | 9년 전 | 229 | ||
| 8198 | 9년 전 | 186 | ||
| 8197 | 9년 전 | 177 | ||
| 8196 | 9년 전 | 564 | ||
| 8195 | 9년 전 | 172 | ||
| 8194 | 9년 전 | 293 | ||
| 8193 | 9년 전 | 166 | ||
| 8192 | 9년 전 | 209 | ||
| 8191 | 9년 전 | 155 | ||
| 8190 | 9년 전 | 147 | ||
| 8189 | 9년 전 | 205 | ||
| 8188 | 9년 전 | 139 | ||
| 8187 | 9년 전 | 158 | ||
| 8186 | 9년 전 | 151 | ||
| 8185 | 9년 전 | 329 | ||
| 8184 | 9년 전 | 117 | ||
| 8183 | 9년 전 | 336 | ||
| 8182 | 9년 전 | 181 | ||
| 8181 | 9년 전 | 147 | ||
| 8180 | 9년 전 | 711 | ||
| 8179 | 9년 전 | 499 | ||
| 8178 | 9년 전 | 318 | ||
| 8177 |
kiplayer
|
9년 전 | 340 | |
| 8176 | 9년 전 | 367 | ||
| 8175 | 9년 전 | 237 | ||
| 8174 | 9년 전 | 259 | ||
| 8173 | 9년 전 | 354 | ||
| 8172 | 9년 전 | 212 | ||
| 8171 | 9년 전 | 191 | ||
| 8170 | 9년 전 | 306 | ||
| 8169 |
커네드커네드
|
9년 전 | 265 | |
| 8168 | 9년 전 | 332 | ||
| 8167 | 9년 전 | 329 | ||
| 8166 | 9년 전 | 246 | ||
| 8165 | 9년 전 | 182 | ||
| 8164 | 9년 전 | 312 | ||
| 8163 | 9년 전 | 294 | ||
| 8162 | 9년 전 | 312 | ||
| 8161 | 9년 전 | 307 | ||
| 8160 |
|
9년 전 | 506 | |
| 8159 | 9년 전 | 439 | ||
| 8158 | 9년 전 | 264 | ||
| 8157 | 9년 전 | 392 | ||
| 8156 | 9년 전 | 281 | ||
| 8155 | 9년 전 | 268 | ||
| 8154 |
00년생용띠
|
9년 전 | 609 | |
| 8153 | 9년 전 | 245 | ||
| 8152 |
|
9년 전 | 420 | |
| 8151 | 9년 전 | 423 | ||
| 8150 | 9년 전 | 518 | ||
| 8149 |
Jangfolk
|
9년 전 | 358 | |
| 8148 | 9년 전 | 181 | ||
| 8147 | 9년 전 | 386 | ||
| 8146 | 9년 전 | 457 | ||
| 8145 | 9년 전 | 401 | ||
| 8144 | 9년 전 | 362 | ||
| 8143 | 9년 전 | 209 | ||
| 8142 | 9년 전 | 437 | ||
| 8141 | 9년 전 | 389 | ||
| 8140 | 9년 전 | 940 | ||
| 8139 | 9년 전 | 276 | ||
| 8138 |
전갈자리남자
|
9년 전 | 398 | |
| 8137 | 9년 전 | 408 | ||
| 8136 | 9년 전 | 758 | ||
| 8135 |
|
9년 전 | 805 | |
| 8134 |
PlayPixel
|
9년 전 | 526 | |
| 8133 |
|
9년 전 | 453 | |
| 8132 | 9년 전 | 467 | ||
| 8131 | 9년 전 | 824 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기