<div id="container"></div>
html, body, #container {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
anychart.onDocumentReady(function () {
var chart = anychart.line([
{x: 'A1', value: 1.1},
{x: 'A2', value: 1.4},
{x: 'A3', value: 1.2},
{x: 'A4', value: 1.95},
]);
chart.title('Trying to get a tick');
chart.container('container');
chart.draw();
var scale = chart.yScale();
// Trying to get a tick.
var position = scale.inverseTransform(0.39);
// Draw a red marker on the found tick.
chart.lineMarker({value: position});
});