Skip to content

Instantly share code, notes, and snippets.

@shacheeswadia
Created Nov 21, 2021
Embed
What would you like to do?
// create surface chart
var chart = anychart.surface();
// enable markers and set data for them
chart.markers().enabled(true).data(result);
// set x axis labels format
chart
.xAxis()
.labels()
.format(function () {
return data.x[Math.round(this.value)];
});
// set x axis scale maximum
chart.xScale().maximum(data.x.length - 1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment