DHTMLX Docs & Samples Explorer

Index
dhtmlxchart
Configuration properties

# 3D Pie properties

Configuration properties are set in the chart constructor. Some of them are mandatory, others - optional.

    var pieChart =  new dhtmlXChart({
        view:"pie3D",
        container:"chart_container",
        value:"#sales#"
    })

#### Mandatory properties

- container - the id of html container where you want display a chart
- view - a chart type, “pie3D” for this chart
- value - a property of dataset that chart represent

#### Optional properties

look and fill

- cant - a value from 0 to 1 that defines a chart cant (0.5 by default)
- color - a template for a sectors color
- height - a 3D pie height
- gradient - enables/disables a pie gradient
- radius - a 3D Pie Chart radius
- x - the horizontal position of a 3D Pie Chart center
- y - the vertical position of a 3D Pie Chart center

item details

- label - a template for item labels
- tooltip - a template for item tooltips
- legend - a template for element text in legend block
  - width - a block width
  - align - an horizontal align of the block: “left” or “right”
  - valign - a vertical align of the block: “top” or “bottom”
  - marker - an object that defines markers in the details block
    - type - a marker type: “square” or “round”
    - width - a marker width
    - height - a marker height
- pieInnerText - an inner label in a 3D pie

data manipulation

- group - groups data by a certain property
- sort - sorts dataset