anychart.onDocumentReady(function () {
{x: 0.6, value: 22, valueError: 8, xError: 0.2},
{x: 1.7, value: 55, xLowerError: "6%", xUpperError: "10%"},
{x: 2.3, value: 50, valueError: "12%"},
{x: 2.6, value: 76, valueUpperError: 7},
{x: 4, value: 88, valueLowerError: 6, valueUpperError: 4, xError: 0.4},
var chart = anychart.scatter();
var series = chart.marker(data);
chart.tooltip().format(function() {
if (this.xUpperError != 0)
output = "xUpperError: " + this.xUpperError;
if (this.xLowerError != 0)
output = output + "\nxUpperError: " + this.xLowerError;
if (this.valueLowerError != 0)
output = output + "\nxUpperError: " + this.valueLowerError;
if (this.valueUpperError != 0)
output = output + "\nxUpperError: " + this.valueUpperError;
if (output == "") return "NO ERRORS";
chart.xGrid().enabled(true);
chart.yGrid().enabled(true);
chart.xMinorGrid().enabled(true);
chart.yMinorGrid().enabled(true);
chart.title("Error Chart: Labels and Tooltips (Formatting Functions)");
chart.container("container");