출처 : http://www.phpschool.com/gnuboard4/bbs/board.php?bo_table=tipntech&wr_id=29645&sca=&sfl=wr_subject%7C%7Cwr_content&stx=%C2%F7%C6%AE&sop=and
▶ 파나챠트
다운로드 및 설치 사이트
http://www.panacode.com/panachart/
스크린샷
http://www.panacode.com/panachart/index.php?SEC=screenshots
다운로드
http://www.panacode.com/panachart/index.php?SEC=download
▶ JpGraph
http://www.aditus.nu/jpgraph/
다운로드
http://www.aditus.nu/jpgraph/jpdownload.php
=====================
=====수정할부분 =====
=====================
한굴출력 방법은 아래와 같습니다.
우선 panachart.php 를 열고 아래부분을 찾아서
// plot title
if($this->m_title){
imagestring ($this->m_image,
$this->m_font,
($this->m_width-strlen($this->m_title)*$this->m_fontWidth)/2,
$margin,
$this->m_title,
$this->m_textColor);
}
imagestring 부분을 imagettftext 함수로 변경만 하면 끝입니다.
imagettftext(
$this->m_image,
$this->m_font,
0,
($this->m_width-strlen($this->m_title)*$this->m_fontWidth)/2,
$margin+10,
$this->m_textColor, \"[투루타입이 있는 글꼴 PATH]\", iconv(\"cp949\",\"UTF-8\",$this->m_title));
ps : $margin 값이 약간 차이가 나서 임의로 10을 더 plus 시켰더니 안짤리고 잘 나오더군여
====================================================================================
지금 panachart v0.9.2 를 사용중인데.. 최대값과 최소값이 같을때 버그가 있더군요..
function addSeries(...) 에 보시면 다음과 같은 구문이 있을겁니다.
if($minValue < $this->m_minValue) $this->m_minValue = $minValue;
if($maxValue > $this->m_maxValue) $this->m_maxValue = $maxValue;
바로 이 다음줄에 다음과 같이 추가해주세요
if ($this->m_minValue == $this->m_maxValue) $this->m_maxValue++;
그럼 에러나는 문제 해결 됩니다..
참고하시길..<div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:12:10 PHP & HTML에서 이동 됨]</div>
▶ 파나챠트
다운로드 및 설치 사이트
http://www.panacode.com/panachart/
스크린샷
http://www.panacode.com/panachart/index.php?SEC=screenshots
다운로드
http://www.panacode.com/panachart/index.php?SEC=download
▶ JpGraph
http://www.aditus.nu/jpgraph/
다운로드
http://www.aditus.nu/jpgraph/jpdownload.php
=====================
=====수정할부분 =====
=====================
한굴출력 방법은 아래와 같습니다.
우선 panachart.php 를 열고 아래부분을 찾아서
// plot title
if($this->m_title){
imagestring ($this->m_image,
$this->m_font,
($this->m_width-strlen($this->m_title)*$this->m_fontWidth)/2,
$margin,
$this->m_title,
$this->m_textColor);
}
imagestring 부분을 imagettftext 함수로 변경만 하면 끝입니다.
imagettftext(
$this->m_image,
$this->m_font,
0,
($this->m_width-strlen($this->m_title)*$this->m_fontWidth)/2,
$margin+10,
$this->m_textColor, \"[투루타입이 있는 글꼴 PATH]\", iconv(\"cp949\",\"UTF-8\",$this->m_title));
ps : $margin 값이 약간 차이가 나서 임의로 10을 더 plus 시켰더니 안짤리고 잘 나오더군여
====================================================================================
지금 panachart v0.9.2 를 사용중인데.. 최대값과 최소값이 같을때 버그가 있더군요..
function addSeries(...) 에 보시면 다음과 같은 구문이 있을겁니다.
if($minValue < $this->m_minValue) $this->m_minValue = $minValue;
if($maxValue > $this->m_maxValue) $this->m_maxValue = $maxValue;
바로 이 다음줄에 다음과 같이 추가해주세요
if ($this->m_minValue == $this->m_maxValue) $this->m_maxValue++;
그럼 에러나는 문제 해결 됩니다..
참고하시길..<div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:12:10 PHP & HTML에서 이동 됨]</div>
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7330 | 11년 전 | 1710 | ||
| 7329 | 11년 전 | 952 | ||
| 7328 | 11년 전 | 2245 | ||
| 7327 | 11년 전 | 1736 | ||
| 7326 | 11년 전 | 3835 | ||
| 7325 | 11년 전 | 2301 | ||
| 7324 | 11년 전 | 4537 | ||
| 7323 |
호식이와미돌
|
11년 전 | 1322 | |
| 7322 |
호식이와미돌
|
11년 전 | 1166 | |
| 7321 | 11년 전 | 1812 | ||
| 7320 | 11년 전 | 1786 | ||
| 7319 | 11년 전 | 1342 | ||
| 7318 |
|
11년 전 | 998 | |
| 7317 |
멋진남자임
|
11년 전 | 1642 | |
| 7316 |
잘살아보자
|
11년 전 | 1008 | |
| 7315 | 11년 전 | 1134 | ||
| 7314 | 11년 전 | 1365 | ||
| 7313 |
잘살아보자
|
11년 전 | 1141 | |
| 7312 | 11년 전 | 900 | ||
| 7311 |
사랑한데이
|
11년 전 | 2103 | |
| 7310 |
잘살아보자
|
11년 전 | 1913 | |
| 7309 |
잘살아보자
|
11년 전 | 3073 | |
| 7308 |
잘살아보자
|
11년 전 | 1030 | |
| 7307 |
잘살아보자
|
11년 전 | 793 | |
| 7306 | 11년 전 | 895 | ||
| 7305 |
잘살아보자
|
11년 전 | 2771 | |
| 7304 | 11년 전 | 1061 | ||
| 7303 | 11년 전 | 1253 | ||
| 7302 | 11년 전 | 765 | ||
| 7301 | 11년 전 | 1547 | ||
| 7300 |
mijaya
|
11년 전 | 1518 | |
| 7299 | 11년 전 | 938 | ||
| 7298 | 11년 전 | 1120 | ||
| 7297 | 11년 전 | 795 | ||
| 7296 | 11년 전 | 762 | ||
| 7295 | 11년 전 | 1585 | ||
| 7294 | 11년 전 | 942 | ||
| 7293 | 11년 전 | 835 | ||
| 7292 | 11년 전 | 923 | ||
| 7291 |
잘살아보자
|
11년 전 | 1110 | |
| 7290 |
잘살아보자
|
11년 전 | 793 | |
| 7289 | 11년 전 | 828 | ||
| 7288 |
잘살아보자
|
11년 전 | 1368 | |
| 7287 | 11년 전 | 852 | ||
| 7286 |
잘살아보자
|
11년 전 | 1355 | |
| 7285 | 11년 전 | 848 | ||
| 7284 | 11년 전 | 999 | ||
| 7283 | 11년 전 | 1024 | ||
| 7282 | 11년 전 | 789 | ||
| 7281 | 11년 전 | 829 | ||
| 7280 | 11년 전 | 1077 | ||
| 7279 | 11년 전 | 2001 | ||
| 7278 | 11년 전 | 834 | ||
| 7277 | 11년 전 | 842 | ||
| 7276 | 11년 전 | 775 | ||
| 7275 | 11년 전 | 1198 | ||
| 7274 | 11년 전 | 841 | ||
| 7273 | 11년 전 | 768 | ||
| 7272 | 11년 전 | 1088 | ||
| 7271 | 11년 전 | 1421 | ||
| 7270 | 11년 전 | 1042 | ||
| 7269 | 11년 전 | 981 | ||
| 7268 | 11년 전 | 1013 | ||
| 7267 | 11년 전 | 1863 | ||
| 7266 | 11년 전 | 924 | ||
| 7265 | 11년 전 | 972 | ||
| 7264 |
잘살아보자
|
11년 전 | 2735 | |
| 7263 |
잘살아보자
|
11년 전 | 2273 | |
| 7262 |
잘살아보자
|
11년 전 | 1148 | |
| 7261 |
잘살아보자
|
11년 전 | 1644 | |
| 7260 |
잘살아보자
|
11년 전 | 1265 | |
| 7259 | 11년 전 | 1180 | ||
| 7258 |
잘살아보자
|
11년 전 | 1310 | |
| 7257 |
잘살아보자
|
11년 전 | 1912 | |
| 7256 | 11년 전 | 958 | ||
| 7255 |
그누5입문
|
11년 전 | 1968 | |
| 7254 | 11년 전 | 2179 | ||
| 7253 |
|
11년 전 | 881 | |
| 7252 | 11년 전 | 1014 | ||
| 7251 | 11년 전 | 733 | ||
| 7250 | 11년 전 | 1703 | ||
| 7249 | 11년 전 | 1559 | ||
| 7248 |
sogo87
|
11년 전 | 1055 | |
| 7247 | 11년 전 | 953 | ||
| 7246 | 11년 전 | 723 | ||
| 7245 |
잘살아보자
|
11년 전 | 1093 | |
| 7244 | 11년 전 | 1545 | ||
| 7243 |
presee
|
11년 전 | 613 | |
| 7242 |
sogo87
|
11년 전 | 801 | |
| 7241 | 11년 전 | 923 | ||
| 7240 |
브라이언2
|
11년 전 | 932 | |
| 7239 |
|
11년 전 | 1146 | |
| 7238 | 11년 전 | 2643 | ||
| 7237 |
잘살아보자
|
11년 전 | 2280 | |
| 7236 |
dethos79
|
11년 전 | 1854 | |
| 7235 |
멋진남자임
|
11년 전 | 1418 | |
| 7234 | 11년 전 | 1359 | ||
| 7233 | 11년 전 | 2339 | ||
| 7232 | 11년 전 | 1619 | ||
| 7231 | 11년 전 | 2802 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기