axisDefaults
: ObjectcategoryAxis
: ObjectNote: Specify an index greater than or equal to the number of categories to denote the far end of the axis.
$("#chart").kendoChart({
categoryAxis: {
categories: ["A", "B"]
axisCrossingValue: [0, 100]
},
valueAxis: [{ }, { name: "secondary" }],
...
})'
</p>
categories
: Array$("#chart").kendoChart({
categoryAxis: {
categories: [ 2005, 2006, 2007, 2008, 2009 ]
},
...
});
color
: Stringfield
: String// assuming the following data...
var data = [ { sales: 200, year: 2005 }, { sales: 300, year: 2006 }, { sales: 400, year: 2007 }];
// specify the "year" as the field for the category axis
$("#chart").kendoChart({
...,
categoryAxis: {
field: "year"
},
...
});
labels
: Object$("#chart").kendoChart({
categoryAxis: {
labels: {
// set the background color of the labels to a light grey
background: "#e2e2e2",
// rotate the labels just slightly for visual effect
rotation: 10,
// format the labels for currency
format: "C"
}
},
...
});
background
: Stringborder
: Object$("#chart").kendoChart({
categoryAxis: {
labels: {
border: {
// make the width 1
width: 1,
// set the color to a dark blue
color: "#336699",
// set the border style to dashed
dashType: "dash"
}
}
},
...
});
"solid"
"dot"
"dash"
"longDash"
"dashDot"
"longDashDot"
"longDashDotDot"
color
: String$("#chart").kendoChart({
categoryAxis: {
labels: {
// make the font 14px
font: "14px Arial,Helvetica,sans-serif"
}
},
...
});
format
: String$("#chart").kendoChart({
categoryAxis: {
labels: {
// set the format to currency
format: "C"
}
},
...
});
$("#chart").kendoChart({
categoryAxis: {
label: {
// sets the top, right, bottom and left margin to 3px.
margin: 3
}
},
...
});
//
$("#chart").kendoChart({
categoryAxis: {
label: {
// sets the top and left margin to 1px
// margin right and bottom are with 0px (by default)
margin: { top: 1, left: 1 }
}
},
...
});
mirror
: Boolean$("#chart").kendoChart({
categoryAxis: {
labels: {
// mirror the labels on the right
mirror: true
}
},
...
});
$("#chart").kendoChart({
categoryAxis: {
label: {
// sets the top, right, bottom and left padding to 3px.
padding: 3
}
},
...
});
//
$("#chart").kendoChart({
categoryAxis: {
label: {
// sets the top and left padding to 1px
// padding right and bottom are with 0px (by default)
padding: { top: 1, left: 1 }
}
},
...
});
template
: String/Function// chart intialization
$("#chart").kendoChart({
title: {
text: "My Chart Title"
},
series: [
{
name: "Series 1",
data: [200, 450, 300, 125]
}
],
categoryAxis: {
categories: [2000, 2001, 2002, 2003],
labels: {
// labels template
template: "Year: #= value #"
}
}
});
$("#chart").kendoChart({
categoryAxis: {
labels: {
// hide the lables
visible: false
}
},
...
});
line
: Object$("#chart").kendoChart({
categoryAxis: {
line: {
// change the line width to 2 pixels
width: 2,
// set the color to light grey
color: "#e2e2e2"
}
},
...
});
Note: This will also effect the major and minor ticks, but not the grid lines.
"solid"
"dot"
"dash"
"longDash"
"dashDot"
"longDashDot"
"longDashDotDot"
$("#chart").kendoChart({
categoryAxis: {
line: {
// hide the lines completely
visible: false
}
},
...
});
majorGridLines
: Object$("#chart").kendoChart({
categoryAxis: {
majorGridLines: {
// set the width of the lines to 2 pixels
width: 2,
// set the color to a dark blue
color: "#336699"
}
},
...
});
"solid"
"dot"
"dash"
"longDash"
"dashDot"
"longDashDot"
"longDashDotDot"
$("#chart").kendoChart({
categoryAxis: {
majorGridLines: {
// hide the major grid lines
visible: false
}
},
...
});
majorTicks
: ObjectminorGridLines
: ObjectNote that minor grid lines are not visible by default, therefore none of these settings will take effect with the minor grid lines visibility being set to true
.$("#chart").kendoChart({
categoryAxis: {
minorGridLines: {
// set visible to true
visible: true,
// set width to 2 pixels
width: 2,
// set the color to a dark blue
color: "#336699"
}
},
...
});
Note that this setting has no effect if the visibility of the minor grid lines is not set to true.
"solid"
"dot"
"dash"
"longDash"
"dashDot"
"longDashDot"
"longDashDotDot"
Note that this setting has no effect if the visibility of the minor grid lines is not set to true.
minorTicks
: ObjectplotBands
: Array"from"
"to"
"color"
$("#chart").kendoChart({
...,
categoryAxis: {
plotBands: [{
from: 0.2,
to: 0.4,
color: "green"
}]
},
});
title
: Object$("#chart").kendoChart({
categoryAxis: {
title: {
// set the text of the title
text: "Sales By District",
// decreate the font size of the title to 14 px
font: "14px Arial,Helvetica,sans-serif",
// move the title to the bottom
position: "bottom"
}
},
...
});
background
: Stringborder
: Object$("#chart").kendoChart({
categoryAxis: {
title: {
// tweak the border around the title
border: {
// set the width to 1
width: 1,
// set the color to a dark blue
color: "#336699",
// set the style to dashed
dashType: "dash"
}
}
},
...
});
"solid"
"dot"
"dash"
"longDash"
"dashDot"
"longDashDot"
"longDashDotDot"
color
: String$("#chart").kendoChart({
categoryAxis: {
title: {
// decreate the font size of the title to 14 px
font: "14px Arial,Helvetica,sans-serif"
}
}
...
});
$("#chart").kendoChart({
categoryAxis: {
title: {
// sets the top, right, bottom and left margin to 3px.
margin: 3
}
},
...
});
//
$("#chart").kendoChart({
categoryAxis: {
title: {
// sets the top and left margin to 1px
// margin right and bottom are with 0px (by default)
margin: { top: 1, left: 1 }
}
},
...
});
"top"
"bottom"
"left"
"right"
"center"
$("#chart").kendoChart({
categoryAxis: {
title: {
// rotate the title 20 degrees
rotate: 20
}
},
...
});
text
: String$("#chart").kendoChart({
categoryAxis: {
title: {
// hide the title
visible: false
}
},
...
});
"Category"
"Date"
Note: The Chart will automatically switch to a date category axis if the categories are of type Date. Specify type explicitly when such behavior is undesired.
baseUnit
: Stringlabels
: ObjectdateFormats
: Object"hours"
"days"
"months"
"years"
baseUnit
.
Setting the labels format option will override these defaults.max
: Numbermin
: NumberchartArea
: Objectborder
: Object"solid"
"dot"
"dash"
"longDash"
"dashDot"
"longDashDot"
"longDashDotDot"
// sets the top, right, bottom and left margin to 3px.
margin: 3
// sets the top and left margin to 1px
// margin right and bottom are with 5px (by default)
margin: { top: 1, left: 1 }
dataSource
: Object$("#chart").kendoChart({
dataSource: {
transport: {
read: "spain-electricity.json"
}
},
series: [{
field: "value"
}],
categoryAxis: {
field: "year"
}
});
// Alternative configuration
var dataSource = new kendo.data.DataSource({
transport: {
read: "spain-electricity.json"
}
});
$("#chart").kendoChart({
dataSource: dataSource,
series: [{
field: "value"
}],
categoryAxis: {
field: "year"
}
});
legend
: Object$("#chart").kendoChart({
legend: {
// set the background color to a dark blue
background: "#336699",
labels: {
// set the font to a size of 14px
font: "14px Arial,Helvetica,sans-serif",
// set the color to red
color: "red"
},
// move the legend to the left
position: "left",
// move the legend a bit closer to the chart by setting the x offset to 20
offsetX: 20,
// move the legend up to the top by setting the y offset to -100
offsetY: -100,
}
});
border
: Object$("#chart").kendoChart({
legend: {
border: {
// set the border width to 2 pixels
width: 2,
// set the color to grey
color: "grey",
// set the dash type to solid. this is the default so we could leave this line out.
dashType: "solid"
}
},
...
});
"solid"
"dot"
"dash"
"longDash"
"dashDot"
"longDashDot"
"longDashDotDot"
labels
: Object$("#chart").kendoChart({
legend: {
// sets the top, right, bottom and left margin to 3px.
margin: 3
},
...
});
//
$("#chart").kendoChart({
legend: {
// sets the top and left margin to 1px
// margin right and bottom are with 10px (by default)
margin: { top: 1, left: 1 }
},
...
});
$("#chart").kendoChart({
legend: {
// move the legend to the left side of the chart
offsetX: 20
},
...
});
$("#chart").kendoChart({
legend: {
// move the legend up 100 pixels
offsetY: -100
},
...
});
// sets the top, right, bottom and left padding to 3px.
$("#chart").kendoChart({
legend: {
// sets the top, right, bottom and left padding to 3px.
padding: 3
},
...
});
//
$("#chart").kendoChart({
legend: {
// sets the top and left padding to 1px
// padding right and bottom are with 5px (by default)
padding: { top: 1, left: 1 }
},
...
});
"top"
"bottom"
"left"
"right"
"custom"
$("#chart").kendoChart({
legend: {
// hide the legend
visible: false
},
...
});
plotArea
: Objectborder
: Object"solid"
"dot"
"dash"
"longDash"
"dashDot"
"longDashDot"
"longDashDotDot"
// sets the top, right, bottom and left margin to 3px.
margin: 3
// sets the top and left margin to 1px
// margin right and bottom are with 5px (by default)
margin: { top: 1, left: 1 }
series
: ArrayThe series type is determined by the value of the type field. If a type value is missing, the type is assumed to be the one specified in seriesDefaults.
Each series type has a different set of options.
data
: Arrayfield
: StringgroupNameTemplate
: String// chart intialization
$("#chart").kendoChart({
title: {
text: "My Chart Title"
},
dataSource: {
data: seriesData,
group: {
field: "product",
dir: "desc"
}
},
series: [{
type: "bar",
name: "Sales",
fiels: "sales",
groupNameTemplate: "#= series.name # for #= group.field # #= group.value #"
// Sales for product Bar,
// Sales for product Foo,
// etc.
}
]
});
name
: String"max"
"min"
"sum"
"count"
"avg"
function (values, series)
color
: Stringlabels
: Objectbackground
: Stringborder
: Object"solid"
"dot"
"dash"
"longDash"
"dashDot"
"longDashDot"
"longDashDotDot"
color
: Stringformat
: String//sets format of the labels
format: "C"
// sets the top, right, bottom and left margin to 3px.
margin: 3
// sets the top and bottom margin to 1px
// margin left and right are with 5px (by default)
margin: { top: 1, bottom: 1 }
// sets the top, right, bottom and left padding to 3px.
padding: 3
// sets the top and left padding to 1px
// padding right and bottom are with 0px (by default)
padding: { top: 1, left: 1 }
"above"
"right"
"below"
"left"
template
: String/Function// chart intialization
$("#chart").kendoChart({
title: {
text: "My Chart Title"
},
series: [
{
type: "area",
name: "Series 1",
data: [200, 450, 300, 125],
labels: {
// label template
template: "#= value #%",
visible: true
}
}
],
categoryAxis: {
categories: [2000, 2001, 2002, 2003]
}
});
line
: Stringcolor
: Stringmarkers
: Objectbackground
: Stringborder
: Object"square"
"triangle"
"circle"
"interpolate"
"zero"
"gap"
name
: Stringtooltip
: Objectbackground
: Stringborder
: Objectcolor
: Stringformat
: String//sets format of the tooltip
format: "C"
padding
: Number|Object// sets the top, right, bottom and left padding to 3px.
padding: 3
// sets the top and left padding to 1px
// right and bottom padding are left at their default values
padding: { top: 1, left: 1 }
template
: String|Function$("#chart").kendoChart({
title: {
text: "My Chart Title"
},
series: [
{
type: "area",
name: "Series 1",
data: [200, 450, 300, 125],
tooltip: {
visible: true,
template: "#= category # - #= value #"
}
}
],
categoryAxis: {
categories: [2000, 2001, 2002, 2003]
}
});
"max"
"min"
"sum"
"count"
"avg"
function (values, series)
border
: Object"solid"
"dot"
"dash"
"longDash"
"dashDot"
"longDashDot"
"longDashDotDot"
color
: StringcolorField
: Stringlabels
: Objectbackground
: Stringborder
: Object"solid"
"dot"
"dash"
"longDash"
"dashDot"
"longDashDot"
"longDashDotDot"
color
: Stringformat
: String//sets format of the labels
format: "C"
// sets the top, right, bottom and left margin to 3px.
margin: 3
// sets the top and left margin to 1px
// margin right and bottom are with 2px (by default)
margin: { top: 1, left: 1 }
// sets the top, right, bottom and left padding to 3px.
padding: 3
// sets the top and left padding to 1px
// padding right and bottom are with 2px (by default)
padding: { top: 1, left: 1 }
"center"
"insideEnd"
"insideBase"
"outsideEnd"
template
: String/Function// chart intialization
$("#chart").kendoChart({
title: {
text: "My Chart Title"
},
series: [
{
type: "bar",
name: "Series 1",
data: [200, 450, 300, 125],
labels: {
// label template
template: "#= value #%",
visible: true
}
}
],
categoryAxis: {
categories: [2000, 2001, 2002, 2003]
}
});
name
: Stringoverlay
: Objectstack
: Stringtooltip
: Objectbackground
: Stringborder
: Objectcolor
: Stringformat
: String//sets format of the tooltip
format: "C"
padding
: Number|Object// sets the top, right, bottom and left padding to 3px.
padding: 3
// sets the top and left padding to 1px
// right and bottom padding are left at their default values
padding: { top: 1, left: 1 }
template
: String|Function$("#chart").kendoChart({
title: {
text: "My Chart Title"
},
series: [
{
type: "bar",
name: "Series 1",
data: [200, 450, 300, 125],
tooltip: {
visible: true,
template: "#= category # - #= value #"
}
}
],
categoryAxis: {
categories: [2000, 2001, 2002, 2003]
}
});
border
: ObjectcategoryField
: Stringcolor
: StringcolorField
: Stringdata
: Array// ...
series:[{
type: "bubble",
data:[[1, 1, 1], [1, 2, 2]],
name: "Points"
}]
// ...
labels
: Objectbackground
: Stringborder
: Object"solid"
"dot"
"dash"
"longDash"
"dashDot"
"longDashDot"
"longDashDotDot"
color
: Stringformat
: String//sets format of the labels
format: "C"
// sets the top, right, bottom and left margin to 3px.
margin: 3
// sets the top and bottom margin to 1px
// margin left and right are with 5px (by default)
margin: { top: 1, bottom: 1 }
// sets the top, right, bottom and left padding to 3px.
padding: 3
// sets the top and left padding to 1px
// padding right and bottom are with 0px (by default)
padding: { top: 1, left: 1 }
"above"
"right"
"below"
"left"
template
: String/Function// chart intialization
$("#chart").kendoChart({
title: {
text: "My Chart Title"
},
series: [
{
type: "bubble",
name: "Series 1",
data: [[1, 1, 1], [1, 2, 2], [1, 3, 3]],
labels: {
// label template
template: "#= value.x # - #= value.y # - #= value.size #",
visible: true
}
}
]
});
name
: StringnegativeValues
: ObjectsizeField
: Stringtooltip
: Objectbackground
: Stringborder
: Objectcolor
: Stringformat
: String//sets format of the tooltip
format: "{0:C}--{1:C}"
padding
: Number|Object// sets the top, right, bottom and left padding to 3px.
padding: 3
// sets the top and left padding to 1px
// right and bottom padding are left at their default values
padding: { top: 1, left: 1 }
template
: String|Function$("#chart").kendoChart({
title: {
text: "My Chart Title"
},
series: [
{
type: "bubble",
name: "Series 1",
data: [[1, 1, 1], [1, 2, 2], [1, 3, 3]],
tooltip: {
visible: true,
template: "#= category # - #= value.x # - #= value.y # - #= value.size #"
}
}
]
});
visibleInLegendField
: StringxField
: StringyField
: Stringborder
: Object"solid"
"dot"
"dash"
"longDash"
"dashDot"
"longDashDot"
"longDashDotDot"
categoryField
: StringcolorField
: Stringconnectors
: Objectcolor
: Stringdata
: Array"value"
"category"
"color"
"explode"
"visibleInLegend"
// ...
series:[{
type: "donut",
data:[{
value: 40,
category: "Apples"
}, {
value: 60,
category: "Oranges",
color: "#ff6103"
}],
name: "Sales in Percent"
}]
// ...
explodeField
: StringholeSize
: Numberlabels
: Object"circle"
"column"
background
: Stringborder
: Object"solid"
"dot"
"dash"
"longDash"
"dashDot"
"longDashDot"
"longDashDotDot"
color
: Stringformat
: String//sets format of the labels
format: "C"
// sets the top, right, bottom and left margin to 3px.
margin: 3
// sets the top and left margin to 1px
// margin right and bottom are with 2px (by default)
margin: { top: 1, left: 1 }
// sets the top, right, bottom and left padding to 3px.
padding: 3
// sets the top and left padding to 1px
// padding right and bottom are with 2px (by default)
padding: { top: 1, left: 1 }
"center"
"insideEnd"
"outsideEnd"
template
: String/Function// chart intialization
$("#chart").kendoChart({
title: {
text: "My Chart Title"
},
series: [{
type: "donut",
data: [
{ value: 200, category: 2000 },
{ value: 450, category: 2001 },
{ value: 300, category: 2002 },
{ value: 125, category: 2003 }
],
labels: {
// label template
template: "#= value #%",
visible: true
}
}]
});
overlay
: Objectpadding
: Numbersize
: Numbertooltip
: Objectbackground
: Stringborder
: Objectcolor
: Stringformat
: String//sets format of the tooltip
format: "C"
padding
: Number|Object// sets the top, right, bottom and left padding to 3px.
padding: 3
// sets the top and left padding to 1px
// right and bottom padding are left at their default values
padding: { top: 1, left: 1 }
template
: String|Function$("#chart").kendoChart({
title: {
text: "My Chart Title"
},
series: [{
type: "donut",
name: "Series 1",
data: [200, 450, 300, 125],
tooltip: {
visible: true,
template: "#= category # - #= value #"
}
}]
});
"max"
"min"
"sum"
"count"
"avg"
function (values, series)
color
: String"solid"
"dot"
"dash"
"longDash"
"dashDot"
"longDashDot"
"longDashDotDot"
labels
: Objectbackground
: Stringborder
: Object"solid"
"dot"
"dash"
"longDash"
"dashDot"
"longDashDot"
"longDashDotDot"
color
: Stringformat
: String//sets format of the labels
format: "C"
// sets the top, right, bottom and left margin to 3px.
margin: 3
// sets the top and bottom margin to 1px
// margin left and right are with 5px (by default)
margin: { top: 1, bottom: 1 }
// sets the top, right, bottom and left padding to 3px.
padding: 3
// sets the top and left padding to 1px
// padding right and bottom are with 0px (by default)
padding: { top: 1, left: 1 }
"above"
"right"
"below"
"left"
template
: String/Function// chart intialization
$("#chart").kendoChart({
title: {
text: "My Chart Title"
},
series: [
{
type: "line",
name: "Series 1",
data: [200, 450, 300, 125],
labels: {
// label template
template: "#= value #%",
visible: true
}
}
],
categoryAxis: {
categories: [2000, 2001, 2002, 2003]
}
});
markers
: Objectbackground
: Stringborder
: Object"square"
"triangle"
"circle"
"interpolate"
"zero"
"gap"
name
: Stringtooltip
: Objectbackground
: Stringborder
: Objectcolor
: Stringformat
: String//sets format of the tooltip
format: "C"
padding
: Number|Object// sets the top, right, bottom and left padding to 3px.
padding: 3
// sets the top and left padding to 1px
// right and bottom padding are left at their default values
padding: { top: 1, left: 1 }
template
: String|Function$("#chart").kendoChart({
title: {
text: "My Chart Title"
},
series: [
{
type: "line",
name: "Series 1",
data: [200, 450, 300, 125],
tooltip: {
visible: true,
template: "#= category # - #= value #"
}
}
],
categoryAxis: {
categories: [2000, 2001, 2002, 2003]
}
});
border
: Object"solid"
"dot"
"dash"
"longDash"
"dashDot"
"longDashDot"
"longDashDotDot"
categoryField
: StringcolorField
: Stringconnectors
: Objectcolor
: Stringdata
: Array"value"
"category"
"color"
"explode"
"visibleInLegend"
// ...
series:[{
type: "pie",
data:[{
value: 40,
category: "Apples"
}, {
value: 60,
category: "Oranges",
color: "#ff6103"
}
],
name: "Sales in Percent"
}]
// ...
explodeField
: Stringlabels
: Object"circle"
"column"
background
: Stringborder
: Object"solid"
"dot"
"dash"
"longDash"
"dashDot"
"longDashDot"
"longDashDotDot"
color
: Stringformat
: String//sets format of the labels
format: "C"
// sets the top, right, bottom and left margin to 3px.
margin: 3
// sets the top and left margin to 1px
// margin right and bottom are with 2px (by default)
margin: { top: 1, left: 1 }
// sets the top, right, bottom and left padding to 3px.
padding: 3
// sets the top and left padding to 1px
// padding right and bottom are with 2px (by default)
padding: { top: 1, left: 1 }
"center"
"insideEnd"
"outsideEnd"
template
: String/Function// chart intialization
$("#chart").kendoChart({
title: {
text: "My Chart Title"
},
series: [
{
type: "pie",
name: "Series 1",
data: [
{ value: 200, category: 2000 },
{ value: 450, category: 2001 },
{ value: 300, category: 2002 },
{ value: 125, category: 2003 }
],
labels: {
// label template
template: "#= value #%",
visible: true
}
}
]
});
overlay
: Objectpadding
: Numbertooltip
: Objectbackground
: Stringborder
: Objectcolor
: Stringformat
: String//sets format of the tooltip
format: "C"
padding
: Number|Object// sets the top, right, bottom and left padding to 3px.
padding: 3
// sets the top and left padding to 1px
// right and bottom padding are left at their default values
padding: { top: 1, left: 1 }
template
: String|Function$("#chart").kendoChart({
title: {
text: "My Chart Title"
},
series: [
{
type: "pie",
name: "Series 1",
data: [200, 450, 300, 125],
tooltip: {
visible: true,
template: "#= category # - #= value #"
}
}
]
});
visibleInLegendField
: NumbervisibleInLegendField
: Numbercolor
: Stringdata
: Array// ...
series:[{
type: "scatter",
data:[[1, 1], [1, 2]],
name: "Points"
}]
// ...
labels
: Objectbackground
: Stringborder
: Object"solid"
"dot"
"dash"
"longDash"
"dashDot"
"longDashDot"
"longDashDotDot"
color
: Stringformat
: String//sets format of the labels
format: "C"
// sets the top, right, bottom and left margin to 3px.
margin: 3
// sets the top and bottom margin to 1px
// margin left and right are with 5px (by default)
margin: { top: 1, bottom: 1 }
// sets the top, right, bottom and left padding to 3px.
padding: 3
// sets the top and left padding to 1px
// padding right and bottom are with 0px (by default)
padding: { top: 1, left: 1 }
"above"
"right"
"below"
"left"
template
: String/Function// chart intialization
$("#chart").kendoChart({
title: {
text: "My Chart Title"
},
series: [
{
type: "scatter",
name: "Series 1",
data: [[1, 1], [1, 2], [1, 3]],
labels: {
// label template
template: "#= value.x # - #= value.y x #",
visible: true
}
}
]
});
markers
: Objectbackground
: Stringborder
: Object"square"
"triangle"
"circle"
name
: Stringtooltip
: Objectbackground
: Stringborder
: Objectcolor
: Stringformat
: String//sets format of the tooltip
format: "{0:C}--{1:C}"
padding
: Number|Object// sets the top, right, bottom and left padding to 3px.
padding: 3
// sets the top and left padding to 1px
// right and bottom padding are left at their default values
padding: { top: 1, left: 1 }
template
: String|Function$("#chart").kendoChart({
title: {
text: "My Chart Title"
},
series: [
{
type: "scatter",
name: "Series 1",
data: [[1, 1], [1, 2], [1, 3]],
tooltip: {
visible: true,
template: "#= category # - #= value.x # - #= value.y #"
}
}
]
});
color
: String"solid"
"dot"
"dash"
"longDash"
"dashDot"
"longDashDot"
"longDashDotDot"
data
: Array// ...
series:[{
type: "scatterLine",
data:[[1, 1], [1, 2]],
name: "Points"
}]
// ...
labels
: Objectbackground
: Stringborder
: Object"solid"
"dot"
"dash"
"longDash"
"dashDot"
"longDashDot"
"longDashDotDot"
color
: Stringformat
: String//sets format of the labels
format: "{0:C}--{1:C}"
// sets the top, right, bottom and left margin to 3px.
margin: 3
// sets the top and bottom margin to 1px
// margin left and right are with 5px (by default)
margin: { top: 1, bottom: 1 }
// sets the top, right, bottom and left padding to 3px.
padding: 3
// sets the top and left padding to 1px
// padding right and bottom are with 0px (by default)
padding: { top: 1, left: 1 }
"above"
"right"
"below"
"left"
template
: String/Function// chart intialization
$("#chart").kendoChart({
title: {
text: "My Chart Title"
},
series: [
{
type: "scatterLine",
name: "Series 1",
data: [[1, 1], [1, 2], [1, 3]],
labels: {
// label template
template: "#= value.x # - #= value.y #",
visible: true
}
}
]
});
markers
: Objectbackground
: Stringborder
: Object"square"
"triangle"
"circle"
"interpolate"
"zero"
"gap"
name
: Stringtooltip
: Objectbackground
: Stringborder
: Objectcolor
: Stringformat
: String//sets format of the tooltip
format: "C"
padding
: Number|Object// sets the top, right, bottom and left padding to 3px.
padding: 3
// sets the top and left padding to 1px
// right and bottom padding are left at their default values
padding: { top: 1, left: 1 }
template
: String|Function$("#chart").kendoChart({
title: {
text: "My Chart Title"
},
series: [
{
type: "scatterLine",
name: "Series 1",
data: [[1, 1], [1, 2], [1, 3]],
tooltip: {
visible: true,
template: "#= category # - #= value.x # - #= value.y #"
}
}
]
});
seriesColors
: ArrayseriesDefaults
: Objectarea
: Objectbar
: Objectborder
: Object"solid"
"dot"
"dash"
"longDash"
"dashDot"
"longDashDot"
"longDashDotDot"
bubble
: Objectcolumn
: Objectdonut
: Objectlabels
: Object$("#chart").kendoChart({
seriesDefault: {
// adjust the default label appearence for all series
labels: {
// set the margin on all sides to 1
margin: 1,
// format the labels as currency
format: "C"
}
},
...
});
background
: Stringborder
: Object"solid"
"dot"
"dash"
"longDash"
"dashDot"
"longDashDot"
"longDashDotDot"
color
: String$("#chart").kendoChart({
seriesDefault: {
// adjust the default label appearence for all series
labels: {
// set the font size to 14px
font: "14px Arial,Helvetica,sans-serif"
}
},
...
});
format
: String//sets format of the labels
format: "C"
$("#chart).kendoChart({
labels: {
// sets the top, right, bottom and left margin to 3px.
margin: 3
},
...
});
//
$("#chart").kendoChart({
labels: {
// sets the top and left margin to 1px
// margin right and bottom are with 0px (by default)
margin: { top: 1, left: 1 }
},
...
});
// sets the top, right, bottom and left padding to 3px.
padding: 3
// sets the top and left padding to 1px
// padding right and bottom are with 0px (by default)
padding: { top: 1, left: 1 }
template
: String/Function// chart intialization
$("#chart").kendoChart({
title: {
text: "My Chart Title"
},
seriesDefault: {
labels: {
// label template
template: "#= value #%",
visible: true
}
},
series: [
{
name: "Series 1",
data: [200, 450, 300, 125]
}
],
categoryAxis: {
categories: [2000, 2001, 2002, 2003]
}
});
$("#chart").kendoChart({
seriesDefault: {
labels: {
// hide all the series labels by default
visible: true
},
...
}
});
line
: Objectoverlay
: Objectpie
: Objectscatter
: ObjectscatterLine
: Objecttooltip
: Objectbackground
: Stringborder
: Objectcolor
: Stringformat
: String//sets format of the tooltip
format: "C"
padding
: Number|Object// sets the top, right, bottom and left padding to 3px.
padding: 3
// sets the top and left padding to 1px
// right and bottom padding are left at their default values
padding: { top: 1, left: 1 }
template
: String|Function$("#chart").kendoChart({
title: {
text: "My Chart Title"
},
seriesDefaults: {
tooltip: {
visible: true,
template: "#= category # - #= value #"
}
},
series: [
{
name: "Series 1",
data: [200, 450, 300, 125]
}
],
categoryAxis: {
categories: [2000, 2001, 2002, 2003]
}
});
verticalArea
: ObjectverticalLine
: Objecttheme
: Stringtitle
: Object"left"
"center"
"right"
border
: Object$("#chart").kendoChart({
// set border options on the title
title: {
border: {
// set the border color to a dark blue
color: "#336699",
// set the width of the border to 2 pixels
width: 2,
// set the border style to long dashes
dashType: "longDash"
}
},
...
});
"solid"
"dot"
"dash"
"longDash"
"dashDot"
"longDashDot"
"longDashDotDot"
$("#chart").kendoChart({
// sets the top, right, bottom and left margin to 3px.
title: {
margin: 3
},
...
});
//
$("#chart").kendoChart({
// sets the top and left margin to 1px
// margin right and bottom are with 5px (by default)
title: {
margin: { top: 1, left: 1 }
},
...
});
$("#chart").kendoChart({
// sets the top, right, bottom and left padding to 3px.
title: {
padding: 3
},
...
});
//
$("#chart").kendoChart({
// sets the top and left padding to 1px
// padding right and bottom are with 5px (by default)
title: {
padding: { top: 1, left: 1 }
},
...
});
"top"
"bottom"
text
: String$("#chart ").kendoChart({
title: {
// hides the title
visible: false
},
...
});
tooltip
: Objectbackground
: Stringborder
: Objectcolor
: Stringformat
: String//sets format of the tooltip
format: "C"
padding
: Number|Object// sets the top, right, bottom and left padding to 3px.
padding: 3
// sets the top and left padding to 1px
// right and bottom padding are left at their default values
padding: { top: 1, left: 1 }
template
: String|Function$("#chart").kendoChart({
title: {
text: "My Chart Title"
},
series: [
{
name: "Series 1",
data: [200, 450, 300, 125]
}
],
categoryAxis: {
categories: [2000, 2001, 2002, 2003]
},
tooltip: {
visible: true,
template: "#= category # - #= value #"
}
});
valueAxis
: Objectcolor
: Stringlabels
: Object$("#chart").kendoChart({
valueAxis: {
labels: {
// set the color of the text on the labels to a dark blue
color: "#336699",
// set the background color of the labels to a light grey
background: "#e2e2e2",
// make the font 14px
// rotate the labels just slightly for visual effect
rotation: 10,
// format the labels for currency
format: "C"
}
},
...
});
background
: Stringborder
: Object$("#chart").kendoChart({
valueAxis: {
labels: {
border: {
// make the width 1
width: 1,
// set the color to a dark blue
color: "#336699",
// set the border style to dashed
dashType: "dash"
}
}
},
...
});
"solid"
"dot"
"dash"
"longDash"
"dashDot"
"longDashDot"
"longDashDotDot"
color
: Stringformat
: String$("#chart").kendoChart({
valueAxis: {
labels: {
// set the format to currency
format: "C"
}
},
...
});
$("#chart").kendoChart({
valueAxis: {
label: {
// sets the top, right, bottom and left margin to 3px.
margin: 3
}
},
...
});
//
$("#chart").kendoChart({
valueAxis: {
label: {
// sets the top and left margin to 1px
// margin right and bottom are with 0px (by default)
margin: { top: 1, left: 1 }
}
},
...
});
mirror
: Boolean$("#chart").kendoChart({
valueAxis: {
labels: {
// mirror the labels on the right
mirror: true
}
},
...
});
$("#chart").kendoChart({
valueAxis: {
label: {
// sets the top, right, bottom and left padding to 3px.
padding: 3
}
},
...
});
//
$("#chart").kendoChart({
valueAxis: {
label: {
// sets the top and left padding to 1px
// padding right and bottom are with 0px (by default)
padding: { top: 1, left: 1 }
}
},
...
});
template
: String/Function// chart intialization
$("#chart").kendoChart({
title: {
text: "My Chart Title"
},
series: [
{
name: "Series 1",
data: [200, 450, 300, 125]
}
],
categoryAxis: {
categories: [2000, 2001, 2002, 2003]
},
valueAxis: {
labels: {
// labels template
template: "#= value #%"
}
}
});
$("#chart").kendoChart({
valueAxis: {
labels: {
// hide the axis labels
visible: false
}
},
...
});
line
: Object$("#chart").kendoChart({
valueAxis: {
line: {
// change the line width to 2 pixels
width: 2,
// set the color to light grey
color: "#e2e2e2"
}
},
...
});
"solid"
"dot"
"dash"
"longDash"
"dashDot"
"longDashDot"
"longDashDotDot"
$("#chart").kendoChart({
valueAxis: {
line: {
// hide the axis lines altogether
visible: false
}
},
...
});
majorGridLines
: Object$("#chart").kendoChart({
valueAxis: {
minorGridLines: {
// set visible to true
visible: true,
// set width to 2 pixels
width: 2,
// set the color to a dark blue
color: "#336699",
// set the dashType to dot
dashType: "dot"
}
},
...
});
$("#chart").kendoChart({
valueAxis: {
minorGridLines: {
// set visible to true
visible: false
}
},
...
});
majorTicks
: ObjectmajorUnit
: NumberminorGridLines
: ObjectNote that this has no effect if the visibility of the minor grid lines is not set to true.
"solid"
"dot"
"dash"
"longDash"
"dashDot"
"longDashDot"
"longDashDotDot"
Note that minor grid lines are not visible by default, therefore none of these settings will take effect without the minor grid lines visibility being set to true
.$("#chart").kendoChart({
valueAxis: {
minorGridLines: {
// set visible to true
visible: true,
// set width to 2 pixels
width: 2,
// set the color to a dark blue
color: "#336699",
// set the dashType to dot
dashType: "dot"
}
},
...
});
$("#chart").kendoChart({
valueAxis: {
minorGridLines: {
// set visible to true. they are hidden by default
visible: true
}
},
...
});
Note that this settings has no effect if the visibility of the minor grid lines is not set to true.
minorTicks
: ObjectminorUnit
: NumberplotBands
: Array"from"
"to"
"color"
$("#chart").kendoChart({
...,
valueAxis: {
plotBands: [{
from: 0.2,
to: 0.4,
color: "green"
}]
},
});
title
: Object$("#chart").kendoChart({
title: {
// set the color of the title text to a dark blue
color: "#336699",
// set the background color to a light grey
background: "#e2e2e2",
// set the text of the title
text: "Sales By District",
// move the title to the bottom
position: "bottom"
},
...
});
background
: Stringborder
: Object$("#chart").kendoChart({
valueAxis: {
title: {
// tweak the border around the title
border: {
// set the width to 1
width: 1,
// set the color to a dark blue
color: "#336699",
// set the style to dashed
dashType: "dash"
}
}
},
...
});
"solid"
"dot"
"dash"
"longDash"
"dashDot"
"longDashDot"
"longDashDotDot"
color
: String$("#chart").kendoChart({
valueAxis: {
title: {
// decreate the font size of the title to 14 px
font: "14px Arial,Helvetica,sans-serif"
}
}
...
});
$("#chart").kendoChart({
valueAxis: {
title: {
// sets the top, right, bottom and left margin to 3px.
margin: 3
}
},
...
});
//
$("#chart").kendoChart({
valueAxis: {
title: {
// sets the top and left margin to 1px
// margin right and bottom are with 0px (by default)
margin: { top: 1, left: 1 }
}
},
...
});
$("#chart").kendoChart({
valueAxis: {
title: {
// sets the top, right, bottom and left padding to 3px.
padding: 3
}
},
...
});
$("#chart").kendoChart({
valueAxis: {
title: {
// sets the top and left padding to 1px
// padding right and bottom are with 0px (by default)
padding: { top: 1, left: 1 }
}
},
...
});
"top"
"bottom"
"left"
"right"
"center"
$("#chart").kendoChart({
valueAxis: {
title: {
// rotate the title 20 degrees
rotate: 20
}
},
...
});
text
: String$("#chart").kendoChart({
valueAxis: {
title: {
// hide the title
visible: false
}
},
...
});
xAxis
: ObjectNote: The Chart will automatically switch to a date axis if the series X value is of type Date. Specify type explicitly when such behavior is undesired.
"Numeric"
"Date"
axisCrossingValue
: DatebaseUnit
: Stringlabels
: ObjectdateFormats
: Object"hours"
"days"
"months"
"years"
baseUnit
.
Setting the labels format option will override these defaults.majorUnit
: Numbermax
: Datemin
: DateminorUnit
: Numbertype: "Numeric"
: NumberaxisCrossingValue
(default: 0)Note: Specify a value greater than or equal to the axis maximum value to denote the far end of the axis.
$("#chart").kendoChart({
...,
xAxis: {
axisCrossingValue: [0, 1000]
},
yAxis: [{ }, { name: "secondary" }],
...
});
</p>
yAxis
: Object