๋ชฉ๋ก๐ฉ๐ป ๋ฐฑ์๋(Back-End) (156)
๐ ๊ณต๋ถํ๋ ์ง์ง์ํ์นด๋ ์ฒ์์ด์ง?

https://itadventure.tistory.com/544 ํ์ด์คํฌ๋ฆฝํธ ๋์ ๊ธฐ(3) - ํ๋ค์ค๋ก csv ์ฝ๊ณ ํ๋ก ์ถ๋ ฅํ๊ธฐ ์ง๋ ๊ฒ์๊ธ์ ์ฐ์ฌ๋๋ ๋์ ๊ธฐ 3ํธ์ ๋๋ค : https://itadventure.tistory.com/543 ํ์ด์คํฌ๋ฆฝํธ ๋์ ๊ธฐ(2) - ์ธ๊ตฌ๋ณํ ๊ทธ๋ํ ์ง๋ ๊ฒ์๊ธ์ ์ด์ด ํ์ด์คํฌ๋ฆฝํธ 2๋ฒ์งธ ๋์ ๊ธฐ์ ๋๋ค. ์ง๋ ๊ฒ์๊ธ : https://ita itadventure.tistory.com ๐ Pandas ๋ฅผ ์ฌ์ฉํด์ csv ํ์ผ ๋ถ๋ฌ์ค๊ธฐ โ ๋ชจ๋ ์ ์ธ ํ๊ทธ ์์ pandas ์ฌ์ฉ ์ ์ธ : ์ธํฐ๋ท URL์ ๋ถ๋ฌ์ค๊ธฐ ์ํ open_url ํจ์๋ฅผ ๋ถ๋ฌ์ค๊ธฐ import pandas as pd from pyodide.http import open_url โ ์ฃผ์ csv.write(df.h..

https://itadventure.tistory.com/543 ํ์ด์คํฌ๋ฆฝํธ ๋์ ๊ธฐ(2) - ์ธ๊ตฌ๋ณํ ๊ทธ๋ํ ์ง๋ ๊ฒ์๊ธ์ ์ด์ด ํ์ด์คํฌ๋ฆฝํธ 2๋ฒ์งธ ๋์ ๊ธฐ์ ๋๋ค. ์ง๋ ๊ฒ์๊ธ : https://itadventure.tistory.com/542 ํ์ด์คํฌ๋ฆฝํธ ๋์ ๊ธฐ(1) ์น๋ธ๋ผ์ฐ์ ์์ ์๋ํ๋ ์๋ก์ด ์คํฌ๋ฆฝํธ๋ผ์ ๊ผญ ์๋ํด๋ณด๊ณ ์ถ์๋ itadventure.tistory.com ๐ ๋ชจ๋ ์ฌ์ฉ ์ ์ธ ํ์ด์ฌ ๊ธฐ๋ณธ ๊ธฐ๋ฅ์ด ์๋ ๋ชจ๋ ๋ชจ๋์ py-env ํ๊ทธ๋ฅผ ํตํด ์ฌ์ฉํ๊ฒ ๋ค๊ณ ๋ชจ๋๋ช ์ ์ฌ์ ์ ๋ฏธ๋ฆฌ ์ ์ธ ํด์ผ ํจ ๐ ๊ทธ๋ํ ๊ทธ๋ฆฌ๊ธฐ โ ์ฃผ์ ํ์ด์คํฌ๋ฆฝํธ์์ ๊ทธ๋ํ๋ plt.show() ๋ช ๋ น์ด๊ฐ ์๋๋ผ plt.figure() ๊ธฐ๋ฅ์ ์ฌ์ฉ โ ์์ HTML ์์ค ๋ด์์ ๊ทธ๋ํ๋ฅผ ์ถ๋ ฅํ div ๋ฅผ ํ๋ ์ ์ธ ์ output..

https://itadventure.tistory.com/542 ํ์ด์คํฌ๋ฆฝํธ ๋์ ๊ธฐ(1) - ๊ตฌ๊ตฌ๋จ ์น๋ธ๋ผ์ฐ์ ์์ ์๋ํ๋ ์๋ก์ด ์คํฌ๋ฆฝํธ๋ผ์ ๊ผญ ์๋ํด๋ณด๊ณ ์ถ์๋๋ฐ ์ด์ ์์ํด ๋ณด๋ ค ํฉ๋๋ค :) ์ง๋ ๊ฒ์๊ธ์ ์ ๊น ์ค๋ช ๋๋ ธ๋ฏ ํ์ด์คํฌ๋ฆฝํธ๋ ์น๋ธ๋ผ์ฐ์ ์์ ํ์ด์ฌ ์คํฌ๋ฆฝํธ๋ก ์๋ํ itadventure.tistory.com ๐ PyScript ์ ์ ๊ฐ ํ์ค HTML๊ณผ ๋ชจ๋ ์น ๊ธฐ์ ์ ์ฌ์ฉํ์ฌ ๋ธ๋ผ์ฐ์ ์์ ๋ค์ํ ํ์ด์ฌ ๊ธฐ๋ฐ ์ ํ๋ฆฌ์ผ์ด์ ์ ๋ง๋ค ์ ์๋๋ก ์ง์ํ๋ ํ๋ ์์ํฌ ์ฐ๊ฒฐ์ฝ๋ ๋ธ๋ผ์ฐ์ ์์ ์คํ (ํ๊ทธ ์ or ํ์ผ ๋ถ๋ฌ์ค๊ธฐ) print('Hello, World') ๐ PyScript ๊ฐ๋จํ ์์ Hello, World! ์คํ print('Hello, World!') js ์ python ์ ์๊ฐ ๋น๊ตํ..

https://plotly.com/javascript/plotlyjs-function-reference/ Function Detailed examples of Function Reference including changing color, size, log axes, and more in JavaScript. plotly.com ๐ผ Streaming with Timestamp ๐บ ํ์ผ ๊ตฌ์กฐ index.html javascripts/index.js // 1. csv ๋ก๋ฉํด์ ์ ์ฒด์ ์ผ๋ก ๊ณต์ ํ์ var years = new Array(); var CNT_WAIT = new Array(); function parseData() { Papa.parse("./data/test.csv", { download: tr..

https://mrlee-sub.tistory.com/329 ํต๊ณ ๋ฐ์ดํฐ๋ฅผ ์ํ๊ทธ๋ํ(piechart)๋ก ๋ํ๋ด๊ธฐ (google chart api ์ฐ๋) ๊ตฌ๊ธapi(google charts api)๋ฅผ ์ด์ฉ, ํต๊ณ๋ฐ์ดํฐ๋ฅผ ๋ํ๋ผ ๊ฑด๋ฐ โ ๋จผ์ google charts api์ฌ์ดํธ์ ๋ฐฉ๋ฌธํด์ ์ด๋ค ์์ค์ธ์ง ์ดํด๋ด์ผํ๋ค. ์์ ์์ค๋ฅผ ๊ทธ๋๋ก ๊ฐ๊ณ ์ค๋ ๋ฐ์ดํฐ๊ฐ์ ์กฐ๊ธ ๋ฐ๊ฟ๋ณด์๋ค. ์ฌ๊ธฐ mrlee-sub.tistory.com ๐บ Real Time graph ๐ chart ์์ https://webdeasy.de/en/javascript-real-time-charts/ 1) ๊ตฌ๊ธapi ๊ตฌํ์ ์ํ ๊ธฐ๋ณธ์์ค๋ฅผ ๋ถ๋ฌ์ค๊ธฐ src="https://www.gstatic.com/charts/loader.js" 2) ์ค์ ๋ฐ์ด..

https://gdbs.tistory.com/220 [๋น ๋ฐ์ดํฐ] D3.js ๋ก ๊ฐ๋ฅํ ๊ฒ๋ค - ๋ฐ์ดํฐ ์๊ฐํ ์คํ์์ค D3.js๋ ๋ฌด์์ธ๊ฐ? ๋ฐ์ดํฐ ๋ถ์๊ณผ ์๊ฐํ๊ฐ ์ฃผ๋ชฉ์ ๋ฐ์ผ๋ฉด์ ๊ด๋ จ๋ ์ธ์ด์ ํ์ ์ด์์ ๋ง๋ฟ๊ฒ ๋ฉ๋๋ค. ์์ ์๊ฒ ๋ง๋ ์ธ์ด๋ฅผ ์ฐพ์ ์๋ จ๋๋ฅผ ๋์ฌ์ผ ํ๋๊ฑฐ์ฃ . ๊ทธ๋ฌ๊ธฐ ์ํด์๋ ๊ฐ ์ธ์ด์ ๋ํด gdbs.tistory.com ๐ d3.js ๋ Data Driven Document ์ ์ถ์ฝํ ์คํ์์ค JavaScript ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ก, ๋น ๋ฐ์ดํฐ๋ฅผ ๋ณด์ฌ์ฃผ๋ ๋ฌธ์๋ฅผ ์กฐ์ ์น ๊ธฐ์ (HTML5, SVG, SCC) ์ ์ด์ฉํ์ฌ ๋์ ์ธ ๊ทธ๋ํฝ์ ๋ง๋ค ์ ์์ ์ฝ๋ ๋ค์ด์ด๊ทธ๋จ์ด๋ ๊ฑฐํํ ์ฐจํธ, ๊ณํต๋, ํธ๋ฆฌ ๋ฑ์ ๊ทธ๋ฆผ์ ๋ง๋ค ์ ์์ ๐จ d3.js ์์ ํํ์ด์ง https://github.com/d3/d3/w..

https://dgkim5360.tistory.com/entry/c3-js-cheat-sheet c3.js ์ฌ๋ฌ ์ข ๋ฅ์ ์ฐจํธ ์ฌ์ฉ๋ฒ c3.js์ ์ฌ์ฉ๋ฒ์ ์ ๋ฆฌํ๋ ค ํ๋ค. c3๋ผ๋ ์ด๋ฆ์์ ์ ์ถํ ์ ์๋ฏ์ด, d3.js์ ๋ณต์กํ ๋ฐ์ดํฐ ์๊ฐํ๋ฅผ ์กฐ๊ธ ๋ ์ฝ๊ฒ ์ฌ์ฉํ ์ ์๋๋ก ์ด๋ ์ ๋ ๋ชจ๋์ ๊ฐ์ธ ๋์ d3 ๊ธฐ๋ฐ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ด๋ค. d3.js์ dgkim5360.tistory.com ๐ณ c3.js d3.js์ ๋ณต์กํ ๋ฐ์ดํฐ ์๊ฐํ๋ฅผ ์กฐ๊ธ ๋ ์ฝ๊ฒ ์ฌ์ฉํ ์ ์๋๋ก ์ด๋ ์ ๋ ๋ชจ๋์ ๊ฐ์ธ ๋์ d3 ๊ธฐ๋ฐ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ ๐จ c3.js ์์ ํํ์ด์ง https://c3js.org/ ๐จ c3.js github ์์ ์ฌ์ฉํ c3.min.js ๋ค์ด๋ก๋ https://github.com/c3js/c3/releases/t..

https://github.com/huyle333/graphs-from-csv GitHub - huyle333/graphs-from-csv: 2016 Example repository for creating website graphs with c3.js from CSV files. 2016 Example repository for creating website graphs with c3.js from CSV files. - GitHub - huyle333/graphs-from-csv: 2016 Example repository for creating website graphs with c3.js from CSV files. github.com ๐ ํ์ผ ๊ตฌ์กฐ ๐ ์ฝ๋ ์์ ์ฝ๋๋ ์ฒจ๋ถ ์ฃผ์ git clon..