
Conventions
In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.
Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "For the yaxis
option, we set our label
and use the formatString
option to format our values as currency."
A block of code is set as follows:
<script> $(document).ready(function(){ var secondPlot = $.jqplot ('secondChart', [[[5,4],[10,7],[15,6],[20,9]]]); }); </script> <div id="secondChart" style="width:400px;"></div>
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
<script src="../js/jqplot.dateAxisRenderer.min.js"></script>
<script>
$(document).ready(function(){
var revenue = [['2012-07-20', 807403], ['2012-08-20', 755840], ['2012-09-20', 775304]];
var profit = [['2012-07-20', 193793.82], ['2012-08-20', 183221.56], ['2012-09-20', 192797.31]];
var electronics = [['2012-07-20', 116276.29], ['2012-08-20', 95867.97], ['2012-09-20', 120591.27]];
var media = [['2012-07-20', 27596.25], ['2012-08-20', 32396.47], ['2012-09-20', 26709.06]];
var nerd_corral = [['2012-07-20', 49921.28], ['2012-08-20', 54957.12], ['2012-09-20', 45496.98]];
var rev_profit = $.jqplot ('division_profit', [revenue, profit, electronics, media, nerd_corral],
{
New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "We test our chart, and a trend line for DVDs/Blu-ray is rendered since we did not pass a query string."
Note
Warnings or important notes appear in a box like this.
Tip
Tips and tricks appear like this.