-
-
Save shacheeswadia/3578292cc340687f75915127208b5445 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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