- Chart Gallery
- Custom Drawing
- Points Operations
Points Operations
{
"chart": {
"zIndex": 0,
"enabled": true,
"type": "scatter",
"title": {
"zIndex": 80,
"enabled": true,
"maxLength": null,
"fontSize": 17,
"fontFamily": "\"Source Sans Pro\", sans-serif",
"fontColor": "#5d1b3e",
"fontOpacity": 1,
"fontDecoration": "none",
"fontStyle": "normal",
"fontVariant": "normal",
"fontWeight": "normal",
"letterSpacing": "normal",
"textDirection": "ltr",
"textShadow": "none",
"lineHeight": "normal",
"textIndent": 0,
"vAlign": "top",
"hAlign": "center",
"wordWrap": "normal",
"wordBreak": "normal",
"textOverflow": "",
"selectable": false,
"disablePointerEvents": false,
"useHtml": false,
"width": null,
"height": null,
"align": "center",
"text": "Click on points to connect them",
"margin": {
"left": 0,
"top": 0,
"bottom": 0,
"right": 0
},
"padding": {
"left": 0,
"top": 0,
"bottom": 10,
"right": 0
},
"background": {
"zIndex": 0,
"enabled": false
}
},
"background": {
"zIndex": 0.5,
"enabled": true
},
"tooltip": {
"enabled": true,
"title": {
"zIndex": 1,
"enabled": true,
"maxLength": null,
"fontSize": 15,
"fontFamily": "\"Source Sans Pro\", sans-serif",
"fontColor": "#ffffff",
"fontOpacity": 1,
"fontDecoration": "none",
"fontStyle": "normal",
"fontVariant": "normal",
"fontWeight": "normal",
"letterSpacing": "normal",
"textDirection": "ltr",
"textShadow": "none",
"lineHeight": "normal",
"textIndent": 0,
"vAlign": "top",
"hAlign": "left",
"wordWrap": "normal",
"wordBreak": "normal",
"textOverflow": "",
"selectable": false,
"disablePointerEvents": false,
"useHtml": false,
"width": null,
"height": null,
"align": "center",
"orientation": "top",
"rotation": 0,
"text": "",
"margin": {
"left": 0,
"top": 0,
"bottom": 0,
"right": 0
},
"padding": {
"left": 0,
"top": 0,
"bottom": 0,
"right": 0
},
"background": {
"enabled": false
}
},
"separator": {
"zIndex": 1,
"enabled": true,
"fill": "#fce4ec",
"stroke": "none",
"width": "100%",
"height": 1,
"orientation": "top",
"margin": {
"left": 10,
"top": 10,
"bottom": 10,
"right": 10
}
},
"background": {
"zIndex": 0,
"enabled": true
}
},
"margin": {
"left": 0,
"top": 0,
"bottom": 0,
"right": 0
},
"padding": {
"left": 15,
"top": 20,
"bottom": 15,
"right": 25
},
"a11y": {
"enabled": true,
"mode": "chart-elements"
},
"autoRedraw": true,
"bounds": {},
"contextMenu": {
"enabled": true
},
"credits": {
"text": "AnyChart",
"url": "https://www.anychart.com/?utm_source=registered",
"alt": "AnyChart - JavaScript Charts designed to be embedded and integrated{{anychart-version}}",
"imgAlt": "AnyChart - JavaScript Charts",
"logoSrc": "https://static.anychart.com/logo.png",
"enabled": false
},
"selectRectangleMarqueeFill": {
"color": "#d3d3d3",
"opacity": 0.4
},
"selectRectangleMarqueeStroke": "#d3d3d3",
"interactivity": {
"spotRadius": 2,
"multiSelectOnClick": false,
"unselectOnClickOutOfPoint": true,
"hoverMode": "single",
"selectionMode": "single-select"
},
"defaultSeriesType": "marker",
"maxBubbleSize": "20%",
"minBubbleSize": "5%",
"maxPointWidth": "100%",
"minPointLength": 0,
"baseline": 0,
"palette": {
"type": "distinct",
"items": [
"#f8bbd0",
"#ce93d8",
"#ab47bc",
"#d81b60",
"#880e4f",
"#ffd600",
"#ff6e40",
"#03a9f4",
"#5e35b1",
"#1976d2"
]
},
"markerPalette": {
"items": [
"circle",
"diamond",
"square",
"triangle-down",
"triangle-up",
"diagonal-cross",
"pentagon",
"cross",
"v-line",
"star5",
"star4",
"trapezium",
"star7",
"star6",
"star10"
]
},
"hatchFillPalette": {
"items": [
{
"type": "backward-diagonal",
"color": "black 0.5",
"thickness": 1,
"size": 10
},
{
"type": "forward-diagonal",
"color": "black 0.5",
"thickness": 1,
"size": 10
},
{
"type": "horizontal",
"color": "black 0.5",
"thickness": 1,
"size": 10
},
{
"type": "vertical",
"color": "black 0.5",
"thickness": 1,
"size": 10
},
{
"type": "dashed-backward-diagonal",
"color": "black 0.5",
"thickness": 1,
"size": 10
},
{
"type": "grid",
"color": "black 0.5",
"thickness": 1,
"size": 10
},
{
"type": "dashed-forward-diagonal",
"color": "black 0.5",
"thickness": 1,
"size": 10
},
{
"type": "dashed-horizontal",
"color": "black 0.5",
"thickness": 1,
"size": 10
},
{
"type": "dashed-vertical",
"color": "black 0.5",
"thickness": 1,
"size": 10
},
{
"type": "diagonal-cross",
"color": "black 0.5",
"thickness": 1,
"size": 10
},
{
"type": "diagonal-brick",
"color": "black 0.5",
"thickness": 1,
"size": 10
},
{
"type": "divot",
"color": "black 0.5",
"thickness": 1,
"size": 10
},
{
"type": "horizontal-brick",
"color": "black 0.5",
"thickness": 1,
"size": 10
},
{
"type": "vertical-brick",
"color": "black 0.5",
"thickness": 1,
"size": 10
},
{
"type": "checker-board",
"color": "black 0.5",
"thickness": 1,
"size": 10
},
{
"type": "confetti",
"color": "black 0.5",
"thickness": 1,
"size": 10
},
{
"type": "plaid",
"color": "black 0.5",
"thickness": 1,
"size": 10
},
{
"type": "solid-diamond",
"color": "black 0.5",
"thickness": 1,
"size": 10
},
{
"type": "zig-zag",
"color": "black 0.5",
"thickness": 1,
"size": 10
},
{
"type": "weave",
"color": "black 0.5",
"thickness": 1,
"size": 10
},
{
"type": "percent-05",
"color": "black 0.5",
"thickness": 1,
"size": 10
},
{
"type": "percent-10",
"color": "black 0.5",
"thickness": 1,
"size": 10
},
{
"type": "percent-20",
"color": "black 0.5",
"thickness": 1,
"size": 10
},
{
"type": "percent-25",
"color": "black 0.5",
"thickness": 1,
"size": 10
},
{
"type": "percent-30",
"color": "black 0.5",
"thickness": 1,
"size": 10
},
{
"type": "percent-40",
"color": "black 0.5",
"thickness": 1,
"size": 10
},
{
"type": "percent-50",
"color": "black 0.5",
"thickness": 1,
"size": 10
},
{
"type": "percent-60",
"color": "black 0.5",
"thickness": 1,
"size": 10
},
{
"type": "percent-70",
"color": "black 0.5",
"thickness": 1,
"size": 10
},
{
"type": "percent-75",
"color": "black 0.5",
"thickness": 1,
"size": 10
},
{
"type": "percent-80",
"color": "black 0.5",
"thickness": 1,
"size": 10
},
{
"type": "percent-90",
"color": "black 0.5",
"thickness": 1,
"size": 10
}
]
},
"normal": {
"labels": {
"enabled": false
},
"minLabels": {
"enabled": null
},
"maxLabels": {
"enabled": null
}
},
"hovered": {
"labels": {
"enabled": null
},
"minLabels": {
"enabled": null
},
"maxLabels": {
"enabled": null
}
},
"selected": {
"labels": {
"enabled": null
},
"minLabels": {
"enabled": null
},
"maxLabels": {
"enabled": null
}
},
"xScale": 0,
"yScale": 1,
"series": [
{
"enabled": true,
"seriesType": "marker",
"clip": true,
"tooltip": {
"enabled": false
},
"legendItem": {
"enabled": true,
"iconStroke": "none"
},
"error": {
"mode": "both",
"xError": null,
"valueError": null,
"xErrorWidth": 10,
"valueErrorWidth": 10
},
"color": null,
"isVertical": null,
"normal": {
"hatchFill": "none",
"risingHatchFill": "none",
"fallingHatchFill": "none",
"size": 3,
"labels": {
"enabled": null
},
"minLabels": {
"enabled": null
},
"maxLabels": {
"enabled": null
},
"markers": {
"enabled": false,
"disablePointerEvents": false,
"position": "value",
"anchor": "center",
"offsetX": 0,
"offsetY": 0,
"rotation": 0,
"size": 4
},
"outlierMarkers": {
"enabled": null,
"anchor": "center",
"offsetX": 0,
"offsetY": 0,
"rotation": 0,
"size": 6
}
},
"hovered": {
"hatchFill": "none",
"risingHatchFill": "none",
"fallingHatchFill": "none",
"size": 5,
"labels": {
"enabled": null
},
"minLabels": {
"enabled": null
},
"maxLabels": {
"enabled": null
},
"markers": {
"enabled": null,
"size": 6
},
"outlierMarkers": {
"enabled": null,
"anchor": "center",
"offsetX": 0,
"offsetY": 0,
"rotation": 0,
"size": 6
}
},
"selected": {
"fill": {
"color": "#333",
"opacity": 0.85
},
"negativeFill": {
"color": "#333",
"opacity": 0.85
},
"risingFill": {
"color": "#333",
"opacity": 0.85
},
"fallingFill": {
"color": "#333",
"opacity": 0.85
},
"stroke": {
"color": "#212121",
"thickness": 1.5
},
"lowStroke": {
"color": "#333",
"opacity": 0.85
},
"highStroke": {
"color": "#333",
"opacity": 0.85
},
"lowFill": {
"color": "#333",
"opacity": 0.85
},
"highFill": {
"color": "#333",
"opacity": 0.85
},
"negativeStroke": {
"color": "#333",
"opacity": 0.85
},
"risingStroke": {
"color": "#333",
"opacity": 0.85
},
"fallingStroke": {
"color": "#333",
"opacity": 0.85
},
"hatchFill": "none",
"risingHatchFill": "none",
"fallingHatchFill": "none",
"size": 3,
"labels": {
"enabled": null
},
"minLabels": {
"enabled": null
},
"maxLabels": {
"enabled": null
},
"markers": {
"enabled": null,
"size": 6
},
"outlierMarkers": {
"enabled": null,
"anchor": "center",
"offsetX": 0,
"offsetY": 0,
"rotation": 0,
"size": 6
}
},
"a11y": {
"enabled": false,
"titleFormat": "Series named {%SeriesName} with {%SeriesPointsCount} points. Min value is {%SeriesYMin}, max value is {%SeriesYMax}"
},
"data": [
[
1,
5.123323027595958
],
[
2,
6.442944445782903
],
[
3,
10.88333240084814
],
[
4,
2.4839116654415085
],
[
5,
5.775576157240213
],
[
6,
9.578034062610353
],
[
7,
3.7356778449199726
],
[
8,
9.990831951297686
],
[
9,
10.8674385097132
],
[
10,
10.678678426267663
],
[
11,
3.4724330943401607
],
[
12,
1.8541534716069243
],
[
13,
9.930017715561505
],
[
14,
7.344331890218918
],
[
15,
9.235630486830221
],
[
16,
10.725920596479437
],
[
17,
10.77744557144765
],
[
18,
1.015951408390138
],
[
19,
3.7030405359827925
],
[
20,
1.2540937245651698
],
[
21,
6.122759046921432
],
[
22,
7.334703152804744
],
[
23,
5.654149218311103
],
[
24,
1.3878293786639908
],
[
25,
10.094315274132708
],
[
26,
6.353246220444481
],
[
27,
9.210218790732448
],
[
28,
10.18106280347924
],
[
29,
1.7298602700817702
],
[
30,
7.885505066649205
],
[
31,
6.131420054076006
],
[
32,
2.5742255530016735
],
[
33,
5.995658197190121
],
[
34,
7.779062720674718
],
[
35,
9.80743169721904
],
[
36,
8.117581343168249
],
[
37,
8.2623371270309
],
[
38,
2.0671580794958224
],
[
39,
8.348623418445793
],
[
40,
3.830258529765519
],
[
41,
10.742664159319776
],
[
42,
3.2663158695144414
],
[
43,
8.147870611245846
],
[
44,
4.425748177295567
],
[
45,
5.078481836013379
],
[
46,
3.86591942662765
],
[
47,
7.1233648562607375
],
[
48,
1.9691748643670106
],
[
49,
10.164597310897891
],
[
50,
6.706580133488797
],
[
51,
8.634584586949204
],
[
52,
6.589953504947866
],
[
53,
5.007543525651906
],
[
54,
9.59981085017888
],
[
55,
3.8774606580835416
],
[
56,
4.425318907218358
],
[
57,
3.643230397719787
],
[
58,
6.861092219452937
],
[
59,
7.058725151252389
],
[
60,
9.590845102977372
],
[
61,
2.9983976514426693
],
[
62,
3.613030272203909
],
[
63,
9.38121492072631
],
[
64,
1.1019401427715527
],
[
65,
1.0760767882783675
],
[
66,
10.696987845539748
],
[
67,
3.7600488038390814
],
[
68,
6.209026615190426
],
[
69,
7.237616969139623
],
[
70,
9.29174138001605
],
[
71,
7.608992679294738
],
[
72,
6.21222349304688
],
[
73,
5.957800296633977
],
[
74,
5.043089877906545
],
[
75,
6.564338672443519
],
[
76,
10.479847081782749
],
[
77,
10.79792776544615
],
[
78,
7.90603103822996
],
[
79,
6.699713062229598
],
[
80,
1.1328875229963122
],
[
81,
4.935335828893141
],
[
82,
7.111807803065236
],
[
83,
9.662169152099896
],
[
84,
4.41339360377045
],
[
85,
6.030541468478105
],
[
86,
1.9752152085534016
],
[
87,
2.4085289658692735
],
[
88,
8.213353534765872
],
[
89,
5.502633735023367
],
[
90,
6.514173837233307
],
[
91,
2.222177600212966
],
[
92,
2.862282444725949
],
[
93,
5.460081173028829
],
[
94,
3.7386583183588487
],
[
95,
7.203727325794397
],
[
96,
7.4089888188246285
],
[
97,
8.790263880434985
],
[
98,
6.279700627262205
],
[
99,
10.713456299749996
],
[
100,
7.899989615793263
]
],
"xScale": 0,
"yScale": 1
}
],
"isVertical": false,
"xAxes": [
{
"enabled": true,
"width": null,
"drawFirstLabel": true,
"drawLastLabel": true,
"overlapMode": "no-overlap",
"stroke": "#d7cacc",
"staggerMode": false,
"staggerMaxLines": 2,
"staggerLines": null,
"orientation": "bottom",
"value": null,
"title": {
"zIndex": 35,
"enabled": false,
"maxLength": null,
"fontSize": 15,
"fontFamily": "\"Source Sans Pro\", sans-serif",
"fontColor": "#545f69",
"fontOpacity": 1,
"fontDecoration": "none",
"fontStyle": "normal",
"fontVariant": "normal",
"fontWeight": "normal",
"letterSpacing": "normal",
"textDirection": "ltr",
"textShadow": "none",
"lineHeight": "normal",
"textIndent": 0,
"vAlign": "top",
"hAlign": "center",
"wordWrap": "normal",
"wordBreak": "normal",
"textOverflow": "",
"selectable": false,
"disablePointerEvents": false,
"useHtml": false,
"width": null,
"height": null,
"align": "center",
"text": "X-Axis",
"margin": {
"left": 0,
"top": 0,
"bottom": 0,
"right": 0
},
"padding": {
"left": 5,
"top": 5,
"bottom": 5,
"right": 5
},
"background": {
"enabled": false
}
},
"labels": {
"zIndex": 35,
"enabled": true
},
"minorLabels": {
"zIndex": 35,
"enabled": false
},
"ticks": {
"zIndex": 35,
"enabled": true,
"stroke": "#d7cacc",
"length": 6,
"position": "outside"
},
"minorTicks": {
"zIndex": 35,
"enabled": false,
"stroke": "#f1eaeb",
"length": 4,
"position": "outside"
},
"scale": 0
}
],
"yAxes": [
{
"enabled": true,
"width": null,
"drawFirstLabel": true,
"drawLastLabel": true,
"overlapMode": "no-overlap",
"stroke": "#d7cacc",
"staggerMode": false,
"staggerMaxLines": 2,
"staggerLines": null,
"orientation": "left",
"value": null,
"title": {
"zIndex": 35,
"enabled": false,
"maxLength": null,
"fontSize": 15,
"fontFamily": "\"Source Sans Pro\", sans-serif",
"fontColor": "#545f69",
"fontOpacity": 1,
"fontDecoration": "none",
"fontStyle": "normal",
"fontVariant": "normal",
"fontWeight": "normal",
"letterSpacing": "normal",
"textDirection": "ltr",
"textShadow": "none",
"lineHeight": "normal",
"textIndent": 0,
"vAlign": "top",
"hAlign": "center",
"wordWrap": "normal",
"wordBreak": "normal",
"textOverflow": "",
"selectable": false,
"disablePointerEvents": false,
"useHtml": false,
"width": null,
"height": null,
"align": "center",
"text": "Y-Axis",
"margin": {
"left": 0,
"top": 0,
"bottom": 0,
"right": 0
},
"padding": {
"left": 5,
"top": 5,
"bottom": 5,
"right": 5
},
"background": {
"enabled": false
}
},
"labels": {
"zIndex": 35,
"enabled": true
},
"minorLabels": {
"zIndex": 35,
"enabled": false
},
"ticks": {
"zIndex": 35,
"enabled": true,
"stroke": "#d7cacc",
"length": 6,
"position": "outside"
},
"minorTicks": {
"zIndex": 35,
"enabled": false,
"stroke": "#f1eaeb",
"length": 4,
"position": "outside"
},
"scale": 1
}
],
"crosshair": {
"zIndex": 41,
"enabled": false,
"xStroke": "#969EA5",
"yStroke": "#969EA5",
"displayMode": "float",
"xLabels": [
{
"enabled": true,
"fontSize": 12,
"fontFamily": "\"Source Sans Pro\", sans-serif",
"fontColor": "#ffffff",
"fontOpacity": 1,
"fontDecoration": "none",
"fontStyle": "normal",
"fontVariant": "normal",
"fontWeight": 400,
"letterSpacing": "normal",
"textDirection": "ltr",
"textShadow": "none",
"lineHeight": "normal",
"textIndent": 0,
"vAlign": "top",
"hAlign": "start",
"wordWrap": "normal",
"wordBreak": "normal",
"textOverflow": "",
"selectable": false,
"disablePointerEvents": true,
"useHtml": false,
"text": "Label text",
"width": null,
"height": null,
"anchor": null,
"offsetX": 0,
"offsetY": 0,
"rotation": 0,
"adjustFontSize": {
"width": false,
"height": false
},
"minFontSize": 8,
"maxFontSize": 16,
"background": {
"zIndex": 0,
"enabled": true
},
"padding": {
"left": 10,
"top": 5,
"bottom": 5,
"right": 10
},
"axisIndex": 0
}
],
"yLabels": [
{
"enabled": true,
"fontSize": 12,
"fontFamily": "\"Source Sans Pro\", sans-serif",
"fontColor": "#ffffff",
"fontOpacity": 1,
"fontDecoration": "none",
"fontStyle": "normal",
"fontVariant": "normal",
"fontWeight": 400,
"letterSpacing": "normal",
"textDirection": "ltr",
"textShadow": "none",
"lineHeight": "normal",
"textIndent": 0,
"vAlign": "top",
"hAlign": "start",
"wordWrap": "normal",
"wordBreak": "normal",
"textOverflow": "",
"selectable": false,
"disablePointerEvents": true,
"useHtml": false,
"text": "Label text",
"width": null,
"height": null,
"anchor": null,
"offsetX": 0,
"offsetY": 0,
"rotation": 0,
"adjustFontSize": {
"width": false,
"height": false
},
"minFontSize": 8,
"maxFontSize": 16,
"background": {
"zIndex": 0,
"enabled": true
},
"padding": {
"left": 10,
"top": 5,
"bottom": 5,
"right": 10
},
"axisIndex": 0
}
]
},
"scales": [
{
"type": "linear",
"inverted": false,
"maximum": null,
"minimum": null,
"minimumGap": 0.1,
"maximumGap": 0.1,
"softMinimum": null,
"softMaximum": null,
"alignMinimum": true,
"alignMaximum": true,
"maxTicksCount": 1000,
"ticks": {
"mode": "linear",
"base": 0,
"allowFractional": true,
"minCount": 4,
"maxCount": 6
},
"minorTicks": {
"mode": "linear",
"base": 0,
"allowFractional": true,
"count": 5
},
"stackMode": "none",
"stackDirection": "direct",
"stickToZero": true,
"comparisonMode": "none"
},
{
"type": "linear",
"inverted": false,
"maximum": null,
"minimum": null,
"minimumGap": 0.1,
"maximumGap": 0.1,
"softMinimum": null,
"softMaximum": null,
"alignMinimum": true,
"alignMaximum": true,
"maxTicksCount": 1000,
"ticks": {
"mode": "linear",
"base": 0,
"allowFractional": true,
"minCount": 4,
"maxCount": 6
},
"minorTicks": {
"mode": "linear",
"base": 0,
"allowFractional": true,
"count": 5
},
"stackMode": "none",
"stackDirection": "direct",
"stickToZero": true,
"comparisonMode": "none"
}
],
"crossing": {
"stroke": "none"
},
"quarters": {},
"yCrossAxes": [
0
],
"xCrossAxes": [
0
]
}
}
<html>
<head>
<script src="https://cdn.anychart.com/releases/v8/js/anychart-base.min.js"></script>
<script src="https://cdn.anychart.com/releases/v8/js/anychart-ui.min.js"></script>
<script src="https://cdn.anychart.com/releases/v8/js/anychart-exports.min.js"></script>
<script src="https://cdn.anychart.com/releases/v8/themes/light_glamour.min.js"></script>
<link href="https://cdn.anychart.com/releases/v8/css/anychart-ui.min.css" type="text/css" rel="stylesheet">
<link href="https://cdn.anychart.com/releases/v8/fonts/css/anychart-font.min.css" type="text/css" rel="stylesheet">
<style type="text/css">
html,
body,
#container {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<div id="container"></div>
<script>
var path;
var selectedPoints = [];
var series;
anychart.onDocumentReady(function () {
// set chart theme
anychart.theme('lightGlamour');
// create stage
var stage = anychart.graphics.create('container');
// generate random data of 100 points (from 1 to 100 both inclusive) with values [1..10]
var data = [];
for (var i = 1, pointsCount = 101; i < pointsCount; i++) {
data.push([i, Math.random() * 10 + 1]);
}
// create scatter chart
var chart = anychart.scatter();
chart.title('Click on points to connect them');
// creating marker series with some settings
series = chart.marker(data);
series.size(3).tooltip(false);
series.hovered().size(5);
series.selected().size(3);
// change interactivity mode
chart.interactivity().selectionMode('single-select');
// set container
chart.container(stage);
chart.draw();
// creating path and set first point to (pixX, pixY) coords of firstSelectedPoint
path = stage.path().fill(null).stroke('#cecece');
// The first selected points
selectedPoints = [10, 24, 77];
chart.listen('pointsselect', function (e) {
// get point data
var point = e.point;
// we need this condition because if we select next point
// there will be another pointsselect event of deselecting
// previous point
if (!point.selected()) {
return true;
}
// add point to selected
selectedPoints.push(point.getIndex());
// get point's series
var pointSeries = point.getSeries();
// select previously selected points
pointSeries.select(selectedPoints);
connectPoint(point);
});
chart.listen('chartDraw', function () {
// redraw line on chart first draw and chart resize
path.zIndex(100000);
path.clear();
for (var j = 0; j < selectedPoints.length; j++) {
// Get the data iterator and select it to firstSelectedPoint
var iterator = series.data().getIterator();
iterator.select(selectedPoints[j]);
connectPoint(iterator, j === 0);
}
});
});
// helper function to draw line.
function connectPoint(pointData, isMoveTo) {
// get the pix coords of selected point
var pixX = series.transformX(pointData.get('x'));
var pixY = series.transformY(pointData.get('value'));
if (isMoveTo) path.moveTo(pixX, pixY);
else {
// draw segment
path.lineTo(pixX, pixY);
}
}
</script>
</body>
</html>
You can use AnyChart not only for creating basic charts, maps or gantts, but also for drawing pictures, customizing your data representation. That’s how our stage works: you can create any element you need, making it useful or decorative.
Here you can see a stage with a scatter chart. Its points are interactive: you can click at the points to connect them. There are no numeric values demonstrated in this chart so there are no tooltips enabled; the only purpose of this sample is to show what you can create with our component besides charts. This example might be considered as a point operation map (operation graph): so if a point means an operation, connections between them create a path, and the points, when being connected, become a graph, which vertexes are those points, or operations.