Options.PieChart.js

Options.PieChart

PieChart options.  Other options included in the PieChart are Options.Canvas, Options.Label, Options.Tips and Options.Events.

Syntax

Options.PieChart = {
  animate: true,
  offset: 25,
  sliceOffset:0,
  labelOffset: 3,
  type: 'stacked',
  hoveredColor: '#9fd4ff',
  showLabels: true,
  resizeLabels: false,
  updateHeights: false
};

Example

var pie = new $jit.PieChart({
  animate: true,
  sliceOffset: 5,
  type: 'stacked:gradient'
});

Parameters

animate(boolean) Default’s true.  Whether to add animated transitions when plotting/updating the visualization.
offset(number) Default’s 25.  Adds margin between the visualization and the canvas.
sliceOffset(number) Default’s 0.  Separation between the center of the canvas and each pie slice.
labelOffset(number) Default’s 3.  Adds margin between the label and the default place where it should be drawn.
type(string) Default’s *’stacked’*.  Stack style.  Posible values are ‘stacked’, ‘stacked:gradient’ to add gradients.
hoveredColor(boolean|string) Default’s *’#9fd4ff’*.  Sets the selected color for a hovered pie stack.
showLabels(boolean) Default’s true.  Display the name of the slots.
resizeLabels(boolean|number) Default’s false.  Resize the pie labels according to their stacked values.  Set a number for resizeLabels to set a font size minimum.
updateHeights(boolean) Default’s false.  Only for mono-valued (most common) pie charts.  Resize the height of the pie slices according to their current values.
A visualization that displays stacked bar charts.
These are Canvas general options, like where to append it in the DOM, its dimensions, background, and other more advanced options.
Provides styling for Labels such as font size, family, etc.
Tips options
Configuration for adding mouse/touch event handlers to Nodes.
Close