???? ?? ??? ??, REST API ?? ??? Google ?? ? ???? ???? ????. ?? ?? ?? ?????! ? ??? ??? ??? ?? ??? ??? ?? ???? ?????? ? ???? ??? ???? ???, ?????? ?? ??? ????.
? ??? ??? ??? ??? ???? JavaScript ??? ??? ??? ??? ??? ?? ???.
??? ??? ????, ??? Chart.js? ????, ?????? ?? ??? ???? ????.
<code></code>
??? ?? 1 : HTML ??? ???
?? ? ????? ??? ??? ?????. ???? ???? ?? ???? ??? ??? ? ????. ??? ???? ?????? ??? ??? ?? ?? ? ??? ? ?? ? ?????
??? JavaScript ??? ???? HTML ????? ???? ???? ??? ??? ??? ? ? ????. ?? ??? ???? ??????.
?? | ??? | ??? ($) | ?? ($) |
---|---|---|---|
2016 | 10 | 200 | 89 |
2017 | 25 | 550 | 225 |
2018 | 55 | 1200 | 600 |
2019 | 120 | 2450 | 1100 |
? ????? ??? ?? ???? ???? ????. ???? ?? ? ??? ????? ????? ???? ???? ? ? ??? ?????. ?????!
?? ?? ??? ??? ???. ? ??? Chart.js ??????? ?? ????? ??? ? ?? ??? ???? ?? ????. ?? ??? ???? ?? ? ?? ??? ??????.
?? buildChart (???, ?, ?? ???) { var ctx = document.getElementById ( "mychart"). getContext ( '2d'); var mychart = ??? ?? (ctx, { ?? : '?', ??? : { ??? : ???, // ?? ??? ?? : [{ ??? : ChartTitle, // ??? ?? ??? : ?, // ? BackgroundColor : [// ??? ?? ?? ? 'RGBA (255, 99, 132, 0.2)', 'RGBA (54, 162, 235, 0.2)', 'RGBA (255, 206, 86, 0.2)', 'RGBA (75, 192, 192, 0.2)', 'RGBA (153, 102, 255, 0.2)', 'RGBA (255, 159, 64, 0.2)' ],, BorderColor : [// ??? ?? ?? 'RGBA (255,99,132,1)', 'RGBA (54, 162, 235, 1), 'RGBA (255, 206, 86, 1)', 'RGBA (75, 192, 192, 1)', 'RGBA (153, 102, 255, 1)', 'RGBA (255, 159, 64, 1)' ],, Borderwidth : 1 // ?? ??}] }, ?? : { Responsive : True, // ?? ? ??? ASPERASPECTRATIO : FALSE, // ???? ??/?? ?? ??}} }); Mychart? ?????. }
?? ??? ???? ????? ?? ??? ???? ???? HTML ??? ???? ?? ??? ???? ? ??? ??? ??? ??? ???????. ??? ?? ? ??? ???? ??? ?????.
?? | ??? | ??? ($) | ?? ($) |
---|---|---|---|
2016 | 10 | 200 | 89 |
2017 | 25 | 550 | 225 |
2018 | 55 | 1200 | 600 |
2019 | 120 | 2450 | 1100 |
???? ?? JavaScript? ???? ???? JSON?? ?? ???????. Chart.js?? JSON? ???? ??? ? ???.
// ... (buildChart ?? ??) ... var table = document.getElementById ( 'dataTable'); var json = []; // ? ?? ?? ?? var ?? = []???. for (var i = 0; i
DevTools ???? ??? ???? ?? ??? ?? ?? ??????. ??? ??? ??? ????.
???! ??? ??? ????? ??? ?? ??? ?????.
?? ?? ?? ???? ?? ?? ??? ???? ???? (Chart.js? ??? ??? ??? ???). ?? ?? ???? ?? ???? ???? ????.
? ????? JSON ?? ? ?? ?????. ?? ?? ??? ?? ? ? ????.
// ? JSON ? ???? ?? var var var labels = json.map (function (e) { ?? e.year; }); Console.log (???); // [ "2016", "2017", "2018", "2019"]] // JSON ? ??? ?? ? ?? var value = json.map (function (e) { return e.itemssold; }); Console.log (?); // [ "10", "25", "55", "120"] // BuildChart ??? ???? ??? ??????. var ?? = BuildChart (???, ?, "?? ??");
?? ??! ?? ???? ???? JavaScript ???? ???? ????????.
(... ?? ??? ??? ??? ???????? ?? ??? ? ? ???? ????? ...)
??? ?? 2 : ??? API
???? ?? ?? API? ???, ? ? ?? ???? ??? ???? ?? ?????. API ? ??? ???? ??? ??? ???? ??? ??? ?? ?????. ?? Forbes 400 Rich List API? ???? ???? ?? ?? ? 10 ?? ?? ? ???? ?? ??? ?? ?? ????. ???? ! ?? ?? ?? ??? ???? ??? API? ? ?? ???? ?????. ??? ?? ??? ??? JavaScript? ???? ??? ??? ? ????? ??? ????? ???? ?????!
?? ?? ??? ?? ???? ???? ? ?? ??? ?????.
// ... (??? ????? 'HorizontalBar'? ?? ??? ???? ??) ...
???? ??? ?????? ??? HTML ??? ??? ?????.
<canvas id="myChart"></canvas>
?? ??? ???? ?????. Console?? Forbes API ??? ??? ????? ???.
(... API? ?? ? JSON ???? ?? ??? ??????? API? ?? ?? ? ? ???? ????? ...)
?? ? JSON ????? ? ? ??? ??? ?? ? ??? ?? ??? ??? ????. ??? ??? ??? ??? ???!
??? JavaScript ??? ???? API? ???? ???? ??? ????? ?? ???? ???? ????? ???? ???? ??? ??? ? ? ????.
// ... (buildChart ?? ??) ... var xhttp = new xmlhttprequest (); xhttp.onreadystatechange = function () { if (this.readystate == 4 && this.status == 200) { var json = json.parse (this.response); // JSON ??? ? ?? var var labels = json.map (function (e) {? ?? ?????. ?? e.name; }); // JSON ? ??? ?? ? ?? var value = json.map (function (e) { ?? (e.realtimeworth / 1000); // 1000?? ???, ??? 10 ????}); BuildChart (???, ?, "??? ? ??"); // ???? ???? ?? ??? ??}} }; xhttp.open ( "get", "https://forbes400.https://forbes400.herokuapp.com/api/forbes400?limit=10", false); xhttp.send ();
(... ?? ??? ??? ??? ???????? ?? ??? ? ? ???? ????? ...)
??? ?? 3 : Google ??
???? ??? ?? HTML ???? API? ???? ???? ??? ? ???. ??? ?? ?? ?????? Google ??? ??? ????? ??? ??? ???? ??? ?? ? ????!
?? Google ??? ????? ? ?? ??? ????.
- Google ??? ???????
- Google ??? ???????? (?, ?? ???? ???? ??)
? ? ??? ???? ? JSON ??? Google ??? ??? ? ? ????.
??? ??? ???? ?? ????? ?? ? Google ?????. ???? ?? ID, ?? ? ?? ? ?? ??? ? ?? ??? ??? ???? ????.
?? ???? URL? ?? ??? ??? ? ?? ????? ???????.
<code>https://docs.google.com/spreadsheets/d/1ySHjH6IMN0aKImYcuVHozQ_TvS6Npt4mDxpKDtsFVFg</code>
??? ??? ID?? Get ??? Google? ??? ? ??? ????. JSON?? GET ??? ????? ???? ?? URL? ?????.
<code>https://spreadsheets.google.com/feeds/list/[ID GOES HERE]/od6/public/full?alt=json</code>
??? ???? ??? ?? URL? ? ????.
<code>https://spreadsheets.google.com/feeds/list/1ySHjH6IMN0aKImYcuVHozQ_TvS6Npt4mDxpKDtsFVFg/od6/public/full?alt=json</code>
???? ?? ??? ??? ????.
(... Google Sheets API? ?? ? JSON ??? ??? ??? ???????? API? ?? ?? ? ? ???? ????? ...)
??? ??? feed.entry
?? ?????. ??? ??? ???? ???? ??? ?? ? ? ??? ????.
(... Google Sheets API? ?? ? JSON ??? ??? feed.entry
??? ??? ??? ????????. gsx$date
? gsx$productsproduced
?? ????? API? ?? ?? ? ? ???? ????? ...)
????? ??? ??? ??????. Google Sheets API? gsx$
(? : gsx$date
)? ? ? ???? ?????. ???? ???? ?? ? ??? ???? ??? ???? ???? ?????. ??? ??? ?? ?? ???? ??? ? ??? ???? ?? ???? ???????.
// ... (??? ????? 'bar'? ???? ??? ??? ??????) ... var xhttp = new xmlhttprequest (); xhttp.onreadystatechange = function () { if (this.readystate == 4 && this.status == 200) { var json = json.parse (this.response); Console.log (JSON); // JSON ??? ? ?? var var labels = json.feed.entry.map (function (e) {? ?????. return e.gsx $ date. $ t; }); // JSON ? ??? ?? ? ?? var value = json.feed.entry.map (function (e) { return e.gsx $ products -produced. $ t; }); BuildChart (???, ?, "?? ???"); } }; xhttp.open ( "get", "https://spreadsheets.google.com/feeds/list/1yshjh6imn0akimycuvhozq_tvs6npt4mdxpkdtsfvfg/od6/public/full?alt=json", false); xhttp.send ();
(... ?? ??? ??? ??? ???????? ?? ??? ? ? ???? ????? ...)
???? ??? ?? ?????
???? ??? ??? ?? ???? ?? ??? ?? ?? ??? ??? ?? ???? ????. ??? ? ??? ??? ??? ???????? ? ??? ??? ?? ? ????.
???? ?? ??? ??? ?? ??? ???? ??? ???? ??? ?? ???? ????! ??? ??? ?? ???? ???? ????. ??? ??? ??? ? ?? ???? ??? ?? ?? ?? ?? ???????.
? ?? ?? ?????
- Chart.js
- NVD3 (D3.JS ?)
- ? ??
- Canvasjs
? ?? ??? ???? ??
- ?????
- ??
- ???
? ?? ? ??? ?? ??? ?? ??? ????? ?? ??? ?????. ??? ??? ?? ??? ??? ???? ??? ? ?? ??? ???? ?? ?? ?? ?????. ???? ?? ???? ???? ?????.
? ??? ???? ??? ?? ?? ?? ?? ??? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Clothoff.io
AI ? ???

Video Face Swap
??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

SublimeText3 Mac ??
? ??? ?? ?? ?????(SublimeText3)

CSS?? ????? ??? ? ?? ??? ????. 1. HTML ? CSS? ?? ??? ?????? ???? ?? ???? ?? ???? ??????. 2. ?? ??? ??? ?? ???? ???? ?? ?? ??? ?? ?? ??? ??????. 3. ??? ????? ???? JavaScript? ?? ???? ?????? ??? ?????. ? ?? ??? ??? ??? ????? ?? ??, ??, ??? ? ?? ???? ?? ?? ?? ??? ???? ?????.

CSS ???? ??? ? ??? ??? ????? ???? ??? ???? ???? ?? ?? ???? ????? ???????. 1. Flexbox ? ??? ??? ?? ???? ??? ??, ?? : ??? ?? ? ????? ??? ????. 2. Caniuse ?? ?? ?? ??? ??????. 3. -webkit-, -moz-, -ms-, -o- ? ?? ???? ???? ???? ?????. 4. AutoPrefixer? ???? ???? ???? ???? ?? ????. 5. ?? ????? ????? PostCSS? ???? BrowsersList? ??????. 6. ?? ? ???? ???? ?????. 7. Modernizr ?? ??? ??? ????? ??? ? ????. 8. ?? ????? ???? ?? ? ??? ????.

CSS? ?? ?? ??? ??? ??? ???? ???? SVG? ???? ?? ???, ?? ????, ??? ?? ?? ??? ?? ???? ??????. ??? ??? ????. 1. ?, ??, ??? ?? ?? ??? ?? ??? ?????. 2. ?? ?? ? ??? ???? ??? ? ????. 3. ?????? ?? ?? ?? ?? ????? ???? ?? ??? ?? ? ? ????. 4. ???? ???? ??? ??? ??? ????? ?? ? ??? ????. ???? ???? ?? ?? ?? : ? (50pxatcenter) ? ??? ?? ?? : ??? (50%0%, 100 0%, 0%)? ?? ????. ????

themaindifferencesbetweendisplay : ???, ??, andinline-blockinhtml/cssarelayoutbehavior, spaceusage ? stylingcontrol.1.inlineElementsFlowWithText, do n'tStartonnewlines, ingorewidth/height, andonlyapplyhorizontalpadding/margins —IdealforIneTeTexting

??? ?? ???? ???? ??? ??, ?? ??? ??? ? ? ????? ??? ??? ???? ???? ? ? ?? ? ? ????. 1. CSS ?? : ?? ??? ???? ???? ?? ??; 2. ????? ?? ?? ?? ???? ?? ?? ??? ??? ? ????. 3. ?? ??? ??? ??? ??? ?? ?? ???? ????????. 4. ??? ????? ??? ???? ?? ? ??? ??? ?? ??? ?? ?? ??? ????? ???? ?? ????.

CSS? ???? ?? ? ???? ???? ??? ?? ??? ?? ?? ?? ? ? ????. 1. Max width : 100% ? ?? : Auto? ???? ???? ??? ????? ???? ??? ??? ? ??????. 2. HTML? SRCSET ? ?? ??? ???? ?? ??? ??? ??? ??? ???????????. 3. ?? ?? ? ?? ??? ???? ??? ??? ? ?? ?????? ??????. ? ??? ?? ???? ?? ???? ???? ???? ????????.

CSS ??? ??? ?? ?? ?? ? ?? ? ?? ??? ?? ????. 1.px? ?? ??? ????? ?? ??? ??? ?? ??? ?????. 2.EM? ?? ????, ?? ?? ??? ??? ?? ?? ???? ??, REM? ?? ??? ???? ? ????? ??? ????? ?????. 3.VW/VH? ?? ? ???? ??? ??? ??? ??????? ?? ???? ?????? ???????. 4. ??? ?? ?? ? ??, ?? ?? ?? ? ??? ???? ???? ???????. ???? ??? ???? ??? ? ?? ??? ???? ? ????.

?? ????? CSS ?? ??? ????? ?? ?? ??? ??, ?? ?? ?? ??, Flexbox ? ??? ???? ?? ?? ? ?? CSS ??? ????? ??? ???? ???? ?? ????? ??? ?????. 1. ?? ??? ??? ???? ????. ???? CSSRESET ?? NALLER.CSS? ???? ?? ???? ???? ????. 2. IE? ?? ??? ?? ?? ?? ??? ????. ?? ?? : ?? ? ???? ??? ??? ???? ?? ????. 3. Flexbox ? Grid? Edge Case ?? Old ???? ??? ?????. ? ?? ??? ? AutopRefixer ??; 4. ?? CSS ?? ??? ???? ????. Caniuse? ???? ?? ?????????.
