Jump to content
We've recently updated our Privacy Statement, available here ×
  • Advanced Chart Formatting


    tomt
    • Edited on:
    • Features: Charts Version: v8, v7, v6.9, v6.7, v6.6, v6.5, v6.4, v6.3, v6.2 Product: JasperReports® Server

    This page provides a list of supported Advanced Chart Formatting commands.

    Jaspersoft HTML5 Javascript Charts are defined with default formatting. While the Ad Hoc Designer provides some basic formatting control via properties that are selected from the Chart Formatting Dialog, in some cases you may require more control over a chart's appearance. Starting with Jaspersoft Version 6.2, the Advanced Properties Tab is designed to let you enter formatting commands:

    index001.png.65343f9c0e99473a4b056b08179ff8ce.png

    💡Tip: placing two slashes at the beginning of a property causes it to be commented out. Use this "trick" to disable a property without having to delete it.

    Notes:

    • 3D Charting options are not currently supported.
    • Property names and values are case sensitive. Incorrect casing will cause a property to be ignored.
    • If the Properties names or 'Values' are input incorrectly, the chart will not change.
    Property Value Description

    chart.alignTicks

    true or false

    When using multiple axis, the ticks of two or more opposite axes will automatically be aligned by adding ticks to the axis or axes with the least ticks. This can be prevented by setting alignTicks to false. If the grid lines look messy, it's a good idea to hide them for the secondary axis by setting gridLineWidth to 0. Defaults to true. For example, value set to:

    false

    causes a chart to draw as follows:

    chart_alignTicks(1).png.aebf1b9e451f131d70fd89d4ab1d13e2.png

    chart.backgroundColor

    "color"

    Sets the back ground color of the entire chart. The color value may be a color name (such as 'Black') or a hexadecimal code enclosed in double quotes. For example, value set to:

    "Grey"

    causes a chart to draw as follows:

    index002.png.f19a3c66d16cb2da2dd196aa5cfaf3d0.png

    Notes:

    • Color Names and Hex Codes should not contain spaces.
    • Hex codes should begin with #.
    • If an unknown color name or code is defined, a black back ground is displayed.
    • For a list of color hex codes, see: https://simple.wikipedia.org/wiki/Web_color

    chart.borderColor

    "color"

    The color of the outer chart border. Defaults to #4572A7. For example, value set to:

    "Green"

    causes a chart to draw as follows:

    chart_borderColor(1).png.7058fe85802f8212873e48f02ec6c1e9.png

    Notes:

    • You must include chart.borderWidth in order to work

    chart.borderRadius

    Value

    The corner radius of the outer chart border. Defaults to 0. For example, value set to:

    5

    causes a chart to draw as follows:

    ScreenShot2015-11-11at1_13_41PM.png.8425fd2b7348cbe588155ab289fb6f20.png

    Notes:

    • You must include and ;chart.borderWidth in order to work
    • You can add chart.borderColor to change border color

    chart.borderWidth

    Value

    The pixel width of the outer chart border. Defaults to 0. For example, value set to:

    2

    causes a chart to draw as follows:

    chart_borderWidth(1).png.220cd346bfff8dae39a927dbef4ae7fa.png

    Notes:

    • You can add chart.borderColor to change border color

    chart.plotBackgroundColor

    "color"

    Sets the back ground color of the chart plot area. The color value may be a color name (such as 'Black') or a hexadecimal code enclosed in double quotes. For example, value set to:

    "Black"

    causes a chart to draw as follows:

    index003(1).png.ab402c9889827b391b37c95199613102.png

    Notes:

    • Color Names and Hex Codes should not contain spaces.
    • Hex codes should begin with #.
    • If an unknown color name or code is defined, a black back ground is displayed.
    • For a list of color hex codes, see: https://simple.wikipedia.org/wiki/Web_color

    chart.height

    Value

    An explicit height for the chart. By default the height is calculated from the offset height of the containing element, or 400 pixels if the containing element's height is 0. For example, value set to:

    200

    causes a chart to draw as follows:

    chart_height.png.0e266e6ecc5fdd947ed0b73f243abbf3.png

    chart.ignoreHiddenSeries

    true or false

    If true, the axes will scale to the remaining visible series once one series is hidden. If false, hiding and showing a series will not affect the axes or the other series. For stacks, once one series within the stack is hidden, the rest of the stack will close in around it even if the axis is not affected. For example, value set to:

    true

    causes a chart to draw as follows:

    chart_ignoreHiddenSeries.png.f053ccd1866e385104e3e565bac9c91e.png

    chart.inverted

    true or false

    Whether to invert the axes so that the x axis is vertical and y axis is horizontal. For example, value set to:

    true

    causes a Spline chart to draw as follows:

    index004.png.8c4536efb0c4f4bb7344cd9779178c99.png

    chart.margin

    Array

    The margin between the outer edge of the chart and the plot area. The numbers in the array designate top, right, bottom and left respectively. Use the options marginTop, marginRight, marginBottom and marginLeft for shorthand setting of one option.

    Since version 2.1, the margin is 0 by default. The actual space is dynamically calculated from the offset of axis labels, axis title, title, subtitle and legend in addition to the spacingTop, spacingRight, spacingBottom and spacingLeft options.

    Defaults to [null]. For example, value set to:

    [100, 80, 60, 80]

    causes a chart to draw as follows:

    chart_margin.png.8c90cd1282ad0e447030d9e86d448f00.png

    chart.marginBottom

    Value The margin between the bottom outer edge of the chart and the plot area. Use this to set a fixed pixel value for the margin as opposed to the default dynamic margin. See also. For example, value set to:

    100

    causes a chart to draw as follows:

    chart_margin_bottom.png.ef1c3c6151c5905820892439234865c5.png

    chart.marginLeft

    Value

    The margin between the left outer edge of the chart and the plot area. Use this to set a fixed pixel value for the margin as opposed to the default dynamic margin. See also spacingLeft. For example, value set to:

    150

    causes a chart to draw as follows:

    chat_margin_Left.png.bcbbf46f987edc52a5985c90323d6770.png

    chart.marginRight

    Value

    The margin between the right outer edge of the chart and the plot area. Use this to set a fixed pixel value for the margin as opposed to the default dynamic margin. See also spacingRight. For example, value set to:

    270

    causes a chart to draw as follows:

    chart_marginRight.png.82351bfc4f96d19a3a003d34127325d3.png

    chart.marginTop

    Value

    The margin between the top outer edge of the chart and the plot area. Use this to set a fixed pixel value for the margin as opposed to the default dynamic margin. See also spacingTop. For example, value set to:

    30

    causes a chart to draw as follows:

    chat_marginTop.png.74fd11f56e20dfecd681bb6a0c3e707c.png

    chart.options3d.enabled

    true or false

    Supported as of Version 6.2.1. Causes a chart to be drawn in 3d.

    Notes:

    • Works only on Pie, Column, and Bar Chart types
    • Addtional formatting commands are required to set the axis angle and chart depth:
      • chart.options3d.alpha
      • plotOptions.pie.depth

    For example, a 3d pie chart:

    chart.options3d.enabled with a value of true

    chart.options3d.alpha with a value of 45

    plotOptions.pie.depth with a value of 45

    causes the following chart to be drawn:

    For example, a 3d column chart:

    chart.options3d.enabled with a value of true

    chart.options3d.alpha with a value of 20

    causes the following chart to be drawn:

    chart.panKey

    String

    Allows setting a key to switch between zooming and panning. For example, value set to:

    "shift"

    chart.panning

    true or false

    Allow panning in a chart. Best used with panKey to combine zooming and panning. Defaults to false. For example, value set to:

    true

    chart.plotBackgroundImage

    String

    The URL for an image to use as the plot background. To set an image as the background for the entire chart, set a CSS background image to the container element. Note that for the image to be applied to exported charts, its URL needs to be accessible by the server. For example, value set to:

    "insert URL"

    causes a chart to draw as follows:

    chart_plotBackgroundImage.png.d5a72c3ad02c2e97bc2fd9f37b3f63ce.png

    chart.plotBorderColor

    "color"

    The color of the inner chart or plot area border. Defaults to #C0C0C0. For example, value set to:

    "blue"

    causes a chart to draw as follows:

    plotBorderColor.png.384300f798cb9a7f7a63dbd278de0a42.png

    chart.plotBorderWidth

    Value

    The pixel width of the plot area border. Defaults to 0, For example, value set to:

    2

    causes a chart to draw as follows:

    chart_plotBorderWidth.png.a92aaae2f8690fba3500d79c26620026.png

    chart.polar

    true or false

    When true, cartesian charts like line, spline, area and column are transformed into the polar coordinate system. Requires highcharts-more.js . Defaults to false . For example, value set to:

    true

    causes a chart to draw as follows:

    chart_polar.png.3de039d1817d9150a57119a5750d69f1.png

    chart.reflow

    true or false

    Whether to reflow the chart to fit the width of the container div on resizing the window. Defaults to true . For example, value set to:

    false

    causes a chart to draw as follows:

    chart_reflow.png.b34a1f2362fb341bdeedf7f9a97c5e5d.png

    chart.resetZoomButton.position.x
    chart.resetZoomButton.position.y

    Value

    Affects the position of the "Reset zoom" button. This is an object that can hold the properties align, verticalAlign, x and y. For example, value set to:

    -100

    10

    causes a chart to draw as follows:

    chart_resetZoomButton_position_xy.png.51ef1fc787b470d314c862fd1b027aba.png

    chart.resetZoomButton.theme

    Object

    A collection of attributes for the button. The object takes SVG attributes like fill, stroke, stroke-width or r, the border radius. The theme also supports style, a collection of CSS properties for the text. Equivalent attributes for the hover state are given in theme.states.hover. For example, define the property as follows:

    chart.resetZoomButton.theme.fill

    Set value to:

    "red"

    causes a chart to draw as follows:

    chart_resetZoomButton_theme.png.be79374ad2a5494bf585830c4b616830.png

    chart.selectionMarkerFill

    "color"

    The background color of the marker square when selecting (zooming in on) an area of the chart. Defaults to rgba(69,114,167,0.25). For example, value set to:

    "blue"

    causes a chart to draw as follows:

    chart_selectionMarkerFill.png.3008a52281e25d832dfddd5d5e87f365.png

    chart.showAxes

    true or false

    Whether to show the axes initially. This only applies to empty charts where series are added dynamically, as axes are automatically added to cartesian series. Defaults to false. For example, value set to:

    false

    causes a chart to draw as follows:

    chart_showAxes.png.c15a35da3d582f72f974eb36f491d2bb.png

    chart.spacing

    Array

    The distance between the outer edge of the chart and the content, like title, legend, axis title or labels. The numbers in the array designate top, right, bottom and left respectively. Use the options spacingTop, spacingRight, spacingBottom and spacingLeft options for shorthand setting of one option. Defaults to [10, 10, 15, 10]. For example, value set to:

    [20, 20, 25, 20]

    causes a chart to draw as follows:

    chart_spacing.png.99547f0b9a4749dfa855bdd54bacf5b8.png

    chart.style

    CSSObject

    Additional CSS styles to apply inline to the container div. Note that since the default font styles are applied in the renderer, it is ignorant of the individual chart options and must be set globally. Defaults to:

    style: { fontFamily: '"Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif', // default font fontSize: '12px' }

    Defaults to

    {"fontFamily":""Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif","fontSize":"12px"}
    

    For example, value set to:

    'serif'

    causes a chart to draw as follows:

    chart_style.png.47cec1d1c323312b848be79c2b9b3164.png

    chart.type

    "waterfall" or "gauge" or

    "solidgauge" in Version 6.2.1

    The default series type for the chart. Use this to create a "waterfall" chart or a "gauge". For example, value set to:

    "waterfall"

    causes a chart to draw as follows:

    AccountWaterfall.png.d769438c7d3aa068fce6d4b3e8f12e15.png

    Notes:

    1. Drawing Gauges requires addtional formatting commands to create the desired appearance.

    For example, a SolidGauge, uses the following properties:

    chart.type with a value of "solidgauge"

    pane.startAngle with a value of -90
    pane.endAngle with a value of 90
    pane.background.innerRadius with a value of "60%"
    yAxis.min with a value of 0
    yAxis.minorTickInterval with a value of null
    yAxis.lineWidth with a value of 0
    yAxis.tickWidth with a value of 0
    plotOptions.solidgauge.dataLabels.borderWidth with a value of 0
    pane.background.shape with a value of "arc"
    yAxis.max with a value of 100000
    plotOptions.solidgauge.dataLabels.y with a value of -40
    colors with a value of ["skyblue"]
    yAxis.labels.y with a value of 12
    yAxis.tickPixelInterval with a value of 10000

    causes a chart to draw as follows:

    chart.width

    Value

    An explicit width for the chart. By default the width is calculated from the offset width of the containing element. For example, value set to:

    350

    causes a chart to draw as follows:

    chart_width.png.c01da1175cfd27f1407dd12c33fbcfba.png

    chart.zoomType

    "Value"

    Decides in what dimensions the user can zoom by dragging the mouse. Can be one of x, y or xy. For example, value set to:

    "xy"

    colors

    ["Color1", "Color2", "ColorN"']

    A comma seperated list of color values for chart series data. The color value may be a color name (such as 'Blue', 'LightSeaGreen', 'Purple') or hexadecimal codes enclosed in double quotes. For example, value set to:

    ["red", "DarkTurquoise", "blue", "green", "magenta", "purple", "black", "yellow", "brown", "grey", "gold", "orange", "#7cb5ec"]
    

    If there are more series in the chart than specfied in the color list, then default colors are used for the remainig chart series:

    index005.png.309fab0d02235010316201a3424e819d.png

    Notes:

    • Color Names and Hex Codes should not contain spaces.
    • Hex codes should begin with #.
    • If an unknown color name or code is defined, a black series value is returned.
    • Certain Chart Types do not work with the Colors property, for example: Gauges, Heat Maps, and Tree Maps
    • For a list of color hex codes, see: https://simple.wikipedia.org/wiki/Web_color

    legend.align

    "left" or "right" or "center"

    Sets the left-to-right alignment of a chart legend. For example, value set to:

    "left"

    causes the following chart to appear:

    index006.png.ea48587c7bea391a78f0075c6ad174dc.png

    legend.backgroundColor

    "color"

    The background color of the legend. For example, value set to:

    "blue"

    causes a chart to draw as follows:

    legend_backgroundColor.png.6864761567bd295a0bfa2cbd578e1018.png

    legend.borderColor

    color

    The color of the drawn border around the legend. Defaults to #909090. For example, value set to:

    "red"

    causes a chart to draw as follows:

    legend_borderColor.png.726d24fe32d9e906c24291563eb586aa.png

    legend.borderRadius

    Value

    The border corner radius of the legend. Defaults to 0. For example, value set to:

    10

    causes a chart to draw as follows:

    legend_borderRadius.png.afea5a600cf53bf0cd5edc4ce1aa9f6e.png

    legend.borderWidth

    Value

    The width of the drawn border around the legend. Defaults to 0. For example, value set to:

    0

    causes a chart to draw as follows:

    legend_borderWidth.png.b5fccad7ffe631785557bd2d5e89b50f.png

    legend.enabled

    true or false

    Enable or disable the legend. Defaults to true. For example, value set to:

    false

    causes a chart to draw as follows:

    legend_enabled(2).png.7e7cdc6d419d825685cd8c474e2d9202.png

    legend.floating

    true or false When the legend is floating, the plot area ignores it and is allowed to be placed below it. Defaults to false. For example, value set to:

    true

    causes a chart to draw as follows:

    legend_floating.png.159a8a48a0e7569b6edbd9e5569dbd48.png

    legend.itemDistance

    Value In a legend with horizontal layout, the itemDistance defines the pixel distance between each item. Defaults to 20. For example, value set to:

    50

    causes a chart to draw as follows:

    legend_itemDistance.png.3b19f559ddf7ecf1688562df96816acc.png

    legend.itemHiddenStyle.color

    CSSObject

    CSS styles for each legend item when the corresponding series or point is hidden. Only a subset of CSS is supported, notably those options related to text. Properties are inherited from style unless overridden here. Defaults to:

    itemHiddenStyle: { color: '#CCC'

    For example, value set to:

    "green"

    causes a chart to draw as follows:

    legend_itemHiddenStyle_color.png.f710c76015768ee77a3207acbf6ae7c6.png

    legend_itemHiddenStyle_color2.png.898c801a9910b7bd51fb3393c0bb6d14.png

    legend.itemHoverStyle.color

    CSSObject

    CSS styles for each legend item in hover mode. Only a subset of CSS is supported, notably those options related to text. Properties are inherited from style unless overridden here. Defaults to:

    itemHoverStyle: {color: '#000'}

    For example, value set to:

    "SandyBrown"

    causes a chart to draw as follows:

    legend_itemHoverStyle_color.png.fab737879d67183c71daf40e6eced189.png

    legend.itemMarginBottom

    Value

    The pixel bottom margin for each legend item. Defaults to 0. For example, value set to:

    4

    causes a chart to draw as follows:

    legend_itemMarginBottom.png.8d2428563be2320a118b17e1acac73c9.png

    legend.itemMarginTop

    Value

    The pixel top margin for each legend item. Defaults to 0. For example, value set to:

    5

    causes a chart to draw as follows:

    legend_itemMarginTop.png.d85377cd5c318c1ffc14e5cdc5305906.png

    legend.itemStyle.color

    CSSObject

    CSS styles for each legend item. Only a subset of CSS is supported, notably those options related to text.

    Defaults to

    { "color": "#333333", "cursor": "pointer", "fontSize": "12px", "fontWeight": "bold" }
    

    For example, value set to:

    "gray"

    causes a chart to draw as follows:

    legend_itemStyle_color.png.82c333611baaa25666f86dd656259881.png
     

    legend.itemStyle.fontSize

    CSSObject

    CSS styles for each legend item. Only a subset of CSS is supported, notably those options related to text.

    Defaults to

    { "color": "#333333", "cursor": "pointer", "fontSize": "12px", "fontWeight": "bold" }
    

    For example, value set to:

    "16px"

    causes a chart to draw as follows:

    legend_itemStyle_fontSize.png.bca91fa77e3891c0a67ed368f78821b0.png

    legend.itemStyle.fontWeight

    CSSObject

    CSS styles for each legend item. Only a subset of CSS is supported, notably those options related to text.

    Defaults to

    { "color": "#333333", "cursor": "pointer", "fontSize": "12px", "fontWeight": "bold" }
    

    For example, value set to:

    "bold"

    causes a chart to draw as follows:

    legend_itemStyle_fontWeight.png.8ff14d4084f1c834b2cb72000592ed41.png

    legend.itemWidth

    Value

    The width for each legend item. This is useful in a horizontal layout with many items when you want the items to align vertically. For example, value set to:

    180

    causes a chart to draw as follows:

    legend_itemWidth.png.fc6b52948560128e0673e06b75c9cac8.png

    legend.layout

    String

    The layout of the legend items. Can be one of "horizontal" or "vertical". Defaults to horizontal. For example, value set to:

    "vertical"

    causes a chart to draw as follows:

    legend_layout.png.00d51d9af4033f091cfed1714ecba9e8.png

    legend.navigation.activeColor

    "color"

    The color for the active up or down arrow in the legend page navigation. Defaults to #3E576F.

    "#9FF084"

    causes a chart to draw as follows:

    legend_navigation_activeColor.png.c9c035744bb5a013786e1300685377d6.png

    legend.navigation.animation

    true or false

    How to animate the pages when navigating up or down. A value of true applies the default navigation given in the chart.animation option. Additional options can be given as an object containing values for easing and duration. . Defaults to true. For example, value set to:

    false

    causes a chart to draw as follows:

    legend_navigation_animation.png.9bce44fbc567c4d3e90c9e48305a429d.png

    legend.navigation.arrowSize

    Value

    The pixel size of the up and down arrows in the legend paging navigation. Defaults to 12. For example, value set to:

    16

    legend.navigation.inactiveColor

    "color"

    The color of the inactive up or down arrow in the legend page navigation. Defaults to #CCC. For example, value set to:

    "red"

     

    legend.navigation.style.fontWeight

    CssObject

    Text styles for the legend page navigation. For example, value set to:

    "bold"

    causes a chart to draw as follows:

    legend_navigation_style_fontWeight.png.3f8eaa9d5350a807891332aa04322b94.png

    legend.padding

    Value

    The inner padding of the legend box. Defaults to 8. For example, value set to:

    4

    causes a chart to draw as follows:

    legend_padding.png.2905a1373a0cf0ce4f4133353e858296.png

    legend.reversed

    true or false

    Whether to reverse the order of the legend items compared to the order of the series or points as defined in the configuration object. Defaults to false. For example, value set to:

    true

    causes a chart to draw as follows:

    legend_reversed.png.3c9c6b832baa9399d57efab844a60f51.png

    legend.rtl

    true or false

    Whether to show the symbol on the right side of the text rather than the left side. This is common in Arabic and Hebraic. Defaults to false. For example, value set to:

    true

    causes a chart to draw as follows:

    legend_rtl.png.a169525ae1d4d9edb7b523f811f62111.png

    legend.shadow

    true or false | Object

    Whether to apply a drop shadow to the legend. A backgroundColor also needs to be applied for this to take effect. Since 2.3 the shadow can be an object configuration containing color, offsetX, offsetY, opacity and width. Defaults to false. For example, value set to:

    true

    causes a chart to draw as follows:

    legend_shadow.png.3124932ee909bfe5658eb8a92a7552a4.png

    legend.symbolHeight

    Value

    The pixel height of the symbol for series types that use a rectangle in the legend. Defaults to the font size of legend items. For example, value set to:

    4

    causes a chart to draw as follows:

    legend_symbolHeight.png.d414a29eac98f6f1a3fdd3676689dd73.png

    legend.symbolPadding

    Value

    The pixel padding between the legend item symbol and the legend item text. Defaults to 5. For example, value set to:

    12

    causes a chart to draw as follows:

    legend_symbolPadding.png.eeeaf9d31ecb94de161c01b99cc8b3e0.png

    legend.symbolRadius

    Value

    The border radius of the symbol for series types that use a rectangle in the legend. Defaults to 0. For example, value set to:

    10

    causes a chart to draw as follows:

    legend_symbolRadius.png.eaab4d33ed68b1b28cbbb7733b2b9873.png

    legend.symbolWidth

    Value

    The pixel width of the legend item symbol. Defaults to 16. For example, value set to:

    30

    causes a chart to draw as follows:

    legend_symbolWidth.png.73b65124078ae4df04610a637ed412e1.png

    legend.title.style.fontSize

    CSSObject

    Generic CSS styles for the legend title. Defaults to {"fontWeight":"bold"}. For example, value set to:

    20

     

    legend.useHTML

    true or false

    Whether to use HTML to render the legend item texts. Prior to 4.1.7, when using HTML, legend.navigation was disabled. For example, value set to:

    true

     

    legend.verticalAlign

    "top" or "bottom" or "center"

    Sets the top-to-bottom alignment of a chart legend. For example, value set to:

    "top"

    causes the following chart to appear:

    index007.png.389e602161a7326203683393490996f6.png

    legend.width

    Value

    The width of the legend box. For example, value set to:

    75

    causes a chart to draw as follows:

    legend_width.png.6339f5752a978fcaeb3f49d40b77d860.png

    legend.backgroundColor

    "color"

    Sets the background color of the chart legend. For example, value set to:

    "silver"

    causes the following chart to appear:

    index008.png.52fffbd937c8d76e9ae402296dbf32c9.png

    Notes:

    • Color Names and Hex Codes should not contain spaces.
    • Hex codes should begin with #.
    • If an unknown color name or code is defined, a black background is displayed.
    • For a list of color hex codes, see: https://simple.wikipedia.org/wiki/Web_color

    legend.title.text

    String

    Displays a legend tile. For example, value set to:

    Key:

    causes the following chart to appear:

    index009.png.7fc1b5dee12395a402832dea0cf00ef9.png

    legend.x

    Value

    The x offset of the legend relative to its horizontal alignment align within chart.spacingLeft and chart.spacingRight. Negative x moves it to the left, positive x moves it to the right. Defaults to 0. For example, value set to:

    -105

    causes a chart to draw as follows:

    legend_x.png.c14fb6161bb49d4026149970a4c1c5df.png

    legend.y

    Value

    The vertical offset of the legend relative to it's vertical alignment verticalAlignwithin chart.spacingTop and chart.spacingBottom. Negative y moves it up, positive y moves it down. Defaults to 0. For example, value set to:

    20

    causes a chart to draw as follows:

    legend.png.5986ffe80fe38561456619bb969670f6.png

    pane.background.backgroundColor

    "color"

    For example, value set to:

    "red"

    pane.background.shape

    String

    For example, value set to:

    "arc"

    pane.background.innerWidth

    Value

    For example, value set to:

    30

    pane.background.outerWidth

    Value

    For example, value set to:

    20

    pane.background.borderWidth

    Value

    For example, value set to:

    10

    pane.background.borderColor

    "color"

    For example, value set to:

    "blue"

    pane.endAngle

    Value

    The end angle of the polar X axis or gauge value axis, given in degrees where 0 is north. Defaults to startAngle + 360. For example, value set to:

    85

    causes a chart to draw as follows:

    pane_endAngle.png.bc72b16da7d0bf161f17304cd19936ff.png

    pane.size

    Value | String

    The size of the pane, either as a number defining pixels, or a percentage defining a percentage of the plot are. Defaults to 85%. For example, value set to:

    "70%"

    causes a chart to draw as follows:

    pane_size.png.ba8491ea00a80abff7d256004e662fcf.png

    pane.startAngle

    Value

    The start angle of the polar X axis or gauge axis, given in degrees where 0 is north. Defaults to 0. For example, value set to:

    -85

    causes a chart to draw as follows:

    pane_startAngle.png.cafcfbb46391f5047a1f6c35f3521199.png

    plotOptions.gauge.dataLabels.style.fontSize

    CSSObject

    Styles for the label. Defaults to

    {"color": "contrast", "fontSize": "11px", "fontWeight": "bold", "textShadow": "0 0 6px contrast, 0 0 3px contrast" }
    

    For example, value set to:

    "15px"

    plotoptions.guage.datalabels.style2.png.da7a870a5ddf835e1510d7a437a075b1.png

     

    plotOptions.gauge.dataLabels.y

    Value

    The y position offset of the label relative to the center of the gauge. Defaults to 15. For example, value set to:

    15

     

    plotOptions.gauge.dataLabels.enabled

    Boolean

    Enable or disable the data labels. Defaults to false. For example, value set to:

    FALSE

    causes a chart to draw as follows:

    plotoptions.guage.datalabels.enabled2.png.a68676b0faed69f75c480871301f6408.png

    plotOptions.gauge.dial.radius

    String

    The radius or length of the dial, in percentages relative to the radius of the gauge itself. Defaults to 80%. For example, value set to:

    "100%"

    causes a chart to draw as follows:

    plotOptions_gauge_dial_radius.png.0730cd9d19ccc58ce7e6fbf6af101091.png

    plotOptions.gauge.dial.borderWidth

    Value

    The width of the gauge dial border in pixels. Defaults to 0. For example, value set to:

    0

    causes a chart to draw as follows:

    plotOptions_gauge_dial_borderWidth.png.541d68cc643c5a0eaca0c47bb8892342.png

    plotOptions.gauge.dial.borderColor

    "color"

    The border color or stroke of the gauge's dial. By default, the borderWidth is 0, so this must be set in addition to a custom border color. Defaults to silver. For example, value set to:

    "black"

    causes a chart to draw as follows:

    plotOptions_gauge_dial_borderColor(1).png.e344201181bb985b5ccfaa0f01886aed.png

    plotOptions.gauge.dial.baseWidth

    Value

    The pixel width of the base of the gauge dial. The base is the part closest to the pivot, defined by baseLength. Defaults to 3. For example, value set to:

    4

    causes a chart to draw as follows:

    plotOptions_gauge_dial_baseWidth.png.322d0de6de499dd75af2fffdcf540157.png

    plotOptions.gauge.dial.topWidth

    Value

    The width of the top of the dial, closest to the perimeter. The pivot narrows in from the base to the top. Defaults to 1. For example, value set to:

    1

    causes a chart to draw as follows:

    plotOptions_gauge_dial_topWidth.png.e552bfe04d6789309d05c3f764327c74.png

    plotOptions.gauge.dial.baseLength

    String

    The length of the dial's base part, relative to the total radius or length of the dial. Defaults to 70%. For example, value set to:

    "90%"

    causes a chart to draw as follows:

    plotOptions_gauge_dial_baseLength.png.f930dc9855d18a790525eeb7cc8a80d1.png

    plotOptions.gauge.dial.rearLength

    String

    The length of the dial's rear end, the part that extends out on the other side of the pivot. Relative to the dial's length. Defaults to 10%. For example, value set to:

    "5%"

    causes a chart to draw as follows:

    plotOptions_gauge_dial_rearLength.png.83922d6691ba568b61e9435c6bf864f8.png

    plotOptions.pie.innerSize

    "Value"

    Sets the size of a hole in Pie Charts. Value can either be a pixel number or % of Pie enclosed in double quotes. For example, a value of:

    "50%"

    causes the following chart to appear:

    index010.png.86f873935f859484b81311c8a1814838.png

    plotOptions.series.dataLabels.enabled

    true or false

    Displays data values on a chart. For example, value set to:

    true

    causes a chart to draw as follows:

    index011.png.c1e3d9be42595760036d6668068bdf79.png

    plotOptions.series.dataLabels.format

    {format string}

    Applies a formatting to data labels. For example:

    {point.y:.2f} causes data values to display with 2 decimals

    {point.y:,.0f} causes data vlaues to display with thousands seperator and zero decimals and causes the chart tp draw as follows:

    index012.png.1f00c77bfec89f2d5311929a3b2b9bbf.png

    Another example for percent bar chart:

    {point.percentage:.1f} %

    causes a chart to draw as follows:

    DataLabelsPercent.png.37f8d97bfeef9f08b77a48840951e60f.png

    Notes:

    Requires the plotOptions.series.dataLabels.enabled format property to be set

    plotOptions.series.dataLabels.rotation

    Value

    Rotates data labels from 0 to 360 degrees. For example, value set to:

    270

    causes a chart to draw as follows:

    index013.png.3fa8b4d302d55778b7ddb2bb8ad2ea5e.png

    Notes:

    Requires the plotOptions.series.dataLabels.enabled format property to be set

    plotOptions.series.dataLabels.x

     

    plotOptions.series.dataLabels.y

    Value

    Defines datalabel offwet position from either X or Y axis. For example, to change the label position on the Y-Axis, use plotOptions.series.dataLabels.y with a value of:

    -20

    causes a chart to draw as follows:

    index014.png.1b037700d407563a7a198ba80db023b7.png

    plotOptions.series.pointWidth

    Value

    For example, value set to:

    17

    causes a chart to draw as follows:

    plotOptions_series_pointWidth.png.ae35b141c1bc55f7408bc5a687674a3a.png

    series.shadow

    true or false

    Whether to apply a drop shadow to the graph line. Since 2.3 the shadow can be an object configuration containing color, offsetX, offsetY, opacity and width. Defaults to false. For example, value set to:

    false

    causes a chart to draw as follows:

     

    series.borderWidth

    Value

    For example, value set to:

    0

    causes a chart to draw as follows:

    series.dataLabels.enabled

    true or false

    Displays data values on a chart. For example, value set to:

    true

    as of Version 6.3 causes a Pie chart to draw as follows:

    series.dataLabels.format

    {format string}

    Applies a formatting to data labels. For example:

    {point.name} causes the series name to be displayed

    {point.percentage:.0f} causes the data vlaue to be dispplayed as a percent of the total

    As of Version 6.3, Pie chart label formatting is supported, for example:

    {point.name}: {point.percentage:.1f}%

    causes a Pie chart to draw as follows:

    series.groupPadding

    Value

    For example, value set to:

    -4

    causes a chart to draw as follows:

    series.pointPadding

    Value For example, value set to:

    -.5

    causes a chart to draw as follows:

    subtitle.text

    title.text

    String

    Displays a Chart Title or Subtitle text string. For example, a title and subtitle values of:

    Fresh Food Sales Performance

    State Tree Map by Demographic

    causes the following to appear in a chart:

    index015.png.bcd4242361dbe913919f4af2a8530295.png

    title.text

    "Value"

    The title of the chart. To disable the title, set the text to null. Defaults to Chart title. For example, value set to:

    "Title"

    causes a chart to draw as follows:

    title.png.de52cc45b62cf447d5888ea74586d6c2.png

    tooltip.followPointer

    true or false

    Whether the tooltip should follow the mouse as it moves across columns, pie slices and other point types with an extent. By default it behaves this way for scatter, bubble and pie series by override in the plotOptions for those series types.

    For touch moves to behave the same way, followTouchMove must be true also.

    Defaults to false. For example, value set to:

    true

    causes a chart to draw as follows:

    series.followtooltip2.png.0d524f5552d9c90a4ed2cdf936099283.png

    tooltip.footerFormat

    "Value"

    A string to append to the tooltip format. Defaults to false. For example, value set to:

    </table>
    

    causes a chart to draw as follows:

    tooltip_footerFormat.png.b7b6bc8137081a2fd3174f0a159d5583.png

    tooltip.headerFormat

    "Value"

    The HTML of the tooltip header line. Variables are enclosed by curly brackets. Available variables are point.key, series.name, series.color and other members from the point and series objects. The point.key variable contains the category name, x value or datetime string depending on the type of axis. For datetime axes, the point.key date format can be set using tooltip.xDateFormat.Defaults to

    <span style="font-size: 10px">{point.key}</span><br/>. 
    

    For example, value set to:

    <table>
    

    causes a chart to draw as follows:

    tooltip.pointFormat

    "Value"

    The HTML of the point's line in the tooltip. Variables are enclosed by curly brackets. Available variables are point.x, point.y, series.name and series.color and other properties on the same form. Furthermore, point.y can be extended by the tooltip.valuePrefix and tooltip.valueSuffix variables. This can also be overridden for each series, which makes it a good hook for displaying units.Defaults to

    <span style="color:{point.color}">u25CF</span> {series.name}: <b>{point.y}</b><br/>
    

    For example, value set to:

    ""

    causes a chart to draw as follows:

    tooltip.useHTML

    true or false

    Use HTML to render the contents of the tooltip instead of SVG. Using HTML allows advanced formatting like tables and images in the tooltip. It is also recommended for rtl languages as it works around rtl bugs in early Firefox. Defaults to false. For example, value set to:

    true

    causes a chart to draw as follows:

    xAxis.alternateGridColor

    Value

    When using an alternate grid color, a band is painted across the plot area between every other grid line. For example, value set to:

    "false"

    causes a chart to draw as follows:

    xAxis_alternateGridColor.png.58c85e2fe2e140c33e73fc21a1f15d86.png

    xAxis.gridLineWidth

    Value

    The width of the grid lines extending the ticks across the plot area. Defaults to 0. For example, value set to:

    causes a chart to draw as follows:

    xAxis.labels.enabled

    true or false

    Enable or disable the axis labels. Defaults to true. For example, value set to:

    false

    causes a chart to draw as follows:

    xAxis_labels_enabled.png.765be156e935a50062803c63f44c704e.png

    xAxis.tickWidth

    Value

    The pixel width of the major tick marks. Defaults to 1. For example, value set to:

    0

    causes a chart to draw as follows:

    xAxis_tickWidth.png.57482d4239c790f9bb94674b2c800128.png

    xAxis.title.margin

    Value

    The pixel distance between the axis labels or line and the title. Defaults to 0 for horizontal axes, 10 for vertical. For example, value set to:

    16

    causes a chart to draw as follows:

    xAxis_title_margin.png.74a697c51c1f26a76255914e2d6d90ed.png

    xAxis.title.style.fontSize

    "Value"

    For example, value set to:

    "20px"

    causes a chart to draw as follows:

    xAxis.title.style.letterSpacing

    "Value"

    For example, value set to:

    "3px"

    causes a chart to draw as follows:

    xAxis.title.text

    Value

    The actual text of the axis title. It can contain basic HTML text markup like <b>, <i> and spans with style. For example, value set to:

    "title"

    causes a chart to draw as follows:

    xAxis.type

    Value

    The type of axis. Can be one of "linear", "logarithmic", "datetime" or "category". In a datetime axis, the numbers are given in milliseconds, and tick marks are placed on appropriate values like full hours or days. In a category axis, the point names of the chart's series are used for categories, if not a categories array is defined. Defaults to linear. For example, value set to:

    causes a chart to draw as follows:

    yAxis.alternateGridColor

    xAxis.alternateGridColor

    "color"

    Sets alternating bands of grid colors along either the x-axis or y-axis of the chart plot area. The color value may be a color name (such as 'Black') or a hexadecimal code enclosed in double quotes. For example, a y-axis value set to:

    "Pink"

    causes a chart to draw as follows:

    index016.png.ce5d3b256fa75703dbdebdfd435ab43c.png

    Notes:

    • Color Names and Hex Codes should not contain spaces.
    • Hex codes should begin with #.
    • If an unknown color name or code is defined, a black series value is returned.
    • For a list of color hex codes, see: https://simple.wikipedia.org/wiki/Web_color

    yAxis.gridLineWidth

    xAxis.gridLineWidth

    Value

    Sets the width of chart axis gridlines in pixels. For example, a y-axis value set to:

    0

    causes the following chart to appear:

    index017.png.9d9302ce71a4163356299c2a5d20c266.png

    yAxis.labels.distance

    Value

    Angular gauges and solid gauges only. The label's pixel distance from the perimeter of the plot area. Defaults to 15. For example, value set to:

    20

    causes a chart to draw as follows:

    yAxis.labels.rotation

    Value

    Rotation of the labels in degrees. Defaults to 0. For example, value set to:

    "auto"

    causes a chart to draw as follows:

    yAxis.lables.style.fontSize

    CSSObject

    CSS styles for the label. Use

    whiteSpace: 'nowrap'
    

    to prevent wrapping of category labels. Use

    textOverflow: 'none'
    

    to prevent ellipsis (dots). Defaults to

    {"color":"#6D869F","fontWeight":"bold"}
    

    For example, value set to:

    "12px"

    causes a chart to draw as follows:

    yAxis.min

    Value

    The minimum value of the axis. If null the min value is automatically calculated.

    If the startOnTick option is true, the min value might be rounded down.

    The automatically calculated minimum value is also affected by floor, minPadding, minRange as well as series.threshold and series.softThreshold. For example, value set to:

    0

    causes a chart to draw as follows:

    yAxis.max

    Value

    The maximum value of the axis. If null, the max value is automatically calculated. If the endOnTick option is true, the max value might be rounded up. The actual maximum value is also influenced by chart.alignTicks. For example, value set to:

    300000

    causes a chart to draw as follows:

    yAxis_max.png.802384e11b1b267bd8217f7217ef9499.png

    yAxis.minorTickPosition

    String

    The position of the minor tick marks relative to the axis line. Can be one of inside and outside. Defaults to outside. For example, value set to:

    "inside"

    causes a chart to draw as follows:

    yAxis_minorTickPosition.png.ccfad959953a0e843ebcc9190ca23926.png

    yAxis.tickPosition

    String

    The position of the major tick marks relative to the axis line. Can be one of inside and outside. Defaults to outside. For example, value set to:

    "outside"

    causes a chart to draw as follows:

    yAxis.title.margin

    Value

    The pixel distance between the axis labels and the title. Positive values are outside the axis line, negative are inside. Defaults to 40. For example, value set to:

    8

    causes a chart to draw as follows:

    yAxis_title_margin.png.3f1edb52517c98cb89273504b76309ea.png

    yAxis.title.style.fontSize

    "Value"

    CSS styles for the title. When titles are rotated they are rendered using vector graphic techniques and not all styles are applicable.
    Defaults to

    { "color": "#707070", "fontWeight": "bold" }
    

    For example, value set to:

    "18px"

    causes a chart to draw as follows:

    yAxis_title_style_fontSize(1).png.e36fb220a1ff61cdf0cb00838058a95c.png

    yAxis.title.text

    Value

    The actual text of the axis title. Horizontal texts can contain HTML, but rotated texts are painted using vector techniques and must be clean text. The Y axis title is disabled by setting the text option to null. Defaults to Values. For example, value set to:

    "Store Sales"

    causes a chart to draw as follows:

    yAxis.type

    xAxis.type

    "logarithmic" "datetime" "category"

    "logarithmic"
    or
    "datetime"

    The type of axis. Can be one of "linear", "logarithmic", "datetime" or "category". In a datetime axis, the numbers are given in milliseconds, and tick marks are placed on appropriate values like full hours or days. In a category axis, the point names of the chart's series are used for categories, if not a categories array is defined.

    For example, the y-axis value set to:

    "logarithmic"

    causes a chart to draw with a logarithmic scale y-axis as follows:

    index018.png.3ca11457cd8b3f036eeeff9a3f3011d4.png

    chart_height.png


    User Feedback

    Recommended Comments

    Hi,

    I have an adhoc diagramm with 2 parameter on the xAxis but I only want to show 1 of them, but I need both of them to have the right sorting and Data, how can i make the labels of one of the invisible?

     

    Thank you :)

    Link to comment
    Share on other sites



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...