• minorLabels – A boolean. If true, minorLabels are shown.
• minorTicks – A boolean. If true, minorTicks are shown.
• microTicks – A boolean. If true, microTicks are shown.
• majorTickStep – A number. The delta between major ticks.
• minorTickStep – A number. The delta between minor ticks.
• microTickStep – A number. The delta between micro ticks.
• rotation – An angle in degrees with which to rotate the label. A positive number is
clockwise, a negative number is anti-clockwise.
• natural
• fixed
• leftBottom
• labels – an array of objects of the form
◦ value – The value of the column in the X axis. For example 1 is the 1
st
column, 2 is
the 2
nd
column etc.
◦ text – The text to show for the column
The Charting Series
Finally, there is the addSeries() method. This is where data is added to the chart. The
addSeries takes three parameters
chart.addSeries(name, array of data, arguments)
The arguments for a series include:
• fill – The color to be used to fill the data
• stroke – The border of the data
Rendering the chart
Finally there is the render() function which causes the chart to be rendered. A method called
resize() is available to resize the chart. This method has two formats:
• resize({w: <num>, h: <num>})
• resize(w, h)
See also:
• sitepen - Dive Into Dojo Charting Again - 2012-09-13
• sitepen - Dive Into Dojo Chart Theming - 2012-11-09
• sitepen - Introducing DojoX DataChart - 2009-03-30
• sitepen - A Beginner’s Guide to Dojo Charting, Part 1 of 2 – 2008-06-06
• sitepen - A Beginner’s Guide to Dojo Charting, Part 2 of 2 – 2008-06-16
• sitepen - Dojo Charting: Actions and Tooltips – 2012-11-09
• sitepen - Dojo Charting: Event Support Has Landed! - 2008-05-27
Page 213
Comentários a estes Manuais