anychart.onDocumentReady(function() {
stage = anychart.graphics.create("container");
var data = anychart.data.set([
chart = anychart.scatter();
var series = chart.marker(data);
var error = series.error();
error.valueUpperError(5);
error.valueLowerError(8);
chart.grid(0).axis(chart.xAxis());
chart.grid(1).axis(chart.yAxis());
chart.minorGrid(0).axis(chart.xAxis());
chart.minorGrid(1).axis(chart.yAxis());
chart.title("Error Chart: Error Mode");
createLabel("None", 50, function() {
createLabel("Value", 110, function() {
createLabel("X", 173, function() {
createLabel("Both", 211, function() {
function createLabel(text, offset, action){
var label = anychart.standalones.label();
label.background({fill: "#1976d2"});
label.parentBounds(offset, 5, 130, 100);
label.listen("click", action);
label.listen("mouseOver", function(){
label.background().fill("#1976d2 0.5");
document.body.style.cursor = "pointer";
label.listen("mouseOut", function(){
label.background().fill("#1976d2");
document.body.style.cursor = "auto";