javascript - HighCharts.js TickInterval dynamic change - Stack Overflow

I Have a system where I retrieve for Data.I'm using Highcharts, Jquery on a HTML page for the Cli

I Have a system where I retrieve for Data. I'm using Highcharts, Jquery on a HTML page for the Client Side of my app

Consider this, Sometimes I can receive 10000 points, sometimes I can receive 10 points, so very random amount of data. Value are in Unix Milliseconds timestamp, but that's not a problem, I will process as I prefer.

What I don't understand it's: How can I make a Dynamic TickInterval useful both for many points, both for small amount of points?

xAxis: {
                tickInterval: ?? ,
                categories: [<%- nDate %>]               
            },

PS. No need for the code guys, only for a correct way of solve my problem, thanks all.

I Have a system where I retrieve for Data. I'm using Highcharts, Jquery on a HTML page for the Client Side of my app

Consider this, Sometimes I can receive 10000 points, sometimes I can receive 10 points, so very random amount of data. Value are in Unix Milliseconds timestamp, but that's not a problem, I will process as I prefer.

What I don't understand it's: How can I make a Dynamic TickInterval useful both for many points, both for small amount of points?

xAxis: {
                tickInterval: ?? ,
                categories: [<%- nDate %>]               
            },

PS. No need for the code guys, only for a correct way of solve my problem, thanks all.

Share Improve this question asked Dec 6, 2013 at 1:09 alessandrobalessandrob 1,6154 gold badges20 silver badges23 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 4

In case when you have datatime type of xAxis, you don't need to use categories, you can set type as "datetime" and i.e use tickPositioner which allows to calculate ticks, dynamically.

See example: http://api.highcharts./highcharts#xAxis.tickPositioner

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745567344a4633475.html

相关推荐

  • javascript - HighCharts.js TickInterval dynamic change - Stack Overflow

    I Have a system where I retrieve for Data.I'm using Highcharts, Jquery on a HTML page for the Cli

    6小时前
    10

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信