graph » options

options

[ root » graph » options ]


AttributeTypeInfo
aspectString

Word Clouds only: Sets the layout of the word cloud

"spiral" | "flow-center" | "flow-top"

colorString

Sets the color (text color for Word Clouds) when "color-type" is set to "color"

"red" | "#3F51B5" | ...

color-type
colorType
String

Sets the type of color arrangement applied to the chart. Use the "color" value with the "color" attribute. Use the "palette" value with the "palette" array.

"random" (default) | "color" | "palette"

currencyString

Depth Charts only: Sets the character to precede monetary values with. Accepts any unicode currency symbol.

"$" | "£" | "¥" | ...

ignoreArray

Word Clouds only: Defines words to be excluded from the word cloud (e.g., "and" or "the")

[...]

max-font-size
maxFontSize
Number

Sets the maximum font size

20 | "30px" | ...

max-items
maxItems
Number

Word Clouds only: Sets the maximum number of items displayed

100 | 30 | ...

min-font-size
minFontSize
Number

Sets the minimum font size

10 | "12px" | ...

min-length
minLength
Number

Word Clouds only: Sets the minimum length of the words displayed

3 | 5 | ...

multi-guide
multiGuide
Object

Sets the multiguide option to pin crosshairs to a chart

3 | 5 | ...

paletteArray

Sets the color pallette when the "color-type" attribute is set to "palette"

[...]

rotateBoolean

Word Clouds only: Sets whether every one or two words rotates 90 degrees

true | false (default)

split-type
splitType
String

Treemap only:Controls the aspect ratio the treemap renders as

balanced | balancedv2 | horizontal | vertical | squarify | squarifyv2 | random | alternate

step-angle
stepAngle
Number

To control the step metering. Use this with the "step-radius" attribute.

45 | 90 | ...

step-radius
stepRadius
Number

To control the step metering. Use this with the "step-angle" attribute.

30 | 50 | ...

styleObject

Sets the styling of these chart types: Chord, Grid, Maps, Rankflow, Violin, and Word Cloud

{...}

textString

Word Clouds only:Provides the data for the word cloud. (Alternatively, data can be provided through a "words" array.)

"text data..." | ...

tokenString

Word Clouds only:Sets the type of item to be analyzed: words or characters

"word" (default) | "character"

wordsArray

Word Clouds only:Provides the data by individual word and associated word count. (Alternatively, data can be provided through a "text" attribute.

[...]

Mobile Charts Plugin Only:

Use the options object to customize your mobile chart settings. You can customize the context menu, x/y-axis crosshairs and zooming scrollbar, and/or the pie/donut chart indicator. Refer to the Mobile Charts Tutorial for more information.

options: {  mobile: true,  disableScrolling: true,  contextMenu: { //Mobile Context Menu    visible: true,    button: {      open: {        lineColor: 'gray'      },      close: {        lineColor: 'white'      }    },    items: {      image: true, //Save Image      share: true, //Share Image      lock: true, //Lock/Unlock Scrolling      share: {        email: true,        facebook: true,        twitter: true,        linkedin: true      },      fontColor: 'white'    }  },  indicator: { //Pie/Donut Only: Mobile Indicator    visible: true,    title: {      visible: true    },    npv: {      visible: true,      decimals: 2    },    value: {      visible: true    }  }}
AttributeTypeInfo
contextMenuObject

Mobile Charts only: To customize the mobile context menu. Refer to the Mobile Charts Tutorial for more information.

{...}

disableScrollingBoolean

Mobile Charts only: To enable or disable mobile scrolling. Mobile scrolling is disabled (true) by default. Refer to the Mobile Charts Tutorial for more information.

true | false

indicatorObject

Mobile Charts only: To customize the mobile indicator on pie and donut charts. Refer to the Mobile Charts Tutorial for more information.

{...}

mobileBoolean

Mobile Charts only: To enable or disable mobile charting. Mobile charting is enabled (true) by default on all charts on a webpage where the mobile charts plugin is included. Refer to the Mobile Charts Tutorial for more information.

true | false