javascript - X Axis Label Steps Interval in Kendo UI -
i new kendo-ui. not able set x axis steps in 0.1 intervals(0.1,0.2,0.3,0.4, etc.). gives 0.2 default (steps:1). body knows how make 0.1 interval?
<!doctype html> <html> <head> <meta charset="utf-8"> <title>kendo ui snippet</title> <link rel="stylesheet" href="http://cdn.kendostatic.com/2015.1.408/styles/kendo.common.min.css"> <link rel="stylesheet" href="http://cdn.kendostatic.com/2015.1.408/styles/kendo.rtl.min.css"> <link rel="stylesheet" href="http://cdn.kendostatic.com/2015.1.408/styles/kendo.default.min.css"> <link rel="stylesheet" href="http://cdn.kendostatic.com/2015.1.408/styles/kendo.dataviz.min.css"> <link rel="stylesheet" href="http://cdn.kendostatic.com/2015.1.408/styles/kendo.dataviz.default.min.css"> <link rel="stylesheet" href="http://cdn.kendostatic.com/2015.1.408/styles/kendo.mobile.all.min.css"> <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> <script src="http://cdn.kendostatic.com/2015.1.408/js/kendo.all.min.js"></script> </head> <body> <div id="chart"></div> <script> $("#chart").kendochart({ series: [ { type: "scatter", data: [[1, 2]] } ], xaxis: { labels: { steps: 1 } } }); </script> </body> </html>
looks want set majorunit: .1 property on xaxis.
http://dojo.telerik.com/onuwu/4
their documentation isn't easiest find stuff in, it's read through if you're doing lot of work charts. here's bit on valueaxis.majorunit.
$("#chart").kendochart({ series: [ { type: "scatter", data: [[1, 2]] } ], xaxis: { majorunit: .1 } });
Comments
Post a Comment