Commit f88075ff authored by Vivek's avatar Vivek

added chartjs files

parent e365a9d3
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Folder" module="OFS.Folder"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>chartjs</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>chartjs</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts41271265.9</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>.gitignore</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>application/octet-stream</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string>\n
.DS_Store\n
\n
node_modules/*\n
custom/*\n
\n
docs/index.md\n
\n
.settings/\n
</string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>63</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>.gitignore</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts41271277.17</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>.travis.yml</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>application/octet-stream</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string>language: node_js\n
node_js:\n
- "0.11"\n
- "0.10"\n
\n
before_script:\n
- npm install\n
\n
script:\n
- gulp test\n
\n
notifications:\n
slack: chartjs:pcfCZR6ugg5TEcaLtmIfQYuA\n
</string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>162</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>.travis.yml</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts41271270.02</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>CONTRIBUTING.md</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>application/octet-stream</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string>Contributing to Chart.js\n
========================\n
\n
Contributions to Chart.js are welcome and encouraged, but please have a look through the guidelines in this document before raising an issue, or writing code for the project.\n
\n
\n
Using issues\n
------------\n
\n
The [issue tracker](https://github.com/nnnick/Chart.js/issues) is the preferred channel for reporting bugs, requesting new features and submitting pull requests.\n
\n
If you\'re suggesting a new chart type, please take a look at [writing new chart types](https://github.com/nnnick/Chart.js/blob/master/docs/06-Advanced.md#writing-new-chart-types) in the documentation, and some of the [community extensions](https://github.com/nnnick/Chart.js/blob/master/docs/06-Advanced.md#community-extensions) that have been created already.\n
\n
To keep the library lightweight for everyone, it\'s unlikely we\'ll add many more chart types to the core of Chart.js, but issues are a good medium to design and spec out how new chart types could work and look.\n
\n
Please do not use issues for support requests. For help using Chart.js, please take a look at the [`chartjs`](http://stackoverflow.com/questions/tagged/chartjs) tag on Stack Overflow.\n
\n
\n
Reporting bugs\n
--------------\n
\n
Well structured, detailed bug reports are hugely valuable for the project.\n
\n
Guidlines for reporting bugs:\n
\n
- Check the issue search to see if it has already been reported\n
- Isolate the problem to a simple test case\n
- Provide a demonstration of the problem on [JS Bin](http://jsbin.com) or similar\n
\n
Please provide any additional details associated with the bug, if it\'s browser or screen density specific, or only happens with a certain configuration or data.\n
\n
\n
Pull requests\n
-------------\n
\n
Clear, concise pull requests are excellent at continuing the project\'s community driven growth. But please review [these guidelines](https://github.com/blog/1943-how-to-write-the-perfect-pull-request) and the guidelines below before starting work on the project.\n
\n
Guidlines:\n
\n
- Please create an issue first:\n
- For bugs, we can discuss the fixing approach\n
- For enhancements, we can discuss if it is within the project scope and avoid duplicate effort\n
- Please make changes to the files in [`/src`](https://github.com/nnnick/Chart.js/tree/master/src), not `Chart.js` or `Chart.min.js` in the repo root directory, this avoids merge conflicts\n
- Tabs for indentation, not spaces please\n
- If adding new functionality, please also update the relevant `.md` file in [`/docs`](https://github.com/nnnick/Chart.js/tree/master/docs)\n
- Please make your commits in logical sections with clear commit messages\n
\n
Joining the Project\n
-------------\n
- Active committers and contributors are invited to introduce yourself and request commit access to this project. Please send an email to hello@nickdownie.com or file an issue. \n
\n
License\n
-------\n
\n
By contributing your code, you agree to license your contribution under the [MIT license](https://github.com/nnnick/Chart.js/blob/master/LICENSE.md).\n
</string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>2991</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>CONTRIBUTING.md</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
This source diff could not be displayed because it is too large. You can view the blob instead.
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts41271276.42</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>LICENSE.md</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>application/octet-stream</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string>Copyright (c) 2013-2015 Nick Downie\n
\n
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n
\n
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n
\n
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n
</string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>1060</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>LICENSE.md</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts41271276.81</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>README.md</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>application/octet-stream</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string># Chart.js \n
\n
[![Build Status](https://travis-ci.org/nnnick/Chart.js.svg?branch=master)](https://travis-ci.org/nnnick/Chart.js) [![Code Climate](https://codeclimate.com/github/nnnick/Chart.js/badges/gpa.svg)](https://codeclimate.com/github/nnnick/Chart.js)\n
\n
\n
*Simple HTML5 Charts using the canvas element* [chartjs.org](http://www.chartjs.org)\n
\n
## Documentation\n
\n
You can find documentation at [chartjs.org/docs](http://www.chartjs.org/docs/). The markdown files that build the site are available under `/docs`. Please note - in some of the json examples of configuration you might notice some liquid tags - this is just for the generating the site html, please disregard.\n
\n
## Bugs, issues and contributing\n
\n
Before submitting an issue or a pull request to the project, please take a moment to look over the [contributing guidelines](https://github.com/nnnick/Chart.js/blob/master/CONTRIBUTING.md) first.\n
\n
For support using Chart.js, please post questions with the [`chartjs` tag on Stack Overflow](http://stackoverflow.com/questions/tagged/chartjs).\n
\n
## License\n
\n
Chart.js is available under the [MIT license](http://opensource.org/licenses/MIT).\n
</string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>1144</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>README.md</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts41271275.98</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>bower.json</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>application/json</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string>{\n
"name": "Chart.js",\n
"version": "1.0.2",\n
"description": "Simple HTML5 Charts using the canvas element",\n
"homepage": "https://github.com/nnnick/Chart.js",\n
"author": "nnnick",\n
"main": [\n
"Chart.js"\n
],\n
"dependencies": {}\n
}</string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>239</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>bower.json</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Folder" module="OFS.Folder"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>docs</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>docs</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts41271311.14</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>00-Getting-Started.md</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>application/octet-stream</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="cdata"><![CDATA[
---\n
title: Getting started\n
anchor: getting-started\n
---\n
\n
###Include Chart.js\n
\n
First we need to include the Chart.js library on the page. The library occupies a global variable of `Chart`.\n
\n
```html\n
<script src="Chart.js"></script>\n
```\n
\n
Alternatively, if you\'re using an AMD loader for JavaScript modules, that is also supported in the Chart.js core. Please note: the library will still occupy a global variable of `Chart`, even if it detects `define` and `define.amd`. If this is a problem, you can call `noConflict` to restore the global Chart variable to its previous owner.\n
\n
```javascript\n
// Using requirejs\n
require([\'path/to/Chartjs\'], function(Chart){\n
\t// Use Chart.js as normal here.\n
\n
\t// Chart.noConflict restores the Chart global variable to its previous owner\n
\t// The function returns what was previously Chart, allowing you to reassign.\n
\tvar Chartjs = Chart.noConflict();\n
\n
});\n
```\n
\n
You can also grab Chart.js using bower:\n
\n
```bash\n
bower install Chart.js --save\n
```\n
\n
Also, Chart.js is available from CDN:\n
\n
https://cdnjs.cloudflare.com/ajax/libs/Chart.js/1.0.2/Chart.min.js\n
\n
###Creating a chart\n
\n
To create a chart, we need to instantiate the `Chart` class. To do this, we need to pass in the 2d context of where we want to draw the chart. Here\'s an example.\n
\n
```html\n
<canvas id="myChart" width="400" height="400"></canvas>\n
```\n
\n
```javascript\n
// Get the context of the canvas element we want to select\n
var ctx = document.getElementById("myChart").getContext("2d");\n
var myNewChart = new Chart(ctx).PolarArea(data);\n
```\n
\n
We can also get the context of our canvas with jQuery. To do this, we need to get the DOM node out of the jQuery collection, and call the `getContext("2d")` method on that.\n
\n
```javascript\n
// Get context with jQuery - using jQuery\'s .get() method.\n
var ctx = $("#myChart").get(0).getContext("2d");\n
// This will get the first returned node in the jQuery collection.\n
var myNewChart = new Chart(ctx);\n
```\n
\n
After we\'ve instantiated the Chart class on the canvas we want to draw on, Chart.js will handle the scaling for retina displays.\n
\n
With the Chart class set up, we can go on to create one of the charts Chart.js has available. In the example below, we would be drawing a Polar area chart.\n
\n
```javascript\n
new Chart(ctx).PolarArea(data, options);\n
```\n
\n
We call a method of the name of the chart we want to create. We pass in the data for that chart type, and the options for that chart as parameters. Chart.js will merge the global defaults with chart type specific defaults, then merge any options passed in as a second argument after data.\n
\n
###Global chart configuration\n
\n
This concept was introduced in Chart.js 1.0 to keep configuration DRY, and allow for changing options globally across chart types, avoiding the need to specify options for each instance, or the default for a particular chart type.\n
\n
```javascript\n
Chart.defaults.global = {\n
\t// Boolean - Whether to animate the chart\n
\tanimation: true,\n
\n
\t// Number - Number of animation steps\n
\tanimationSteps: 60,\n
\n
\t// String - Animation easing effect\n
\t// Possible effects are:\n
\t// [easeInOutQuart, linear, easeOutBounce, easeInBack, easeInOutQuad,\n
\t// easeOutQuart, easeOutQuad, easeInOutBounce, easeOutSine, easeInOutCubic,\n
\t// easeInExpo, easeInOutBack, easeInCirc, easeInOutElastic, easeOutBack,\n
\t// easeInQuad, easeInOutExpo, easeInQuart, easeOutQuint, easeInOutCirc,\n
\t// easeInSine, easeOutExpo, easeOutCirc, easeOutCubic, easeInQuint,\n
\t// easeInElastic, easeInOutSine, easeInOutQuint, easeInBounce,\n
\t// easeOutElastic, easeInCubic]\n
\tanimationEasing: "easeOutQuart",\n
\n
\t// Boolean - If we should show the scale at all\n
\tshowScale: true,\n
\n
\t// Boolean - If we want to override with a hard coded scale\n
\tscaleOverride: false,\n
\n
\t// ** Required if scaleOverride is true **\n
\t// Number - The number of steps in a hard coded scale\n
\tscaleSteps: null,\n
\t// Number - The value jump in the hard coded scale\n
\tscaleStepWidth: null,\n
\t// Number - The scale starting value\n
\tscaleStartValue: null,\n
\n
\t// String - Colour of the scale line\n
\tscaleLineColor: "rgba(0,0,0,.1)",\n
\n
\t// Number - Pixel width of the scale line\n
\tscaleLineWidth: 1,\n
\n
\t// Boolean - Whether to show labels on the scale\n
\tscaleShowLabels: true,\n
\n
\t// Interpolated JS string - can access value\n
\tscaleLabel: "<%=value%>",\n
\n
\t// Boolean - Whether the scale should stick to integers, not floats even if drawing space is there\n
\tscaleIntegersOnly: true,\n
\n
\t// Boolean - Whether the scale should start at zero, or an order of magnitude down from the lowest value\n
\tscaleBeginAtZero: false,\n
\n
\t// String - Scale label font declaration for the scale label\n
\tscaleFontFamily: "\'Helvetica Neue\', \'Helvetica\', \'Arial\', sans-serif",\n
\n
\t// Number - Scale label font size in pixels\n
\tscaleFontSize: 12,\n
\n
\t// String - Scale label font weight style\n
\tscaleFontStyle: "normal",\n
\n
\t// String - Scale label font colour\n
\tscaleFontColor: "#666",\n
\n
\t// Boolean - whether or not the chart should be responsive and resize when the browser does.\n
\tresponsive: false,\n
\n
\t// Boolean - whether to maintain the starting aspect ratio or not when responsive, if set to false, will take up entire container\n
\tmaintainAspectRatio: true,\n
\n
\t// Boolean - Determines whether to draw tooltips on the canvas or not\n
\tshowTooltips: true,\n
\n
\t// Function - Determines whether to execute the customTooltips function instead of drawing the built in tooltips (See [Advanced - External Tooltips](#advanced-usage-external-tooltips))\n
\tcustomTooltips: false,\n
\n
\t// Array - Array of string names to attach tooltip events\n
\ttooltipEvents: ["mousemove", "touchstart", "touchmove"],\n
\n
\t// String - Tooltip background colour\n
\ttooltipFillColor: "rgba(0,0,0,0.8)",\n
\n
\t// String - Tooltip label font declaration for the scale label\n
\ttooltipFontFamily: "\'Helvetica Neue\', \'Helvetica\', \'Arial\', sans-serif",\n
\n
\t// Number - Tooltip label font size in pixels\n
\ttooltipFontSize: 14,\n
\n
\t// String - Tooltip font weight style\n
\ttooltipFontStyle: "normal",\n
\n
\t// String - Tooltip label font colour\n
\ttooltipFontColor: "#fff",\n
\n
\t// String - Tooltip title font declaration for the scale label\n
\ttooltipTitleFontFamily: "\'Helvetica Neue\', \'Helvetica\', \'Arial\', sans-serif",\n
\n
\t// Number - Tooltip title font size in pixels\n
\ttooltipTitleFontSize: 14,\n
\n
\t// String - Tooltip title font weight style\n
\ttooltipTitleFontStyle: "bold",\n
\n
\t// String - Tooltip title font colour\n
\ttooltipTitleFontColor: "#fff",\n
\n
\t// String - Tooltip title template\n
\ttooltipTitleTemplate: "<%= label%>",\n
\n
\t// Number - pixel width of padding around tooltip text\n
\ttooltipYPadding: 6,\n
\n
\t// Number - pixel width of padding around tooltip text\n
\ttooltipXPadding: 6,\n
\n
\t// Number - Size of the caret on the tooltip\n
\ttooltipCaretSize: 8,\n
\n
\t// Number - Pixel radius of the tooltip border\n
\ttooltipCornerRadius: 6,\n
\n
\t// Number - Pixel offset from point x to tooltip edge\n
\ttooltipXOffset: 10,\n
\t{% raw %}\n
\t// String - Template string for single tooltips\n
\ttooltipTemplate: "<%if (label){%><%=label%>: <%}%><%= value %>",\n
\t{% endraw %}\n
\t// String - Template string for multiple tooltips\n
\tmultiTooltipTemplate: "<%= value %>",\n
\n
\t// Function - Will fire on animation progression.\n
\tonAnimationProgress: function(){},\n
\n
\t// Function - Will fire on animation completion.\n
\tonAnimationComplete: function(){}\n
}\n
```\n
\n
If for example, you wanted all charts created to be responsive, and resize when the browser window does, the following setting can be changed:\n
\n
```javascript\n
Chart.defaults.global.responsive = true;\n
```\n
\n
Now, every time we create a chart, `options.responsive` will be `true`.\n
]]></string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>7470</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>00-Getting-Started.md</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts41271312.63</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>01-Line-Chart.md</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>application/octet-stream</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="cdata"><![CDATA[
---\n
title: Line Chart\n
anchor: line-chart\n
---\n
###Introduction\n
A line chart is a way of plotting data points on a line.\n
\n
Often, it is used to show trend data, and the comparison of two data sets.\n
\n
<div class="canvas-holder">\n
\t<canvas width="250" height="125"></canvas>\n
</div>\n
\n
###Example usage\n
```javascript\n
var myLineChart = new Chart(ctx).Line(data, options);\n
```\n
###Data structure\n
\n
```javascript\n
var data = {\n
\tlabels: ["January", "February", "March", "April", "May", "June", "July"],\n
\tdatasets: [\n
\t\t{\n
\t\t\tlabel: "My First dataset",\n
\t\t\tfillColor: "rgba(220,220,220,0.2)",\n
\t\t\tstrokeColor: "rgba(220,220,220,1)",\n
\t\t\tpointColor: "rgba(220,220,220,1)",\n
\t\t\tpointStrokeColor: "#fff",\n
\t\t\tpointHighlightFill: "#fff",\n
\t\t\tpointHighlightStroke: "rgba(220,220,220,1)",\n
\t\t\tdata: [65, 59, 80, 81, 56, 55, 40]\n
\t\t},\n
\t\t{\n
\t\t\tlabel: "My Second dataset",\n
\t\t\tfillColor: "rgba(151,187,205,0.2)",\n
\t\t\tstrokeColor: "rgba(151,187,205,1)",\n
\t\t\tpointColor: "rgba(151,187,205,1)",\n
\t\t\tpointStrokeColor: "#fff",\n
\t\t\tpointHighlightFill: "#fff",\n
\t\t\tpointHighlightStroke: "rgba(151,187,205,1)",\n
\t\t\tdata: [28, 48, 40, 19, 86, 27, 90]\n
\t\t}\n
\t]\n
};\n
```\n
\n
The line chart requires an array of labels for each of the data points. This is shown on the X axis.\n
The data for line charts is broken up into an array of datasets. Each dataset has a colour for the fill, a colour for the line and colours for the points and strokes of the points. These colours are strings just like CSS. You can use RGBA, RGB, HEX or HSL notation.\n
\n
The label key on each dataset is optional, and can be used when generating a scale for the chart.\n
\n
### Chart options\n
\n
These are the customisation options specific to Line charts. These options are merged with the [global chart configuration options](#getting-started-global-chart-configuration), and form the options of the chart.\n
\n
```javascript\n
{\n
\n
\t///Boolean - Whether grid lines are shown across the chart\n
\tscaleShowGridLines : true,\n
\n
\t//String - Colour of the grid lines\n
\tscaleGridLineColor : "rgba(0,0,0,.05)",\n
\n
\t//Number - Width of the grid lines\n
\tscaleGridLineWidth : 1,\n
\n
\t//Boolean - Whether to show horizontal lines (except X axis)\n
\tscaleShowHorizontalLines: true,\n
\n
\t//Boolean - Whether to show vertical lines (except Y axis)\n
\tscaleShowVerticalLines: true,\n
\n
\t//Boolean - Whether the line is curved between points\n
\tbezierCurve : true,\n
\n
\t//Number - Tension of the bezier curve between points\n
\tbezierCurveTension : 0.4,\n
\n
\t//Boolean - Whether to show a dot for each point\n
\tpointDot : true,\n
\n
\t//Number - Radius of each point dot in pixels\n
\tpointDotRadius : 4,\n
\n
\t//Number - Pixel width of point dot stroke\n
\tpointDotStrokeWidth : 1,\n
\n
\t//Number - amount extra to add to the radius to cater for hit detection outside the drawn point\n
\tpointHitDetectionRadius : 20,\n
\n
\t//Boolean - Whether to show a stroke for datasets\n
\tdatasetStroke : true,\n
\n
\t//Number - Pixel width of dataset stroke\n
\tdatasetStrokeWidth : 2,\n
\n
\t//Boolean - Whether to fill the dataset with a colour\n
\tdatasetFill : true,\n
\t{% raw %}\n
\t//String - A legend template\n
\tlegendTemplate : "<ul class=\\"<%=name.toLowerCase()%>-legend\\"><% for (var i=0; i<datasets.length; i++){%><li><span style=\\"background-color:<%=datasets[i].strokeColor%>\\"></span><%if(datasets[i].label){%><%=datasets[i].label%><%}%></li><%}%></ul>"\n
\t{% endraw %}\n
\n
\t//Boolean - Whether to horizontally center the label and point dot inside the grid\n
\toffsetGridLines : false\n
};\n
```\n
\n
You can override these for your `Chart` instance by passing a second argument into the `Line` method as an object with the keys you want to override.\n
\n
For example, we could have a line chart without bezier curves between points by doing the following:\n
\n
```javascript\n
new Chart(ctx).Line(data, {\n
\tbezierCurve: false\n
});\n
// This will create a chart with all of the default options, merged from the global config,\n
// and the Line chart defaults, but this particular instance will have `bezierCurve` set to false.\n
```\n
\n
We can also change these defaults values for each Line type that is created, this object is available at `Chart.defaults.Line`.\n
\n
\n
### Prototype methods\n
\n
#### .getPointsAtEvent( event )\n
\n
Calling `getPointsAtEvent(event)` on your Chart instance passing an argument of an event, or jQuery event, will return the point elements that are at that the same position of that event.\n
\n
```javascript\n
canvas.onclick = function(evt){\n
\tvar activePoints = myLineChart.getPointsAtEvent(evt);\n
\t// => activePoints is an array of points on the canvas that are at the same position as the click event.\n
};\n
```\n
\n
This functionality may be useful for implementing DOM based tooltips, or triggering custom behaviour in your application.\n
\n
#### .update( )\n
\n
Calling `update()` on your Chart instance will re-render the chart with any updated values, allowing you to edit the value of multiple existing points, then render those in one animated render loop.\n
\n
```javascript\n
myLineChart.datasets[0].points[2].value = 50;\n
// Would update the first dataset\'s value of \'March\' to be 50\n
myLineChart.update();\n
// Calling update now animates the position of March from 90 to 50.\n
```\n
\n
#### .addData( valuesArray, label )\n
\n
Calling `addData(valuesArray, label)` on your Chart instance passing an array of values for each dataset, along with a label for those points.\n
\n
```javascript\n
// The values array passed into addData should be one for each dataset in the chart\n
myLineChart.addData([40, 60], "August");\n
// This new data will now animate at the end of the chart.\n
```\n
\n
#### .removeData( )\n
\n
Calling `removeData()` on your Chart instance will remove the first value for all datasets on the chart.\n
\n
```javascript\n
myLineChart.removeData();\n
// The chart will remove the first point and animate other points into place\n
```\n
]]></string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>5680</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>01-Line-Chart.md</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts41271312.01</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>02-Bar-Chart.md</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>application/octet-stream</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="cdata"><![CDATA[
---\n
title: Bar Chart\n
anchor: bar-chart\n
---\n
\n
### Introduction\n
A bar chart is a way of showing data as bars.\n
\n
It is sometimes used to show trend data, and the comparison of multiple data sets side by side.\n
\n
<div class="canvas-holder">\n
\t<canvas width="250" height="125"></canvas>\n
</div>\n
\n
### Example usage\n
```javascript\n
var myBarChart = new Chart(ctx).Bar(data, options);\n
```\n
\n
### Data structure\n
\n
```javascript\n
var data = {\n
\tlabels: ["January", "February", "March", "April", "May", "June", "July"],\n
\tdatasets: [\n
\t\t{\n
\t\t\tlabel: "My First dataset",\n
\t\t\tfillColor: "rgba(220,220,220,0.5)",\n
\t\t\tstrokeColor: "rgba(220,220,220,0.8)",\n
\t\t\thighlightFill: "rgba(220,220,220,0.75)",\n
\t\t\thighlightStroke: "rgba(220,220,220,1)",\n
\t\t\tdata: [65, 59, 80, 81, 56, 55, 40]\n
\t\t},\n
\t\t{\n
\t\t\tlabel: "My Second dataset",\n
\t\t\tfillColor: "rgba(151,187,205,0.5)",\n
\t\t\tstrokeColor: "rgba(151,187,205,0.8)",\n
\t\t\thighlightFill: "rgba(151,187,205,0.75)",\n
\t\t\thighlightStroke: "rgba(151,187,205,1)",\n
\t\t\tdata: [28, 48, 40, 19, 86, 27, 90]\n
\t\t}\n
\t]\n
};\n
```\n
The bar chart has the a very similar data structure to the line chart, and has an array of datasets, each with colours and an array of data. Again, colours are in CSS format.\n
We have an array of labels too for display. In the example, we are showing the same data as the previous line chart example.\n
\n
The label key on each dataset is optional, and can be used when generating a scale for the chart.\n
\n
### Chart Options\n
\n
These are the customisation options specific to Bar charts. These options are merged with the [global chart configuration options](#getting-started-global-chart-configuration), and form the options of the chart.\n
\n
```javascript\n
{\n
\t//Boolean - Whether the scale should start at zero, or an order of magnitude down from the lowest value\n
\tscaleBeginAtZero : true,\n
\n
\t//Boolean - Whether grid lines are shown across the chart\n
\tscaleShowGridLines : true,\n
\n
\t//String - Colour of the grid lines\n
\tscaleGridLineColor : "rgba(0,0,0,.05)",\n
\n
\t//Number - Width of the grid lines\n
\tscaleGridLineWidth : 1,\n
\n
\t//Boolean - Whether to show horizontal lines (except X axis)\n
\tscaleShowHorizontalLines: true,\n
\n
\t//Boolean - Whether to show vertical lines (except Y axis)\n
\tscaleShowVerticalLines: true,\n
\n
\t//Boolean - If there is a stroke on each bar\n
\tbarShowStroke : true,\n
\n
\t//Number - Pixel width of the bar stroke\n
\tbarStrokeWidth : 2,\n
\n
\t//Number - Spacing between each of the X value sets\n
\tbarValueSpacing : 5,\n
\n
\t//Number - Spacing between data sets within X values\n
\tbarDatasetSpacing : 1,\n
\t{% raw %}\n
\t//String - A legend template\n
\tlegendTemplate : "<ul class=\\"<%=name.toLowerCase()%>-legend\\"><% for (var i=0; i<datasets.length; i++){%><li><span style=\\"background-color:<%=datasets[i].fillColor%>\\"></span><%if(datasets[i].label){%><%=datasets[i].label%><%}%></li><%}%></ul>"\n
\t{% endraw %}\n
}\n
```\n
\n
You can override these for your `Chart` instance by passing a second argument into the `Bar` method as an object with the keys you want to override.\n
\n
For example, we could have a bar chart without a stroke on each bar by doing the following:\n
\n
```javascript\n
new Chart(ctx).Bar(data, {\n
\tbarShowStroke: false\n
});\n
// This will create a chart with all of the default options, merged from the global config,\n
// and the Bar chart defaults but this particular instance will have `barShowStroke` set to false.\n
```\n
\n
We can also change these defaults values for each Bar type that is created, this object is available at `Chart.defaults.Bar`.\n
\n
### Prototype methods\n
\n
#### .getBarsAtEvent( event )\n
\n
Calling `getBarsAtEvent(event)` on your Chart instance passing an argument of an event, or jQuery event, will return the bar elements that are at that the same position of that event.\n
\n
```javascript\n
canvas.onclick = function(evt){\n
\tvar activeBars = myBarChart.getBarsAtEvent(evt);\n
\t// => activeBars is an array of bars on the canvas that are at the same position as the click event.\n
};\n
```\n
\n
This functionality may be useful for implementing DOM based tooltips, or triggering custom behaviour in your application.\n
\n
#### .update( )\n
\n
Calling `update()` on your Chart instance will re-render the chart with any updated values, allowing you to edit the value of multiple existing points, then render those in one animated render loop.\n
\n
```javascript\n
myBarChart.datasets[0].bars[2].value = 50;\n
// Would update the first dataset\'s value of \'March\' to be 50\n
myBarChart.update();\n
// Calling update now animates the position of March from 90 to 50.\n
```\n
\n
#### .addData( valuesArray, label )\n
\n
Calling `addData(valuesArray, label)` on your Chart instance passing an array of values for each dataset, along with a label for those bars.\n
\n
```javascript\n
// The values array passed into addData should be one for each dataset in the chart\n
myBarChart.addData([40, 60], "August");\n
// The new data will now animate at the end of the chart.\n
```\n
\n
#### .removeData( )\n
\n
Calling `removeData()` on your Chart instance will remove the first value for all datasets on the chart.\n
\n
```javascript\n
myBarChart.removeData();\n
// The chart will now animate and remove the first bar\n
```\n
]]></string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>5039</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>02-Bar-Chart.md</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts41271308.13</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>03-Radar-Chart.md</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>application/octet-stream</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="cdata"><![CDATA[
---\n
title: Radar Chart\n
anchor: radar-chart\n
---\n
\n
###Introduction\n
A radar chart is a way of showing multiple data points and the variation between them.\n
\n
They are often useful for comparing the points of two or more different data sets.\n
\n
<div class="canvas-holder">\n
\t<canvas width="250" height="125"></canvas>\n
</div>\n
\n
###Example usage\n
\n
```javascript\n
var myRadarChart = new Chart(ctx).Radar(data, options);\n
```\n
\n
###Data structure\n
```javascript\n
var data = {\n
\tlabels: ["Eating", "Drinking", "Sleeping", "Designing", "Coding", "Cycling", "Running"],\n
\tdatasets: [\n
\t\t{\n
\t\t\tlabel: "My First dataset",\n
\t\t\tfillColor: "rgba(220,220,220,0.2)",\n
\t\t\tstrokeColor: "rgba(220,220,220,1)",\n
\t\t\tpointColor: "rgba(220,220,220,1)",\n
\t\t\tpointStrokeColor: "#fff",\n
\t\t\tpointHighlightFill: "#fff",\n
\t\t\tpointHighlightStroke: "rgba(220,220,220,1)",\n
\t\t\tdata: [65, 59, 90, 81, 56, 55, 40]\n
\t\t},\n
\t\t{\n
\t\t\tlabel: "My Second dataset",\n
\t\t\tfillColor: "rgba(151,187,205,0.2)",\n
\t\t\tstrokeColor: "rgba(151,187,205,1)",\n
\t\t\tpointColor: "rgba(151,187,205,1)",\n
\t\t\tpointStrokeColor: "#fff",\n
\t\t\tpointHighlightFill: "#fff",\n
\t\t\tpointHighlightStroke: "rgba(151,187,205,1)",\n
\t\t\tdata: [28, 48, 40, 19, 96, 27, 100]\n
\t\t}\n
\t]\n
};\n
```\n
For a radar chart, to provide context of what each point means, we include an array of strings that show around each point in the chart.\n
For the radar chart data, we have an array of datasets. Each of these is an object, with a fill colour, a stroke colour, a colour for the fill of each point, and a colour for the stroke of each point. We also have an array of data values.\n
\n
The label key on each dataset is optional, and can be used when generating a scale for the chart.\n
\n
### Chart options\n
\n
These are the customisation options specific to Radar charts. These options are merged with the [global chart configuration options](#getting-started-global-chart-configuration), and form the options of the chart.\n
\n
\n
```javascript\n
{\n
\t//Boolean - Whether to show lines for each scale point\n
\tscaleShowLine : true,\n
\n
\t//Boolean - Whether we show the angle lines out of the radar\n
\tangleShowLineOut : true,\n
\n
\t//Boolean - Whether to show labels on the scale\n
\tscaleShowLabels : false,\n
\n
\t// Boolean - Whether the scale should begin at zero\n
\tscaleBeginAtZero : true,\n
\n
\t//String - Colour of the angle line\n
\tangleLineColor : "rgba(0,0,0,.1)",\n
\n
\t//Number - Pixel width of the angle line\n
\tangleLineWidth : 1,\n
\n
\t//String - Point label font declaration\n
\tpointLabelFontFamily : "\'Arial\'",\n
\n
\t//String - Point label font weight\n
\tpointLabelFontStyle : "normal",\n
\n
\t//Number - Point label font size in pixels\n
\tpointLabelFontSize : 10,\n
\n
\t//String - Point label font colour\n
\tpointLabelFontColor : "#666",\n
\n
\t//Boolean - Whether to show a dot for each point\n
\tpointDot : true,\n
\n
\t//Number - Radius of each point dot in pixels\n
\tpointDotRadius : 3,\n
\n
\t//Number - Pixel width of point dot stroke\n
\tpointDotStrokeWidth : 1,\n
\n
\t//Number - amount extra to add to the radius to cater for hit detection outside the drawn point\n
\tpointHitDetectionRadius : 20,\n
\n
\t//Boolean - Whether to show a stroke for datasets\n
\tdatasetStroke : true,\n
\n
\t//Number - Pixel width of dataset stroke\n
\tdatasetStrokeWidth : 2,\n
\n
\t//Boolean - Whether to fill the dataset with a colour\n
\tdatasetFill : true,\n
\t{% raw %}\n
\t//String - A legend template\n
\tlegendTemplate : "<ul class=\\"<%=name.toLowerCase()%>-legend\\"><% for (var i=0; i<datasets.length; i++){%><li><span style=\\"background-color:<%=datasets[i].strokeColor%>\\"></span><%if(datasets[i].label){%><%=datasets[i].label%><%}%></li><%}%></ul>"\n
\t{% endraw %}\n
}\n
```\n
\n
\n
You can override these for your `Chart` instance by passing a second argument into the `Radar` method as an object with the keys you want to override.\n
\n
For example, we could have a radar chart without a point for each on piece of data by doing the following:\n
\n
```javascript\n
new Chart(ctx).Radar(data, {\n
\tpointDot: false\n
});\n
// This will create a chart with all of the default options, merged from the global config,\n
// and the Bar chart defaults but this particular instance will have `pointDot` set to false.\n
```\n
\n
We can also change these defaults values for each Radar type that is created, this object is available at `Chart.defaults.Radar`.\n
\n
\n
### Prototype methods\n
\n
#### .getPointsAtEvent( event )\n
\n
Calling `getPointsAtEvent(event)` on your Chart instance passing an argument of an event, or jQuery event, will return the point elements that are at that the same position of that event.\n
\n
```javascript\n
canvas.onclick = function(evt){\n
\tvar activePoints = myRadarChart.getPointsAtEvent(evt);\n
\t// => activePoints is an array of points on the canvas that are at the same position as the click event.\n
};\n
```\n
\n
This functionality may be useful for implementing DOM based tooltips, or triggering custom behaviour in your application.\n
\n
#### .update( )\n
\n
Calling `update()` on your Chart instance will re-render the chart with any updated values, allowing you to edit the value of multiple existing points, then render those in one animated render loop.\n
\n
```javascript\n
myRadarChart.datasets[0].points[2].value = 50;\n
// Would update the first dataset\'s value of \'Sleeping\' to be 50\n
myRadarChart.update();\n
// Calling update now animates the position of Sleeping from 90 to 50.\n
```\n
\n
#### .addData( valuesArray, label )\n
\n
Calling `addData(valuesArray, label)` on your Chart instance passing an array of values for each dataset, along with a label for those points.\n
\n
```javascript\n
// The values array passed into addData should be one for each dataset in the chart\n
myRadarChart.addData([40, 60], "Dancing");\n
// The new data will now animate at the end of the chart.\n
```\n
\n
#### .removeData( )\n
\n
Calling `removeData()` on your Chart instance will remove the first value for all datasets on the chart.\n
\n
```javascript\n
myRadarChart.removeData();\n
// Other points will now animate to their correct positions.\n
```
]]></string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>5807</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>03-Radar-Chart.md</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts41271309.31</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>04-Polar-Area-Chart.md</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>application/octet-stream</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="cdata"><![CDATA[
---\n
title: Polar Area Chart\n
anchor: polar-area-chart\n
---\n
### Introduction\n
Polar area charts are similar to pie charts, but each segment has the same angle - the radius of the segment differs depending on the value.\n
\n
This type of chart is often useful when we want to show a comparison data similar to a pie chart, but also show a scale of values for context.\n
\n
<div class="canvas-holder">\n
\t<canvas width="250" height="125"></canvas>\n
</div>\n
\n
### Example usage\n
\n
```javascript\n
new Chart(ctx).PolarArea(data, options);\n
```\n
\n
### Data structure\n
\n
```javascript\n
var data = [\n
\t{\n
\t\tvalue: 300,\n
\t\tcolor:"#F7464A",\n
\t\thighlight: "#FF5A5E",\n
\t\tlabel: "Red"\n
\t},\n
\t{\n
\t\tvalue: 50,\n
\t\tcolor: "#46BFBD",\n
\t\thighlight: "#5AD3D1",\n
\t\tlabel: "Green"\n
\t},\n
\t{\n
\t\tvalue: 100,\n
\t\tcolor: "#FDB45C",\n
\t\thighlight: "#FFC870",\n
\t\tlabel: "Yellow"\n
\t},\n
\t{\n
\t\tvalue: 40,\n
\t\tcolor: "#949FB1",\n
\t\thighlight: "#A8B3C5",\n
\t\tlabel: "Grey"\n
\t},\n
\t{\n
\t\tvalue: 120,\n
\t\tcolor: "#4D5360",\n
\t\thighlight: "#616774",\n
\t\tlabel: "Dark Grey"\n
\t}\n
\n
];\n
```\n
As you can see, for the chart data you pass in an array of objects, with a value and a colour. The value attribute should be a number, while the color attribute should be a string. Similar to CSS, for this string you can use HEX notation, RGB, RGBA or HSL.\n
\n
### Chart options\n
\n
These are the customisation options specific to Polar Area charts. These options are merged with the [global chart configuration options](#getting-started-global-chart-configuration), and form the options of the chart.\n
\n
```javascript\n
{\n
\t//Boolean - Show a backdrop to the scale label\n
\tscaleShowLabelBackdrop : true,\n
\n
\t//String - The colour of the label backdrop\n
\tscaleBackdropColor : "rgba(255,255,255,0.75)",\n
\n
\t// Boolean - Whether the scale should begin at zero\n
\tscaleBeginAtZero : true,\n
\n
\t//Number - The backdrop padding above & below the label in pixels\n
\tscaleBackdropPaddingY : 2,\n
\n
\t//Number - The backdrop padding to the side of the label in pixels\n
\tscaleBackdropPaddingX : 2,\n
\n
\t//Boolean - Show line for each value in the scale\n
\tscaleShowLine : true,\n
\n
\t//Boolean - Stroke a line around each segment in the chart\n
\tsegmentShowStroke : true,\n
\n
\t//String - The colour of the stroke on each segment.\n
\tsegmentStrokeColor : "#fff",\n
\n
\t//Number - The width of the stroke value in pixels\n
\tsegmentStrokeWidth : 2,\n
\n
\t//Number - Amount of animation steps\n
\tanimationSteps : 100,\n
\n
\t//String - Animation easing effect.\n
\tanimationEasing : "easeOutBounce",\n
\n
\t//Boolean - Whether to animate the rotation of the chart\n
\tanimateRotate : true,\n
\n
\t//Boolean - Whether to animate scaling the chart from the centre\n
\tanimateScale : false,\n
\t{% raw %}\n
\t//String - A legend template\n
\tlegendTemplate : "<ul class=\\"<%=name.toLowerCase()%>-legend\\"><% for (var i=0; i<segments.length; i++){%><li><span style=\\"background-color:<%=segments[i].fillColor%>\\"></span><%if(segments[i].label){%><%=segments[i].label%><%}%></li><%}%></ul>"\n
\t{% endraw %}\n
}\n
```\n
\n
You can override these for your `Chart` instance by passing a second argument into the `PolarArea` method as an object with the keys you want to override.\n
\n
For example, we could have a polar area chart with a black stroke on each segment like so:\n
\n
```javascript\n
new Chart(ctx).PolarArea(data, {\n
\tsegmentStrokeColor: "#000000"\n
});\n
// This will create a chart with all of the default options, merged from the global config,\n
// and the PolarArea chart defaults but this particular instance will have `segmentStrokeColor` set to `"#000000"`.\n
```\n
\n
We can also change these defaults values for each PolarArea type that is created, this object is available at `Chart.defaults.PolarArea`.\n
\n
### Prototype methods\n
\n
#### .getSegmentsAtEvent( event )\n
\n
Calling `getSegmentsAtEvent(event)` on your Chart instance passing an argument of an event, or jQuery event, will return the segment elements that are at that the same position of that event.\n
\n
```javascript\n
canvas.onclick = function(evt){\n
\tvar activePoints = myPolarAreaChart.getSegmentsAtEvent(evt);\n
\t// => activePoints is an array of segments on the canvas that are at the same position as the click event.\n
};\n
```\n
\n
This functionality may be useful for implementing DOM based tooltips, or triggering custom behaviour in your application.\n
\n
#### .update( )\n
\n
Calling `update()` on your Chart instance will re-render the chart with any updated values, allowing you to edit the value of multiple existing points, then render those in one animated render loop.\n
\n
```javascript\n
myPolarAreaChart.segments[1].value = 10;\n
// Would update the first dataset\'s value of \'Green\' to be 10\n
myPolarAreaChart.update();\n
// Calling update now animates the position of Green from 50 to 10.\n
```\n
\n
#### .addData( segmentData, index )\n
\n
Calling `addData(segmentData, index)` on your Chart instance passing an object in the same format as in the constructor. There is an option second argument of \'index\', this determines at what index the new segment should be inserted into the chart.\n
\n
```javascript\n
// An object in the same format as the original data source\n
myPolarAreaChart.addData({\n
\tvalue: 130,\n
\tcolor: "#B48EAD",\n
\thighlight: "#C69CBE",\n
\tlabel: "Purple"\n
});\n
// The new segment will now animate in.\n
```\n
\n
#### .removeData( index )\n
\n
Calling `removeData(index)` on your Chart instance will remove segment at that particular index. If none is provided, it will default to the last segment.\n
\n
```javascript\n
myPolarAreaChart.removeData();\n
// Other segments will update to fill the empty space left.\n
```\n
]]></string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>5401</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>04-Polar-Area-Chart.md</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts41271310.57</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>05-Pie-Doughnut-Chart.md</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>application/octet-stream</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="cdata"><![CDATA[
---\n
title: Pie & Doughnut Charts\n
anchor: doughnut-pie-chart\n
---\n
###Introduction\n
Pie and doughnut charts are probably the most commonly used chart there are. They are divided into segments, the arc of each segment shows the proportional value of each piece of data.\n
\n
They are excellent at showing the relational proportions between data.\n
\n
Pie and doughnut charts are effectively the same class in Chart.js, but have one different default value - their `percentageInnerCutout`. This equates what percentage of the inner should be cut out. This defaults to `0` for pie charts, and `50` for doughnuts.\n
\n
They are also registered under two aliases in the `Chart` core. Other than their different default value, and different alias, they are exactly the same.\n
\n
<div class="canvas-holder half">\n
\t<canvas width="250" height="125"></canvas>\n
</div>\n
\n
<div class="canvas-holder half">\n
\t<canvas width="250" height="125"></canvas>\n
</div>\n
\n
\n
### Example usage\n
\n
```javascript\n
// For a pie chart\n
var myPieChart = new Chart(ctx[0]).Pie(data,options);\n
\n
// And for a doughnut chart\n
var myDoughnutChart = new Chart(ctx[1]).Doughnut(data,options);\n
```\n
\n
### Data structure\n
\n
```javascript\n
var data = [\n
\t{\n
\t\tvalue: 300,\n
\t\tcolor:"#F7464A",\n
\t\thighlight: "#FF5A5E",\n
\t\tlabel: "Red"\n
\t},\n
\t{\n
\t\tvalue: 50,\n
\t\tcolor: "#46BFBD",\n
\t\thighlight: "#5AD3D1",\n
\t\tlabel: "Green"\n
\t},\n
\t{\n
\t\tvalue: 100,\n
\t\tcolor: "#FDB45C",\n
\t\thighlight: "#FFC870",\n
\t\tlabel: "Yellow"\n
\t}\n
]\n
```\n
\n
For a pie chart, you must pass in an array of objects with a value and an optional color property. The value attribute should be a number, Chart.js will total all of the numbers and calculate the relative proportion of each. The color attribute should be a string. Similar to CSS, for this string you can use HEX notation, RGB, RGBA or HSL.\n
\n
### Chart options\n
\n
These are the customisation options specific to Pie & Doughnut charts. These options are merged with the [global chart configuration options](#getting-started-global-chart-configuration), and form the options of the chart.\n
\n
```javascript\n
{\n
\t//Boolean - Whether we should show a stroke on each segment\n
\tsegmentShowStroke : true,\n
\n
\t//String - The colour of each segment stroke\n
\tsegmentStrokeColor : "#fff",\n
\n
\t//Number - The width of each segment stroke\n
\tsegmentStrokeWidth : 2,\n
\n
\t//Number - The percentage of the chart that we cut out of the middle\n
\tpercentageInnerCutout : 50, // This is 0 for Pie charts\n
\n
\t//Number - Amount of animation steps\n
\tanimationSteps : 100,\n
\n
\t//String - Animation easing effect\n
\tanimationEasing : "easeOutBounce",\n
\n
\t//Boolean - Whether we animate the rotation of the Doughnut\n
\tanimateRotate : true,\n
\n
\t//Boolean - Whether we animate scaling the Doughnut from the centre\n
\tanimateScale : false,\n
\t{% raw %}\n
\t//String - A legend template\n
\tlegendTemplate : "<ul class=\\"<%=name.toLowerCase()%>-legend\\"><% for (var i=0; i<segments.length; i++){%><li><span style=\\"background-color:<%=segments[i].fillColor%>\\"></span><%if(segments[i].label){%><%=segments[i].label%><%}%></li><%}%></ul>"\n
\t{% endraw %}\n
}\n
```\n
You can override these for your `Chart` instance by passing a second argument into the `Doughnut` method as an object with the keys you want to override.\n
\n
For example, we could have a doughnut chart that animates by scaling out from the centre like so:\n
\n
```javascript\n
new Chart(ctx).Doughnut(data, {\n
\tanimateScale: true\n
});\n
// This will create a chart with all of the default options, merged from the global config,\n
// and the Doughnut chart defaults but this particular instance will have `animateScale` set to `true`.\n
```\n
\n
We can also change these default values for each Doughnut type that is created, this object is available at `Chart.defaults.Doughnut`. Pie charts also have a clone of these defaults available to change at `Chart.defaults.Pie`, with the only difference being `percentageInnerCutout` being set to 0.\n
\n
### Prototype methods\n
\n
#### .getSegmentsAtEvent( event )\n
\n
Calling `getSegmentsAtEvent(event)` on your Chart instance passing an argument of an event, or jQuery event, will return the segment elements that are at the same position of that event.\n
\n
```javascript\n
canvas.onclick = function(evt){\n
\tvar activePoints = myDoughnutChart.getSegmentsAtEvent(evt);\n
\t// => activePoints is an array of segments on the canvas that are at the same position as the click event.\n
};\n
```\n
\n
This functionality may be useful for implementing DOM based tooltips, or triggering custom behaviour in your application.\n
\n
#### .update( )\n
\n
Calling `update()` on your Chart instance will re-render the chart with any updated values, allowing you to edit the value of multiple existing points, then render those in one animated render loop.\n
\n
```javascript\n
myDoughnutChart.segments[1].value = 10;\n
// Would update the first dataset\'s value of \'Green\' to be 10\n
myDoughnutChart.update();\n
// Calling update now animates the circumference of the segment \'Green\' from 50 to 10.\n
// and transitions other segment widths\n
```\n
\n
#### .addData( segmentData, index )\n
\n
Calling `addData(segmentData, index)` on your Chart instance passing an object in the same format as in the constructor. There is an optional second argument of \'index\', this determines at what index the new segment should be inserted into the chart.\n
\n
```javascript\n
// An object in the same format as the original data source\n
myDoughnutChart.addData({\n
\tvalue: 130,\n
\tcolor: "#B48EAD",\n
\thighlight: "#C69CBE",\n
\tlabel: "Purple"\n
});\n
// The new segment will now animate in.\n
```\n
\n
#### .removeData( index )\n
\n
Calling `removeData(index)` on your Chart instance will remove segment at that particular index. If none is provided, it will default to the last segment.\n
\n
```javascript\n
myDoughnutChart.removeData();\n
// Other segments will update to fill the empty space left.\n
```\n
]]></string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>5720</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>05-Pie-Doughnut-Chart.md</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts41271310.0</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>06-Advanced.md</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>application/octet-stream</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="cdata"><![CDATA[
---\n
title: Advanced usage\n
anchor: advanced-usage\n
---\n
\n
\n
### Prototype methods\n
\n
For each chart, there are a set of global prototype methods on the shared `ChartType` which you may find useful. These are available on all charts created with Chart.js, but for the examples, let\'s use a line chart we\'ve made.\n
\n
```javascript\n
// For example:\n
var myLineChart = new Chart(ctx).Line(data);\n
```\n
\n
#### .clear()\n
\n
Will clear the chart canvas. Used extensively internally between animation frames, but you might find it useful.\n
\n
```javascript\n
// Will clear the canvas that myLineChart is drawn on\n
myLineChart.clear();\n
// => returns \'this\' for chainability\n
```\n
\n
#### .stop()\n
\n
Use this to stop any current animation loop. This will pause the chart during any current animation frame. Call `.render()` to re-animate.\n
\n
```javascript\n
// Stops the charts animation loop at its current frame\n
myLineChart.stop();\n
// => returns \'this\' for chainability\n
```\n
\n
#### .resize()\n
\n
Use this to manually resize the canvas element. This is run each time the browser is resized, but you can call this method manually if you change the size of the canvas nodes container element.\n
\n
```javascript\n
// Resizes & redraws to fill its container element\n
myLineChart.resize();\n
// => returns \'this\' for chainability\n
```\n
\n
#### .destroy()\n
\n
Use this to destroy any chart instances that are created. This will clean up any references stored to the chart object within Chart.js, along with any associated event listeners attached by Chart.js.\n
\n
```javascript\n
// Destroys a specific chart instance\n
myLineChart.destroy();\n
```\n
\n
#### .toBase64Image()\n
\n
This returns a base 64 encoded string of the chart in it\'s current state.\n
\n
```javascript\n
myLineChart.toBase64Image();\n
// => returns png data url of the image on the canvas\n
```\n
\n
#### .generateLegend()\n
\n
Returns an HTML string of a legend for that chart. The template for this legend is at `legendTemplate` in the chart options.\n
\n
```javascript\n
myLineChart.generateLegend();\n
// => returns HTML string of a legend for this chart\n
```\n
\n
### External Tooltips\n
\n
You can enable custom tooltips in the global or chart configuration like so:\n
\n
```javascript\n
var myPieChart = new Chart(ctx).Pie(data, {\n
\tcustomTooltips: function(tooltip) {\n
\n
// tooltip will be false if tooltip is not visible or should be hidden\n
if (!tooltip) {\n
return;\n
}\n
\n
// Otherwise, tooltip will be an object with all tooltip properties like:\n
\n
// tooltip.caretHeight\n
// tooltip.caretPadding\n
// tooltip.chart\n
// tooltip.cornerRadius\n
// tooltip.fillColor\n
// tooltip.font...\n
// tooltip.text\n
// tooltip.x\n
// tooltip.y\n
// etc...\n
\n
};\n
});\n
```\n
\n
See files `sample/pie-customTooltips.html` and `sample/line-customTooltips.html` for examples on how to get started.\n
\n
\n
### Writing new chart types\n
\n
Chart.js 1.0 has been rewritten to provide a platform for developers to create their own custom chart types, and be able to share and utilise them through the Chart.js API.\n
\n
The format is relatively simple, there are a set of utility helper methods under `Chart.helpers`, including things such as looping over collections, requesting animation frames, and easing equations.\n
\n
On top of this, there are also some simple base classes of Chart elements, these all extend from `Chart.Element`, and include things such as points, bars and scales.\n
\n
```javascript\n
Chart.Type.extend({\n
\t// Passing in a name registers this chart in the Chart namespace\n
\tname: "Scatter",\n
\t// Providing a defaults will also register the deafults in the chart namespace\n
\tdefaults : {\n
\t\toptions: "Here",\n
\t\tavailable: "at this.options"\n
\t},\n
\t// Initialize is fired when the chart is initialized - Data is passed in as a parameter\n
\t// Config is automatically merged by the core of Chart.js, and is available at this.options\n
\tinitialize: function(data){\n
\t\tthis.chart.ctx // The drawing context for this chart\n
\t\tthis.chart.canvas // the canvas node for this chart\n
\t},\n
\t// Used to draw something on the canvas\n
\tdraw: function() {\n
\t}\n
});\n
\n
// Now we can create a new instance of our chart, using the Chart.js API\n
new Chart(ctx).Scatter(data);\n
// initialize is now run\n
```\n
\n
### Extending existing chart types\n
\n
We can also extend existing chart types, and expose them to the API in the same way. Let\'s say for example, we might want to run some more code when we initialize every Line chart.\n
\n
```javascript\n
// Notice now we\'re extending the particular Line chart type, rather than the base class.\n
Chart.types.Line.extend({\n
\t// Passing in a name registers this chart in the Chart namespace in the same way\n
\tname: "LineAlt",\n
\tinitialize: function(data){\n
\t\tconsole.log(\'My Line chart extension\');\n
\t\tChart.types.Line.prototype.initialize.apply(this, arguments);\n
\t}\n
});\n
\n
// Creates a line chart in the same way\n
new Chart(ctx).LineAlt(data);\n
// but this logs \'My Line chart extension\' in the console.\n
```\n
\n
### Community extensions\n
\n
- <a href="https://github.com/Regaddi/Chart.StackedBar.js" target="_blank">Stacked Bar Chart</a> by <a href="https://twitter.com/Regaddi" target="_blank">@Regaddi</a>\n
- <a href="https://github.com/tannerlinsley/Chart.StackedArea.js" target="_blank">Stacked Bar Chart</a> by <a href="https://twitter.com/tannerlinsley" target="_blank">@tannerlinsley</a>\n
- <a href="https://github.com/CAYdenberg/Chart.js" target="_blank">Error bars (bar and line charts)</a> by <a href="https://twitter.com/CAYdenberg" target="_blank">@CAYdenberg</a>\n
- <a href="http://dima117.github.io/Chart.Scatter/" target="_blank">Scatter chart (number & date scales are supported)</a> by <a href="https://github.com/dima117" target="_blank">@dima117</a>\n
\n
### Creating custom builds\n
\n
Chart.js uses <a href="http://gulpjs.com/" target="_blank">gulp</a> to build the library into a single JavaScript file. We can use this same build script with custom parameters in order to build a custom version.\n
\n
Firstly, we need to ensure development dependencies are installed. With node and npm installed, after cloning the Chart.js repo to a local directory, and navigating to that directory in the command line, we can run the following:\n
\n
```bash\n
npm install\n
npm install -g gulp\n
```\n
\n
This will install the local development dependencies for Chart.js, along with a CLI for the JavaScript task runner <a href="http://gulpjs.com/" target="_blank">gulp</a>.\n
\n
Now, we can run the `gulp build` task, and pass in a comma-separated list of types as an argument to build a custom version of Chart.js with only specified chart types.\n
\n
Here we will create a version of Chart.js with only Line, Radar and Bar charts included:\n
\n
```bash\n
gulp build --types=Line,Radar,Bar\n
```\n
\n
This will output to the `/custom` directory, and write two files, Chart.js, and Chart.min.js with only those chart types included.\n
]]></string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>6803</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>06-Advanced.md</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts41271308.52</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>07-Notes.md</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>application/octet-stream</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="cdata"><![CDATA[
---\n
title: Notes\n
anchor: notes\n
---\n
\n
### Browser support\n
Browser support for the canvas element is available in all modern & major mobile browsers <a href="http://caniuse.com/canvas" target="_blank">(caniuse.com/canvas)</a>.\n
\n
For IE8 & below, I would recommend using the polyfill ExplorerCanvas - available at <a href="https://code.google.com/p/explorercanvas/" target="_blank">https://code.google.com/p/explorercanvas/</a>. It falls back to Internet explorer\'s format VML when canvas support is not available. Example use:\n
\n
```html\n
<head>\n
\t<!--[if lte IE 8]>\n
\t\t<script src="excanvas.js"></script>\n
\t<![endif]-->\n
</head>\n
```\n
\n
Usually I would recommend feature detection to choose whether or not to load a polyfill, rather than IE conditional comments, however in this case, VML is a Microsoft proprietary format, so it will only work in IE.\n
\n
Some important points to note in my experience using ExplorerCanvas as a fallback.\n
\n
- Initialise charts on load rather than DOMContentReady when using the library, as sometimes a race condition will occur, and it will result in an error when trying to get the 2d context of a canvas.\n
- New VML DOM elements are being created for each animation frame and there is no hardware acceleration. As a result animation is usually slow and jerky, with flashing text. It is a good idea to dynamically turn off animation based on canvas support. I recommend using the excellent <a href="http://modernizr.com/" target="_blank">Modernizr</a> to do this.\n
- When declaring fonts, the library explorercanvas requires the font name to be in single quotes inside the string. For example, instead of your scaleFontFamily property being simply "Arial", explorercanvas support, use "\'Arial\'" instead. Chart.js does this for default values.\n
\n
### Bugs & issues\n
\n
Please report these on the GitHub page - at <a href="https://github.com/nnnick/Chart.js" target="_blank">github.com/nnnick/Chart.js</a>. If you could include a link to a simple <a href="http://jsbin.com/" target="_blank">jsbin</a> or similar to demonstrate the issue, that\'d be really helpful.\n
\n
\n
### Contributing\n
New contributions to the library are welcome, just a couple of guidelines:\n
\n
- Tabs for indentation, not spaces please.\n
- Please ensure you\'re changing the individual files in `/src`, not the concatenated output in the `Chart.js` file in the root of the repo.\n
- Please check that your code will pass `jshint` code standards, `gulp jshint` will run this for you.\n
- Please keep pull requests concise, and document new functionality in the relevant `.md` file.\n
- Consider whether your changes are useful for all users, or if creating a Chart.js extension would be more appropriate.\n
\n
### License\n
Chart.js is open source and available under the <a href="http://opensource.org/licenses/MIT" target="_blank">MIT license</a>.
]]></string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>2808</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>07-Notes.md</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts41271266.67</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>gulpfile.js</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>application/javascript</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="cdata"><![CDATA[
var gulp = require(\'gulp\'),\n
\tconcat = require(\'gulp-concat\'),\n
\tuglify = require(\'gulp-uglify\'),\n
\tutil = require(\'gulp-util\'),\n
\tjshint = require(\'gulp-jshint\'),\n
\tsize = require(\'gulp-size\'),\n
\tconnect = require(\'gulp-connect\'),\n
\treplace = require(\'gulp-replace\'),\n
\thtmlv = require(\'gulp-html-validator\'),\n
\tinquirer = require(\'inquirer\'),\n
\tsemver = require(\'semver\'),\n
\texec = require(\'child_process\').exec,\n
\tfs = require(\'fs\'),\n
\tpackage = require(\'./package.json\'),\n
\tbower = require(\'./bower.json\');\n
\n
var srcDir = \'./src/\';\n
/*\n
*\tUsage : gulp build --types=Bar,Line,Doughnut\n
*\tOutput: - A built Chart.js file with Core and types Bar, Line and Doughnut concatenated together\n
*\t\t\t- A minified version of this code, in Chart.min.js\n
*/\n
\n
gulp.task(\'build\', function(){\n
\n
\t// Default to all of the chart types, with Chart.Core first\n
\tvar srcFiles = [FileName(\'Core\')],\n
\t\tisCustom = !!(util.env.types),\n
\t\toutputDir = (isCustom) ? \'custom\' : \'.\';\n
\tif (isCustom){\n
\t\tutil.env.types.split(\',\').forEach(function(type){ return srcFiles.push(FileName(type));});\n
\t}\n
\telse{\n
\t\t// Seems gulp-concat remove duplicates - nice!\n
\t\t// So we can use this to sort out dependency order - aka include Core first!\n
\t\tsrcFiles.push(srcDir+\'*\');\n
\t}\n
\n
\treturn gulp.src(srcFiles)\n
\t\t.pipe(concat(\'Chart.js\'))\n
\t\t.pipe(replace(\'{{ version }}\', package.version))\n
\t\t.pipe(gulp.dest(outputDir))\n
\t\t.pipe(uglify({preserveComments:\'some\'}))\n
\t\t.pipe(concat(\'Chart.min.js\'))\n
\t\t.pipe(gulp.dest(outputDir));\n
\n
\tfunction FileName(moduleName){\n
\t\treturn srcDir+\'Chart.\'+moduleName+\'.js\';\n
\t}\n
});\n
\n
/*\n
*\tUsage : gulp bump\n
*\tPrompts: Version increment to bump\n
*\tOutput: - New version number written into package.json & bower.json\n
*/\n
\n
gulp.task(\'bump\', function(complete){\n
\tutil.log(\'Current version:\', util.colors.cyan(package.version));\n
\tvar choices = [\'major\', \'premajor\', \'minor\', \'preminor\', \'patch\', \'prepatch\', \'prerelease\'].map(function(versionType){\n
\t\treturn versionType + \' (v\' + semver.inc(package.version, versionType) + \')\';\n
\t});\n
\tinquirer.prompt({\n
\t\ttype: \'list\',\n
\t\tname: \'version\',\n
\t\tmessage: \'What version update would you like?\',\n
\t\tchoices: choices\n
\t}, function(res){\n
\t\tvar increment = res.version.split(\' \')[0],\n
\t\t\tnewVersion = semver.inc(package.version, increment);\n
\n
\t\t// Set the new versions into the bower/package object\n
\t\tpackage.version = newVersion;\n
\t\tbower.version = newVersion;\n
\n
\t\t// Write these to their own files, then build the output\n
\t\tfs.writeFileSync(\'package.json\', JSON.stringify(package, null, 2));\n
\t\tfs.writeFileSync(\'bower.json\', JSON.stringify(bower, null, 2));\n
\n
\t\tcomplete();\n
\t});\n
});\n
\n
gulp.task(\'release\', [\'build\'], function(){\n
\texec(\'git tag -a v\' + package.version);\n
});\n
\n
gulp.task(\'jshint\', function(){\n
\treturn gulp.src(srcDir + \'*.js\')\n
\t\t.pipe(jshint())\n
\t\t.pipe(jshint.reporter(\'default\'));\n
});\n
\n
gulp.task(\'valid\', function(){\n
\treturn gulp.src(\'samples/*.html\')\n
.pipe(htmlv());\n
});\n
\n
gulp.task(\'library-size\', function(){\n
\treturn gulp.src(\'Chart.min.js\')\n
\t\t.pipe(size({\n
\t\t\tgzip: true\n
\t\t}));\n
});\n
\n
gulp.task(\'module-sizes\', function(){\n
\treturn gulp.src(srcDir + \'*.js\')\n
\t.pipe(uglify({preserveComments:\'some\'}))\n
\t.pipe(size({\n
\t\tshowFiles: true,\n
\t\tgzip: true\n
\t}));\n
});\n
\n
gulp.task(\'watch\', function(){\n
\tgulp.watch(\'./src/*\', [\'build\']);\n
});\n
\n
gulp.task(\'test\', [\'jshint\', \'valid\']);\n
\n
gulp.task(\'size\', [\'library-size\', \'module-sizes\']);\n
\n
gulp.task(\'default\', [\'build\', \'watch\']);\n
\n
gulp.task(\'server\', function(){\n
\tconnect.server({\n
\t\tport: 8000\n
\t});\n
});\n
\n
// Convenience task for opening the project straight from the command line\n
gulp.task(\'_open\', function(){\n
\texec(\'open http://localhost:8000\');\n
\texec(\'subl .\');\n
});\n
\n
gulp.task(\'dev\', [\'server\', \'default\']);\n
]]></string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>3651</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>gulpfile.js</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts41271269.59</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>package.json</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>application/json</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string>{\n
"name": "chart.js",\n
"homepage": "http://www.chartjs.org",\n
"description": "Simple HTML5 charts using the canvas element.",\n
"version": "1.0.2",\n
"main": "Chart.js",\n
"repository": {\n
"type": "git",\n
"url": "https://github.com/nnnick/Chart.js.git"\n
},\n
"license" : "MIT",\n
"dependences": {},\n
"devDependencies": {\n
"gulp": "3.5.x",\n
"gulp-concat": "~2.1.x",\n
"gulp-connect": "~2.0.5",\n
"gulp-jshint": "~1.5.1",\n
"gulp-replace": "^0.4.0",\n
"gulp-size": "~0.4.0",\n
"gulp-uglify": "~0.2.x",\n
"gulp-util": "~2.2.x",\n
"gulp-html-validator": "^0.0.2",\n
"inquirer": "^0.5.1",\n
"semver": "^3.0.1"\n
},\n
"spm": {\n
"main": "Chart.js"\n
}\n
}\n
</string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>686</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>package.json</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Folder" module="OFS.Folder"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>samples</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>samples</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts41271274.52</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>bar.html</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="cdata"><![CDATA[
<!doctype html>\n
<html>\n
\t<head>\n
\t\t<title>Bar Chart</title>\n
\t\t<script src="../Chart.js"></script>\n
\t</head>\n
\t<body>\n
\t\t<div style="width: 50%">\n
\t\t\t<canvas id="canvas" height="450" width="600"></canvas>\n
\t\t</div>\n
\n
\n
\t<script>\n
\tvar randomScalingFactor = function(){ return Math.round(Math.random()*100)};\n
\n
\tvar barChartData = {\n
\t\tlabels : ["January","February","March","April","May","June","July"],\n
\t\tdatasets : [\n
\t\t\t{\n
\t\t\t\tfillColor : "rgba(220,220,220,0.5)",\n
\t\t\t\tstrokeColor : "rgba(220,220,220,0.8)",\n
\t\t\t\thighlightFill: "rgba(220,220,220,0.75)",\n
\t\t\t\thighlightStroke: "rgba(220,220,220,1)",\n
\t\t\t\tdata : [randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor()]\n
\t\t\t},\n
\t\t\t{\n
\t\t\t\tfillColor : "rgba(151,187,205,0.5)",\n
\t\t\t\tstrokeColor : "rgba(151,187,205,0.8)",\n
\t\t\t\thighlightFill : "rgba(151,187,205,0.75)",\n
\t\t\t\thighlightStroke : "rgba(151,187,205,1)",\n
\t\t\t\tdata : [randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor()]\n
\t\t\t}\n
\t\t]\n
\n
\t}\n
\twindow.onload = function(){\n
\t\tvar ctx = document.getElementById("canvas").getContext("2d");\n
\t\twindow.myBar = new Chart(ctx).Bar(barChartData, {\n
\t\t\tresponsive : true\n
\t\t});\n
\t}\n
\n
\t</script>\n
\t</body>\n
</html>\n
]]></string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>1321</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>bar.html</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts41271272.71</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>doughnut.color.html</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="cdata"><![CDATA[
<!doctype html>\n
<html>\n
\t<head>\n
\t\t<title>Doughnut Chart</title>\n
\t\t<script src="../src/Chart.Core.js"></script>\n
\t\t<script src="../src/Chart.Doughnut.js"></script>\n
\t\t<style>\n
\t\t\tbody{\n
\t\t\t\tpadding: 0;\n
\t\t\t\tmargin: 0;\n
\t\t\t}\n
\t\t\t#canvas-holder{\n
\t\t\t\twidth:30%;\n
\t\t\t}\n
\t\t</style>\n
\t</head>\n
\t<body>\n
\t\t<div id="canvas-holder">\n
\t\t\t<canvas id="chart-area" width="500" height="500"/>\n
\t\t</div>\n
\n
\n
\t<script>\n
\n
\t\tvar doughnutData = [\n
\t\t\t\t{\n
\t\t\t\t\tvalue: 1,\n
\t\t\t\t\tlabel: "One"\n
\t\t\t\t},\n
\t\t\t\t{\n
\t\t\t\t\tvalue: 2,\n
\t\t\t\t\tlabel: "Two"\n
\t\t\t\t},\n
\t\t\t\t{\n
\t\t\t\t\tvalue: 3,\n
\t\t\t\t\tlabel: "Three"\n
\t\t\t\t},\n
\t\t\t\t{\n
\t\t\t\t\tvalue: 4,\n
\t\t\t\t\tlabel: "Four"\n
\t\t\t\t},\n
\t\t\t\t{\n
\t\t\t\t\tvalue: 5,\n
\t\t\t\t\tlabel: "Five"\n
\t\t\t\t}\n
\n
\t\t\t];\n
\n
\t\t\twindow.onload = function(){\n
\t\t\t\tvar ctx = document.getElementById("chart-area").getContext("2d");\n
\t\t\t\twindow.myDoughnut = new Chart(ctx).Doughnut(doughnutData, {responsive : true});\n
\t\t\t};\n
\n
\n
\n
\t</script>\n
\t</body>\n
</html>\n
]]></string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>872</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>doughnut.color.html</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts41271271.89</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>doughnut.html</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="cdata"><![CDATA[
<!doctype html>\n
<html>\n
\t<head>\n
\t\t<title>Doughnut Chart</title>\n
\t\t<script src="../Chart.js"></script>\n
\t\t<style>\n
\t\t\tbody{\n
\t\t\t\tpadding: 0;\n
\t\t\t\tmargin: 0;\n
\t\t\t}\n
\t\t\t#canvas-holder{\n
\t\t\t\twidth:30%;\n
\t\t\t}\n
\t\t</style>\n
\t</head>\n
\t<body>\n
\t\t<div id="canvas-holder">\n
\t\t\t<canvas id="chart-area" width="500" height="500"/>\n
\t\t</div>\n
\n
\n
\t<script>\n
\n
\t\tvar doughnutData = [\n
\t\t\t\t{\n
\t\t\t\t\tvalue: 300,\n
\t\t\t\t\tcolor:"#F7464A",\n
\t\t\t\t\thighlight: "#FF5A5E",\n
\t\t\t\t\tlabel: "Red"\n
\t\t\t\t},\n
\t\t\t\t{\n
\t\t\t\t\tvalue: 50,\n
\t\t\t\t\tcolor: "#46BFBD",\n
\t\t\t\t\thighlight: "#5AD3D1",\n
\t\t\t\t\tlabel: "Green"\n
\t\t\t\t},\n
\t\t\t\t{\n
\t\t\t\t\tvalue: 100,\n
\t\t\t\t\tcolor: "#FDB45C",\n
\t\t\t\t\thighlight: "#FFC870",\n
\t\t\t\t\tlabel: "Yellow"\n
\t\t\t\t},\n
\t\t\t\t{\n
\t\t\t\t\tvalue: 40,\n
\t\t\t\t\tcolor: "#949FB1",\n
\t\t\t\t\thighlight: "#A8B3C5",\n
\t\t\t\t\tlabel: "Grey"\n
\t\t\t\t},\n
\t\t\t\t{\n
\t\t\t\t\tvalue: 120,\n
\t\t\t\t\tcolor: "#4D5360",\n
\t\t\t\t\thighlight: "#616774",\n
\t\t\t\t\tlabel: "Dark Grey"\n
\t\t\t\t}\n
\n
\t\t\t];\n
\n
\t\t\twindow.onload = function(){\n
\t\t\t\tvar ctx = document.getElementById("chart-area").getContext("2d");\n
\t\t\t\twindow.myDoughnut = new Chart(ctx).Doughnut(doughnutData, {responsive : true});\n
\t\t\t};\n
\n
\n
\n
\t</script>\n
\t</body>\n
</html>\n
]]></string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>1077</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>doughnut.html</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts41271275.53</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>line-customTooltips.html</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="cdata"><![CDATA[
<!doctype html>\n
<html>\n
\n
<head>\n
<title>Line Chart with Custom Tooltips</title>\n
<script src="../Chart.js"></script>\n
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>\n
\n
<style>\n
#canvas-holder1 {\n
width: 300px;\n
margin: 20px auto;\n
}\n
#canvas-holder2 {\n
width: 50%;\n
margin: 20px 25%;\n
}\n
#chartjs-tooltip {\n
opacity: 1;\n
position: absolute;\n
background: rgba(0, 0, 0, .7);\n
color: white;\n
padding: 3px;\n
border-radius: 3px;\n
-webkit-transition: all .1s ease;\n
transition: all .1s ease;\n
pointer-events: none;\n
-webkit-transform: translate(-50%, 0);\n
transform: translate(-50%, 0);\n
}\n
\t.chartjs-tooltip-key{\n
\t\tdisplay:inline-block;\n
\t\twidth:10px;\n
\t\theight:10px;\n
\t}\n
</style>\n
</head>\n
\n
<body>\n
<div id="canvas-holder1">\n
<canvas id="chart1" width="300" height="30" />\n
</div>\n
<div id="canvas-holder2">\n
<canvas id="chart2" width="450" height="600" />\n
</div>\n
\n
<div id="chartjs-tooltip"></div>\n
\n
\n
<script>\n
\n
Chart.defaults.global.pointHitDetectionRadius = 1;\n
Chart.defaults.global.customTooltips = function(tooltip) {\n
\n
var tooltipEl = $(\'#chartjs-tooltip\');\n
\n
if (!tooltip) {\n
tooltipEl.css({\n
opacity: 0\n
});\n
return;\n
}\n
\n
tooltipEl.removeClass(\'above below\');\n
tooltipEl.addClass(tooltip.yAlign);\n
\n
var innerHtml = \'\';\n
for (var i = tooltip.labels.length - 1; i >= 0; i--) {\n
\tinnerHtml += [\n
\t\t\'<div class="chartjs-tooltip-section">\',\n
\t\t\'\t<span class="chartjs-tooltip-key" style="background-color:\' + tooltip.legendColors[i].fill + \'"></span>\',\n
\t\t\'\t<span class="chartjs-tooltip-value">\' + tooltip.labels[i] + \'</span>\',\n
\t\t\'</div>\'\n
\t].join(\'\');\n
}\n
tooltipEl.html(innerHtml);\n
\n
tooltipEl.css({\n
opacity: 1,\n
left: tooltip.chart.canvas.offsetLeft + tooltip.x + \'px\',\n
top: tooltip.chart.canvas.offsetTop + tooltip.y + \'px\',\n
fontFamily: tooltip.fontFamily,\n
fontSize: tooltip.fontSize,\n
fontStyle: tooltip.fontStyle,\n
});\n
};\n
var randomScalingFactor = function() {\n
return Math.round(Math.random() * 100);\n
};\n
var lineChartData = {\n
labels: ["January", "February", "March", "April", "May", "June", "July"],\n
datasets: [{\n
label: "My First dataset",\n
fillColor: "rgba(220,220,220,0.2)",\n
strokeColor: "rgba(220,220,220,1)",\n
pointColor: "rgba(220,220,220,1)",\n
pointStrokeColor: "#fff",\n
pointHighlightFill: "#fff",\n
pointHighlightStroke: "rgba(220,220,220,1)",\n
data: [randomScalingFactor(), randomScalingFactor(), randomScalingFactor(), randomScalingFactor(), randomScalingFactor(), randomScalingFactor(), randomScalingFactor()]\n
}, {\n
label: "My Second dataset",\n
fillColor: "rgba(151,187,205,0.2)",\n
strokeColor: "rgba(151,187,205,1)",\n
pointColor: "rgba(151,187,205,1)",\n
pointStrokeColor: "#fff",\n
pointHighlightFill: "#fff",\n
pointHighlightStroke: "rgba(151,187,205,1)",\n
data: [randomScalingFactor(), randomScalingFactor(), randomScalingFactor(), randomScalingFactor(), randomScalingFactor(), randomScalingFactor(), randomScalingFactor()]\n
}]\n
};\n
\n
window.onload = function() {\n
var ctx1 = document.getElementById("chart1").getContext("2d");\n
window.myLine = new Chart(ctx1).Line(lineChartData, {\n
\tshowScale: false,\n
\tpointDot : true,\n
responsive: true\n
});\n
\n
var ctx2 = document.getElementById("chart2").getContext("2d");\n
window.myLine = new Chart(ctx2).Line(lineChartData, {\n
responsive: true\n
});\n
};\n
</script>\n
</body>\n
\n
</html>\n
]]></string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>4024</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>line-customTooltips.html</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts41271274.01</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>line.html</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="cdata"><![CDATA[
<!doctype html>\n
<html>\n
\t<head>\n
\t\t<title>Line Chart</title>\n
\t\t<script src="../Chart.js"></script>\n
\t</head>\n
\t<body>\n
\t\t<div style="width:30%">\n
\t\t\t<div>\n
\t\t\t\t<canvas id="canvas" height="450" width="600"></canvas>\n
\t\t\t</div>\n
\t\t</div>\n
\n
\n
\t<script>\n
\t\tvar randomScalingFactor = function(){ return Math.round(Math.random()*100)};\n
\t\tvar lineChartData = {\n
\t\t\tlabels : ["January","February","March","April","May","June","July"],\n
\t\t\tdatasets : [\n
\t\t\t\t{\n
\t\t\t\t\tlabel: "My First dataset",\n
\t\t\t\t\tfillColor : "rgba(220,220,220,0.2)",\n
\t\t\t\t\tstrokeColor : "rgba(220,220,220,1)",\n
\t\t\t\t\tpointColor : "rgba(220,220,220,1)",\n
\t\t\t\t\tpointStrokeColor : "#fff",\n
\t\t\t\t\tpointHighlightFill : "#fff",\n
\t\t\t\t\tpointHighlightStroke : "rgba(220,220,220,1)",\n
\t\t\t\t\tdata : [randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor()]\n
\t\t\t\t},\n
\t\t\t\t{\n
\t\t\t\t\tlabel: "My Second dataset",\n
\t\t\t\t\tfillColor : "rgba(151,187,205,0.2)",\n
\t\t\t\t\tstrokeColor : "rgba(151,187,205,1)",\n
\t\t\t\t\tpointColor : "rgba(151,187,205,1)",\n
\t\t\t\t\tpointStrokeColor : "#fff",\n
\t\t\t\t\tpointHighlightFill : "#fff",\n
\t\t\t\t\tpointHighlightStroke : "rgba(151,187,205,1)",\n
\t\t\t\t\tdata : [randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor(),randomScalingFactor()]\n
\t\t\t\t}\n
\t\t\t]\n
\n
\t\t}\n
\n
\twindow.onload = function(){\n
\t\tvar ctx = document.getElementById("canvas").getContext("2d");\n
\t\twindow.myLine = new Chart(ctx).Line(lineChartData, {\n
\t\t\tresponsive: true\n
\t\t});\n
\t}\n
\n
\n
\t</script>\n
\t</body>\n
</html>\n
]]></string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>1558</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>line.html</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts41271271.42</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>pie-customTooltips.html</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="cdata"><![CDATA[
<!doctype html>\n
<html>\n
\n
<head>\n
<title>Pie Chart with Custom Tooltips</title>\n
<script src="../Chart.js"></script>\n
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>\n
\n
<style>\n
#canvas-holder {\n
width: 100%;\n
margin-top: 50px;\n
text-align: center;\n
}\n
#chartjs-tooltip {\n
opacity: 1;\n
position: absolute;\n
background: rgba(0, 0, 0, .7);\n
color: white;\n
padding: 3px;\n
border-radius: 3px;\n
-webkit-transition: all .1s ease;\n
transition: all .1s ease;\n
pointer-events: none;\n
-webkit-transform: translate(-50%, 0);\n
transform: translate(-50%, 0);\n
}\n
#chartjs-tooltip.below {\n
-webkit-transform: translate(-50%, 0);\n
transform: translate(-50%, 0);\n
}\n
#chartjs-tooltip.below:before {\n
border: solid;\n
border-color: #111 transparent;\n
border-color: rgba(0, 0, 0, .8) transparent;\n
border-width: 0 8px 8px 8px;\n
bottom: 1em;\n
content: "";\n
display: block;\n
left: 50%;\n
position: absolute;\n
z-index: 99;\n
-webkit-transform: translate(-50%, -100%);\n
transform: translate(-50%, -100%);\n
}\n
#chartjs-tooltip.above {\n
-webkit-transform: translate(-50%, -100%);\n
transform: translate(-50%, -100%);\n
}\n
#chartjs-tooltip.above:before {\n
border: solid;\n
border-color: #111 transparent;\n
border-color: rgba(0, 0, 0, .8) transparent;\n
border-width: 8px 8px 0 8px;\n
bottom: 1em;\n
content: "";\n
display: block;\n
left: 50%;\n
top: 100%;\n
position: absolute;\n
z-index: 99;\n
-webkit-transform: translate(-50%, 0);\n
transform: translate(-50%, 0);\n
}\n
</style>\n
</head>\n
\n
<body>\n
<div id="canvas-holder">\n
<canvas id="chart-area1" width="50" height="50" />\n
</div>\n
<div id="canvas-holder">\n
<canvas id="chart-area2" width="300" height="300" />\n
</div>\n
\n
<div id="chartjs-tooltip"></div>\n
\n
\n
<script>\n
Chart.defaults.global.customTooltips = function(tooltip) {\n
\n
\t// Tooltip Element\n
var tooltipEl = $(\'#chartjs-tooltip\');\n
\n
// Hide if no tooltip\n
if (!tooltip) {\n
tooltipEl.css({\n
opacity: 0\n
});\n
return;\n
}\n
\n
// Set caret Position\n
tooltipEl.removeClass(\'above below\');\n
tooltipEl.addClass(tooltip.yAlign);\n
\n
// Set Text\n
tooltipEl.html(tooltip.text);\n
\n
// Find Y Location on page\n
var top;\n
if (tooltip.yAlign == \'above\') {\n
top = tooltip.y - tooltip.caretHeight - tooltip.caretPadding;\n
} else {\n
top = tooltip.y + tooltip.caretHeight + tooltip.caretPadding;\n
}\n
\n
// Display, position, and set styles for font\n
tooltipEl.css({\n
opacity: 1,\n
left: tooltip.chart.canvas.offsetLeft + tooltip.x + \'px\',\n
top: tooltip.chart.canvas.offsetTop + top + \'px\',\n
fontFamily: tooltip.fontFamily,\n
fontSize: tooltip.fontSize,\n
fontStyle: tooltip.fontStyle,\n
});\n
};\n
\n
var pieData = [{\n
value: 300,\n
color: "#F7464A",\n
highlight: "#FF5A5E",\n
label: "Red"\n
}, {\n
value: 50,\n
color: "#46BFBD",\n
highlight: "#5AD3D1",\n
label: "Green"\n
}, {\n
value: 100,\n
color: "#FDB45C",\n
highlight: "#FFC870",\n
label: "Yellow"\n
}, {\n
value: 40,\n
color: "#949FB1",\n
highlight: "#A8B3C5",\n
label: "Grey"\n
}, {\n
value: 120,\n
color: "#4D5360",\n
highlight: "#616774",\n
label: "Dark Grey"\n
}];\n
\n
window.onload = function() {\n
var ctx1 = document.getElementById("chart-area1").getContext("2d");\n
window.myPie = new Chart(ctx1).Pie(pieData);\n
\n
var ctx2 = document.getElementById("chart-area2").getContext("2d");\n
window.myPie = new Chart(ctx2).Pie(pieData);\n
};\n
</script>\n
</body>\n
\n
</html>\n
]]></string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>4110</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>pie-customTooltips.html</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts41271273.17</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>pie.html</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="cdata"><![CDATA[
<!doctype html>\n
<html>\n
\t<head>\n
\t\t<title>Pie Chart</title>\n
\t\t<script src="../Chart.js"></script>\n
\t</head>\n
\t<body>\n
\t\t<div id="canvas-holder">\n
\t\t\t<canvas id="chart-area" width="300" height="300"/>\n
\t\t</div>\n
\n
\n
\t<script>\n
\n
\t\tvar pieData = [\n
\t\t\t\t{\n
\t\t\t\t\tvalue: 300,\n
\t\t\t\t\tcolor:"#F7464A",\n
\t\t\t\t\thighlight: "#FF5A5E",\n
\t\t\t\t\tlabel: "Red"\n
\t\t\t\t},\n
\t\t\t\t{\n
\t\t\t\t\tvalue: 50,\n
\t\t\t\t\tcolor: "#46BFBD",\n
\t\t\t\t\thighlight: "#5AD3D1",\n
\t\t\t\t\tlabel: "Green"\n
\t\t\t\t},\n
\t\t\t\t{\n
\t\t\t\t\tvalue: 100,\n
\t\t\t\t\tcolor: "#FDB45C",\n
\t\t\t\t\thighlight: "#FFC870",\n
\t\t\t\t\tlabel: "Yellow"\n
\t\t\t\t},\n
\t\t\t\t{\n
\t\t\t\t\tvalue: 40,\n
\t\t\t\t\tcolor: "#949FB1",\n
\t\t\t\t\thighlight: "#A8B3C5",\n
\t\t\t\t\tlabel: "Grey"\n
\t\t\t\t},\n
\t\t\t\t{\n
\t\t\t\t\tvalue: 120,\n
\t\t\t\t\tcolor: "#4D5360",\n
\t\t\t\t\thighlight: "#616774",\n
\t\t\t\t\tlabel: "Dark Grey"\n
\t\t\t\t}\n
\n
\t\t\t];\n
\n
\t\t\twindow.onload = function(){\n
\t\t\t\tvar ctx = document.getElementById("chart-area").getContext("2d");\n
\t\t\t\twindow.myPie = new Chart(ctx).Pie(pieData);\n
\t\t\t};\n
\n
\n
\n
\t</script>\n
\t</body>\n
</html>\n
]]></string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>926</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>pie.html</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts41271270.91</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>polar-area.html</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="cdata"><![CDATA[
<!doctype html>\n
<html>\n
\t<head>\n
\t\t<title>Polar Area Chart</title>\n
\t\t<script src="../Chart.js"></script>\n
\t</head>\n
\t<body>\n
\t\t<div id="canvas-holder" style="width:30%">\n
\t\t\t<canvas id="chart-area" width="300" height="300"/>\n
\t\t</div>\n
\n
\n
\t<script>\n
\n
\t\tvar polarData = [\n
\t\t\t\t{\n
\t\t\t\t\tvalue: 300,\n
\t\t\t\t\tcolor:"#F7464A",\n
\t\t\t\t\thighlight: "#FF5A5E",\n
\t\t\t\t\tlabel: "Red"\n
\t\t\t\t},\n
\t\t\t\t{\n
\t\t\t\t\tvalue: 50,\n
\t\t\t\t\tcolor: "#46BFBD",\n
\t\t\t\t\thighlight: "#5AD3D1",\n
\t\t\t\t\tlabel: "Green"\n
\t\t\t\t},\n
\t\t\t\t{\n
\t\t\t\t\tvalue: 100,\n
\t\t\t\t\tcolor: "#FDB45C",\n
\t\t\t\t\thighlight: "#FFC870",\n
\t\t\t\t\tlabel: "Yellow"\n
\t\t\t\t},\n
\t\t\t\t{\n
\t\t\t\t\tvalue: 40,\n
\t\t\t\t\tcolor: "#949FB1",\n
\t\t\t\t\thighlight: "#A8B3C5",\n
\t\t\t\t\tlabel: "Grey"\n
\t\t\t\t},\n
\t\t\t\t{\n
\t\t\t\t\tvalue: 120,\n
\t\t\t\t\tcolor: "#4D5360",\n
\t\t\t\t\thighlight: "#616774",\n
\t\t\t\t\tlabel: "Dark Grey"\n
\t\t\t\t}\n
\n
\t\t\t];\n
\n
\t\t\twindow.onload = function(){\n
\t\t\t\tvar ctx = document.getElementById("chart-area").getContext("2d");\n
\t\t\t\twindow.myPolarArea = new Chart(ctx).PolarArea(polarData, {\n
\t\t\t\t\tresponsive:true\n
\t\t\t\t});\n
\t\t\t};\n
\n
\n
\n
\t</script>\n
\t</body>\n
</html>\n
]]></string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>997</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>polar-area.html</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts41271275.11</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>radar.html</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="cdata"><![CDATA[
<!doctype html>\n
<html>\n
\t<head>\n
\t\t<title>Radar Chart</title>\n
\t\t<script src="../Chart.js"></script>\n
\t\t<meta name = "viewport" content = "initial-scale = 1, user-scalable = no">\n
\t\t<style>\n
\t\t\tcanvas{\n
\t\t\t}\n
\t\t</style>\n
\t</head>\n
\t<body>\n
\t\t<div style="width:30%">\n
\t\t\t<canvas id="canvas" height="450" width="450"></canvas>\n
\t\t</div>\n
\n
\n
\t<script>\n
\tvar radarChartData = {\n
\t\tlabels: ["Eating", "Drinking", "Sleeping", "Designing", "Coding", "Cycling", "Running"],\n
\t\tdatasets: [\n
\t\t\t{\n
\t\t\t\tlabel: "My First dataset",\n
\t\t\t\tfillColor: "rgba(220,220,220,0.2)",\n
\t\t\t\tstrokeColor: "rgba(220,220,220,1)",\n
\t\t\t\tpointColor: "rgba(220,220,220,1)",\n
\t\t\t\tpointStrokeColor: "#fff",\n
\t\t\t\tpointHighlightFill: "#fff",\n
\t\t\t\tpointHighlightStroke: "rgba(220,220,220,1)",\n
\t\t\t\tdata: [65,59,90,81,56,55,40]\n
\t\t\t},\n
\t\t\t{\n
\t\t\t\tlabel: "My Second dataset",\n
\t\t\t\tfillColor: "rgba(151,187,205,0.2)",\n
\t\t\t\tstrokeColor: "rgba(151,187,205,1)",\n
\t\t\t\tpointColor: "rgba(151,187,205,1)",\n
\t\t\t\tpointStrokeColor: "#fff",\n
\t\t\t\tpointHighlightFill: "#fff",\n
\t\t\t\tpointHighlightStroke: "rgba(151,187,205,1)",\n
\t\t\t\tdata: [28,48,40,19,96,27,100]\n
\t\t\t}\n
\t\t]\n
\t};\n
\n
\twindow.onload = function(){\n
\t\twindow.myRadar = new Chart(document.getElementById("canvas").getContext("2d")).Radar(radarChartData, {\n
\t\t\tresponsive: true\n
\t\t});\n
\t}\n
\n
\t</script>\n
\t</body>\n
</html>\n
]]></string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>1275</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>radar.html</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Folder" module="OFS.Folder"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>src</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>src</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts41271278.02</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>Chart.Doughnut.js</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>application/javascript</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="cdata"><![CDATA[
(function(){\n
\t"use strict";\n
\n
\tvar root = this,\n
\t\tChart = root.Chart,\n
\t\t//Cache a local reference to Chart.helpers\n
\t\thelpers = Chart.helpers;\n
\n
\tvar defaultConfig = {\n
\t\t//Boolean - Whether we should show a stroke on each segment\n
\t\tsegmentShowStroke : true,\n
\n
\t\t//String - The colour of each segment stroke\n
\t\tsegmentStrokeColor : "#fff",\n
\n
\t\t//Number - The width of each segment stroke\n
\t\tsegmentStrokeWidth : 2,\n
\n
\t\t//The percentage of the chart that we cut out of the middle.\n
\t\tpercentageInnerCutout : 50,\n
\n
\t\t//Number - Amount of animation steps\n
\t\tanimationSteps : 100,\n
\n
\t\t//String - Animation easing effect\n
\t\tanimationEasing : "easeOutBounce",\n
\n
\t\t//Boolean - Whether we animate the rotation of the Doughnut\n
\t\tanimateRotate : true,\n
\n
\t\t//Boolean - Whether we animate scaling the Doughnut from the centre\n
\t\tanimateScale : false,\n
\n
\t\t//String - A legend template\n
\t\tlegendTemplate : "<ul class=\\"<%=name.toLowerCase()%>-legend\\"><% for (var i=0; i<segments.length; i++){%><li><span style=\\"background-color:<%=segments[i].fillColor%>\\"><%if(segments[i].label){%><%=segments[i].label%><%}%></span></li><%}%></ul>"\n
\n
\t};\n
\n
\tChart.Type.extend({\n
\t\t//Passing in a name registers this chart in the Chart namespace\n
\t\tname: "Doughnut",\n
\t\t//Providing a defaults will also register the deafults in the chart namespace\n
\t\tdefaults : defaultConfig,\n
\t\t//Initialize is fired when the chart is initialized - Data is passed in as a parameter\n
\t\t//Config is automatically merged by the core of Chart.js, and is available at this.options\n
\t\tinitialize: function(data){\n
\n
\t\t\t//Declare segments as a static property to prevent inheriting across the Chart type prototype\n
\t\t\tthis.segments = [];\n
\t\t\tthis.outerRadius = (helpers.min([this.chart.width,this.chart.height]) -\tthis.options.segmentStrokeWidth/2)/2;\n
\n
\t\t\tthis.SegmentArc = Chart.Arc.extend({\n
\t\t\t\tctx : this.chart.ctx,\n
\t\t\t\tx : this.chart.width/2,\n
\t\t\t\ty : this.chart.height/2\n
\t\t\t});\n
\n
\t\t\t//Set up tooltip events on the chart\n
\t\t\tif (this.options.showTooltips){\n
\t\t\t\thelpers.bindEvents(this, this.options.tooltipEvents, function(evt){\n
\t\t\t\t\tvar activeSegments = (evt.type !== \'mouseout\') ? this.getSegmentsAtEvent(evt) : [];\n
\n
\t\t\t\t\thelpers.each(this.segments,function(segment){\n
\t\t\t\t\t\tsegment.restore(["fillColor"]);\n
\t\t\t\t\t});\n
\t\t\t\t\thelpers.each(activeSegments,function(activeSegment){\n
\t\t\t\t\t\tactiveSegment.fillColor = activeSegment.highlightColor;\n
\t\t\t\t\t});\n
\t\t\t\t\tthis.showTooltip(activeSegments);\n
\t\t\t\t});\n
\t\t\t}\n
\t\t\tthis.calculateTotal(data);\n
\n
\t\t\thelpers.each(data,function(datapoint, index){\n
\t\t\t\tif (!datapoint.color) {\n
\t\t\t\t\tdatapoint.color = \'hsl(\' + (360 * index / data.length) + \', 100%, 50%)\';\n
\t\t\t\t}\n
\t\t\t\tthis.addData(datapoint, index, true);\n
\t\t\t},this);\n
\n
\t\t\tthis.render();\n
\t\t},\n
\t\tgetSegmentsAtEvent : function(e){\n
\t\t\tvar segmentsArray = [];\n
\n
\t\t\tvar location = helpers.getRelativePosition(e);\n
\n
\t\t\thelpers.each(this.segments,function(segment){\n
\t\t\t\tif (segment.inRange(location.x,location.y)) segmentsArray.push(segment);\n
\t\t\t},this);\n
\t\t\treturn segmentsArray;\n
\t\t},\n
\t\taddData : function(segment, atIndex, silent){\n
\t\t\tvar index = atIndex !== undefined ? atIndex : this.segments.length;\n
\t\t\tthis.segments.splice(index, 0, new this.SegmentArc({\n
\t\t\t\tvalue : segment.value,\n
\t\t\t\touterRadius : (this.options.animateScale) ? 0 : this.outerRadius,\n
\t\t\t\tinnerRadius : (this.options.animateScale) ? 0 : (this.outerRadius/100) * this.options.percentageInnerCutout,\n
\t\t\t\tfillColor : segment.color,\n
\t\t\t\thighlightColor : segment.highlight || segment.color,\n
\t\t\t\tshowStroke : this.options.segmentShowStroke,\n
\t\t\t\tstrokeWidth : this.options.segmentStrokeWidth,\n
\t\t\t\tstrokeColor : this.options.segmentStrokeColor,\n
\t\t\t\tstartAngle : Math.PI * 1.5,\n
\t\t\t\tcircumference : (this.options.animateRotate) ? 0 : this.calculateCircumference(segment.value),\n
\t\t\t\tlabel : segment.label\n
\t\t\t}));\n
\t\t\tif (!silent){\n
\t\t\t\tthis.reflow();\n
\t\t\t\tthis.update();\n
\t\t\t}\n
\t\t},\n
\t\tcalculateCircumference : function(value) {\n
\t\t\tif ( this.total > 0 ) {\n
\t\t\t\treturn (Math.PI*2)*(value / this.total);\n
\t\t\t} else {\n
\t\t\t\treturn 0;\n
\t\t\t}\n
\t\t},\n
\t\tcalculateTotal : function(data){\n
\t\t\tthis.total = 0;\n
\t\t\thelpers.each(data,function(segment){\n
\t\t\t\tthis.total += Math.abs(segment.value);\n
\t\t\t},this);\n
\t\t},\n
\t\tupdate : function(){\n
\t\t\tthis.calculateTotal(this.segments);\n
\n
\t\t\t// Reset any highlight colours before updating.\n
\t\t\thelpers.each(this.activeElements, function(activeElement){\n
\t\t\t\tactiveElement.restore([\'fillColor\']);\n
\t\t\t});\n
\n
\t\t\thelpers.each(this.segments,function(segment){\n
\t\t\t\tsegment.save();\n
\t\t\t});\n
\t\t\tthis.render();\n
\t\t},\n
\n
\t\tremoveData: function(atIndex){\n
\t\t\tvar indexToDelete = (helpers.isNumber(atIndex)) ? atIndex : this.segments.length-1;\n
\t\t\tthis.segments.splice(indexToDelete, 1);\n
\t\t\tthis.reflow();\n
\t\t\tthis.update();\n
\t\t},\n
\n
\t\treflow : function(){\n
\t\t\thelpers.extend(this.SegmentArc.prototype,{\n
\t\t\t\tx : this.chart.width/2,\n
\t\t\t\ty : this.chart.height/2\n
\t\t\t});\n
\t\t\tthis.outerRadius = (helpers.min([this.chart.width,this.chart.height]) -\tthis.options.segmentStrokeWidth/2)/2;\n
\t\t\thelpers.each(this.segments, function(segment){\n
\t\t\t\tsegment.update({\n
\t\t\t\t\touterRadius : this.outerRadius,\n
\t\t\t\t\tinnerRadius : (this.outerRadius/100) * this.options.percentageInnerCutout\n
\t\t\t\t});\n
\t\t\t}, this);\n
\t\t},\n
\t\tdraw : function(easeDecimal){\n
\t\t\tvar animDecimal = (easeDecimal) ? easeDecimal : 1;\n
\t\t\tthis.clear();\n
\t\t\thelpers.each(this.segments,function(segment,index){\n
\t\t\t\tsegment.transition({\n
\t\t\t\t\tcircumference : this.calculateCircumference(segment.value),\n
\t\t\t\t\touterRadius : this.outerRadius,\n
\t\t\t\t\tinnerRadius : (this.outerRadius/100) * this.options.percentageInnerCutout\n
\t\t\t\t},animDecimal);\n
\n
\t\t\t\tsegment.endAngle = segment.startAngle + segment.circumference;\n
\n
\t\t\t\tsegment.draw();\n
\t\t\t\tif (index === 0){\n
\t\t\t\t\tsegment.startAngle = Math.PI * 1.5;\n
\t\t\t\t}\n
\t\t\t\t//Check to see if it\'s the last segment, if not get the next and update the start angle\n
\t\t\t\tif (index < this.segments.length-1){\n
\t\t\t\t\tthis.segments[index+1].startAngle = segment.endAngle;\n
\t\t\t\t}\n
\t\t\t},this);\n
\n
\t\t}\n
\t});\n
\n
\tChart.types.Doughnut.extend({\n
\t\tname : "Pie",\n
\t\tdefaults : helpers.merge(defaultConfig,{percentageInnerCutout : 0})\n
\t});\n
\n
}).call(this);\n
]]></string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>6022</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Chart.Doughnut.js</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment