admin管理员组

文章数量:1023085

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

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

本文标签: javascriptHighChartsjs TickInterval dynamic changeStack Overflow