tdgchart

Properties

chartType

This property defines the chart type.

chartType: 'string'

One of 'bar', 'line', 'area', 'pie', 'scatter', 'bubble', 'gauge', 'waterfall', 'sparkline', 'bullet', 'funnel', 'boxplot', 'histogram', 'treemap', 'bar3d', 'area3d', 'surface3d', 'pareto', 'radar', 'polar', 'legend', 'mekko', 'streamgraph', 'parabox'.

catchErrors

This property defines the chart type.

chartType: true

errorStatus

This property defines the chart type.

errorStatus: undefined

showVersion

This property defines showing the chart version.

showVersion: false

showDebugString

This property defines showing the debug string.

showDebugString: false

backend

One of 'js' or 'flash'. Choose which rendering technology to use. Must be passed to the tdgchart() constructor to have any effect.

backend: 'js'

allowBackendFallback

Allow the chart engine to choose a better backend, if possible. Must be passed to the tdgchart() constructor to have any effect.

allowBackendFallback: false

width

This property defines the chart width.

width: 400

height

This property defines the chart height.

height: 250

fill

This property defines the fill color.

fill: {
	color: 'white'
}

border

This property defines the border.

border: {
	width: 0, 
	color: 'transparent',
	dash: ''
}

chartFrame

This property defines the chart frame.

introAnimation

This property defines the chart frame.

enabled: false,
duration: 1000

interaction

This property defines the interaction.

mouseOverIndicator

This property defines the mouseOverIndicator.

data

This property defines the chart data.

[[0.6, 0.8, 0.9],
[1.0, 0.2, 0.3],
[0.65, 0.7, 0.25],
[0.3, 0.3, 1.0]]

dataSubset

This property defines the chart dataSubset.

dataSubset: {
	startGroup: undefined,
	stopGroup: undefined
}

swapData

This property defines the chart swapData.

swapData: false

swapDataAndLabels

This property defines the chart swapDataAndLabels.

swapDataAndLabels: false

riserCycleEndLightness

If there are more series than series colors defined, we cycle through the colors. This defines the lightness / darkness of the final riser color cycle. Valid range between 0 and 1. < 0.5 darkens each series cycle, > 0.5 lightens, so 0 ends as black, 1 ends as white.

riserCycleEndLightness: 0.8

colorMode

This property defines the colorMode.

labelPadding

This property defines the labelPadding.

chartsPerRow

This property defines the chartsPerRow.

chartsPerRow: undefined

depth

2.5D depth effect; either undefined or a number between 0 & 100. Works for bar, line, area, pie and any 'bar-like' chart (gantt, histogram, etc).

depth: undefined

riserDepthGap

2.5D or 3D gap between risers when one riser is placed behind the other. 0 to 1 (as a factor of the depth).

riserDepthGap: 0.2

riserShadow

This property defines the riserShadow.

riserShadow: false

riserBevel

One of 'none', 'darken', 'lighten', 'darkenInverted', 'lightenInverted', 'bevel', 'cylinder', 'donut'.

riserBevel: undefined

axisAutoLayout

This property defines the axisAutoLayout.

bubbleMarker

Size to draw the largest bubble. Either a number (diameter of bubble in pixels), or a percent string ('30%', a fraction of the chart frame size (minimum of width & height)).

bubbleMarker: {
	maxSize: '25%'
}

blaProperties

This property defines the blaProperties.

pieProperties

This property defines the pieProperties.

threedProperties

This property defines the threedProperties.

gaugeProperties

This property defines the gaugeProperties.

funnelProperties

This property defines the funnelProperties.

waterfallProperties

This property defines the waterfallProperties.

boxPlotProperties

This property defines the boxPlotProperties.

histogramProperties

This property defines the histogramProperties.

stockProperties

This property defines the stockProperties.

ganttProperties

This property defines the ganttProperties.

polarProperties

This property defines the polarProperties.

heatmapProperties

Intentionally empty, here for backwards compatibility.

heatmapProperties: {}

treemapProperties

This property defines the treemapProperties.

mapProperties

This property defines the mapProperties.

bulletProperties

This property defines the bulletProperties.

bulletProperties: {
	drawFirstValueAsBar: true
}

tagcloudProperties

This property defines the tagcloudProperties.

paraboxProperties

This property defines the paraboxProperties.

matrixProperties

This property defines the matrixProperties.

legend

This property defines the legend.

title

This property defines the title.

subtitle

This property defines the subtitle.

footnote

This property defines the footnote.

dataPageSlider

This property defines the dataPageSlider.

dataPageSlider: {
	enabled: false
}

htmlToolTip

This property defines the htmlToolTip.

xaxis

This property defines the xaxis.

yaxis

This property defines the yaxis.

y2axis

This property defines the y2axis.

zaxis

This property defines the zaxis.

errorBars

This property defines the errorBars.

trendline

Global trendline - a line fitting ALL data.

referenceLine

This is the structure / API for one refernce line. This specific object does nothing, and is only for reference (like defaultSeries).

referenceLines

This is the actual list of reference lines, just like series: [...] below.

referenceLines: []

dataLabels

This property defines the dataLabels.

dataSelection

This property defines the dataSelection.

previewSelection

This property defines the previewSelection.

groupLabels

This property defines the groupLabels.

groupLabels: "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split('')

defaultShadow

This property defines the defaultShadow.

defaultSeries

This property defines the defaultSeries.

series

This property defines the series.

	series: [
	{series: 'all', color: 'blue', showDataValues: true, border: {width: 2}, marker: {size: 8, border: {width: 1, color: 'black'}}},  // This is the default series
	{series: 0, color: 'red'},
	{series: 1, color: 'green'},
	{series: 2, color: 'orange'}
]

xaxisOrdinal

These empty objects are here for backwards compatibility. These allow code such as chart.xaxisOrdinal.title.text = 'hello' to continue working with the new chart.xaxis API.

xaxisNumeric

These empty objects are here for backwards compatibility. These allow code such as chart.xaxisOrdinal.title.text = 'hello' to continue working with the new chart.xaxis API.

zaxisOrdinal

These empty objects are here for backwards compatibility. These allow code such as chart.xaxisOrdinal.title.text = 'hello' to continue working with the new chart.xaxis API.