|
Web Design ![]() This website demonstrates using wikis as teaching and learning tool. The course instructor is happy to share the teaching materials here with those who find it readable. |
Tutorial /
JavaScript - Charting and TooltipsIntroduction: In this tutorial, you study 3 jQuery plugins and use them to make some useful charts and tooltips for a web page. The following shows a screen shot of the web page that you shall accomplish in this tutorial.
Activity One: Tooltips
Activity Two: Charting with Highcharts
<div id="chart-container" style="width: 100%; height: 200px;margin-bottom:10px;">
</div>
text: '大學聯招「computing」課程 分校統計'
categories: ['港大','中大','科大','理大','城大','浸大','嶺大','公大','教院']
data: [0,0,0,2,1,1,0,1,0]
Activity Three: Charting with jQuery Sparklines
<li><span class="bullet">67,139,403,337,236</span> JA1626</li>
<li><span class="bullet">62,169,457,376,274</span> JA2448</li>
<li><span class="bullet">21,38,114,85,59</span> JA3325</li>
<li><span class="bullet">106,220,489,409,314</span> JA3868</li>
<li><span class="bullet">47,93,226,166,126</span> JA9707</li>
Activity Four: Tooltips that display image
Resources and ReferencesBeautyTips is a simple-to-use balloon-help style tootip plugin. Any element on the page can be set to show a talk-balloon containing any text or HTML on hover, click, or any bindable event.
Highcharts is a charting library written in pure JavaScript, offering an easy way of adding interactive charts to your web site or web application. Highcharts currently supports line, spline, area, areaspline, column, bar, pie and scatter chart types.
This jQuery plugin generates sparklines (small inline charts) directly in the browser using data supplied either inline in the HTML, or via javascript.
|