Scatter chart

Use a scatter or XY chart to compare multiple data sets.

TIP: Hovering over a scatter chart displays more precise data.

Best practices

  • Limit the comparison to two or three data sets.

Example: scatter chart

Shortcode


                [amcharts
  id="serial"
  data-type="time"

  data-series0="WM_SAN_DESR20180627_C5_SL-READABILITY"
  data-series0label="Individual speeches"

  data-series1="WM_SAN_DESR20180627_C5_SL-YEARLY-AVG"
  data-series1label="Yearly averages"

  data-series0type="scatter"
  data-series1type="step"

  data-charttitle="Title"
  data-subtitle=""
  data-bottomaxistitle=""
  data-rightaxistitle="GFI"
  data-chartunit=""
]
            

Example: XY chart

Shortcode


                [amcharts
  id="xy"
  data-datasource="wp-content/uploads/2019/03/c9c.txt"
  data-postprocessor="blankPostProcessor"
  data-charttitle="XY Scatter chart"
  data-earlycallback="ECB_ADD_TrendLine"
]
            

JavaScript


function ECB_ADD_TrendLine(chartSettings) {
  chartSettings.legend = null;
  chartSettings.trendLines = [
		{
			"initialValue": -2.4698,
			"initialXValue": 4,
			"finalValue": -23.3662,
			"finalXValue": 21
		}
	];
}