var Mchart = require("mchart.js");
require("/lib/graph");
require("/lib/chart");
require("/lib/axis");
require("/lib/legend");
require("/lib/tooltip");
require("/pie/js/pie");
new Graph.Chart(DOMElement, {
type: "pie",
series: [{
data: []
}]
});
@DOMElement => DOM structure with height and width, and can be CANVAS
@options => {
chart: {...} => Options regarding the chart area and plot area as well as general chart options.
title: {...} => The chart's main title.
subtitle: {...} => The chart's subtitle.
series: {...} => The actual series to append to the chart.
legend: {...} => The legend is a box containing a symbol and name for each series item or point item in the chart.
tooltip: {...} => Options for the tooltip that appears when the user hovers over a series or point.
plotOptions: {...} => The plotOptions is a wrapper object for config objects for each series type.
xAxis: {...} => The X axis or category axis. Normally this is the horizontal axis.
yAxis: {...} => The Y axis or value axis. Normally this is the vertical axis, though if the chart is inverted this is the horizontal axis.
}