最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - HighCharts.js TickInterval dynamic change - Stack Overflow

programmeradmin0浏览0评论

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

发布评论

评论列表(0)

  1. 暂无评论