Check documentation for the latest version of dhtmlxSuite Scatter Chart properties DHTMLX Docs

Scatter Chart properties

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

var scatterChart =  new dhtmlXChart({
    view:"scatter",
    container:"chart_container",
    yValue:"#b#",
    xValue: "#a#"
})

Mandatory properties

  • container - an id of the HTML container where you want display a chart
  • view - a chart type
  • xValue - a property of dataset that defines values along the horizontal axis
  • yValue - a property of dataset that defines values along the vertical axis

Optional properties

Look and feel

  • item - a chart point that present a separate data item
    • borderColor - the outer color of a point
    • borderWidth - the width of border line (2 is default)
    • color - the inner color of a point
    • radius - the item radius (4 by default)
  • padding - an object that defines padding of chart content:
    • top - the top padding
    • bottom - the bottom padding
    • left - the left padding
    • right - the right padding

Chart details

  • label - a template for item labels
  • tooltip - a template for item tooltips
  • legend - a template for element text in the legend block
    • width - the block width
    • align - the horizontal alignment of the block: “left”, “right” or "center"
    • valign - the vertical alignment of the block: “top”,“bottom” or "middle"
    • layout - a layout that defines text stretching in horizontal or vertical direction :"x" or "y"
    • marker - an object that defines markers in the details block
      • type - the marker type: “square” or “round”
      • width - the marker width
      • height - the marker height
    • toggle - enables/disables the possibility to hide/show a graph by clicking on the graph legend item
    • values - the legend items

Scales

  • xAxis - the horizontal scale

    • title - the scale title
    • color - the scale color
    • start - the minimum value
    • end - the maximum value
    • step - the scale step
    • template - a template for scale labels
    • lines - enables/disables vertical lines for scale units
    • lineColor - the color of lines
  • yAxis - the vertical scale

    • title - the scale title
    • color - the scale color
    • start - the minimum value
    • end - the maximum value
    • step - the scale step
    • decimalDigits - sets a fixed number of digits to the right of the decimal point for the step parameter
    • template - a template for scale labels
    • lines - enables/disables horizontal lines for scale units
    • lineColor - the color of lines

Data manipulation

  • group - groups data by a certain property
  • sort - sorts dataset
Back to top