score:4
you can set the xaxis type as 'datetime' then set the pointinterval and pointstart in the plotoptions.
code example:
var chart;
$(document).ready(function () {
chart = new highcharts.chart({
"xaxis": {
"type": "datetime"
"plotoptions": {
"line": {
"pointinterval": 86400000,
"pointstart": 1282408923000
}
},
});
});
the figures you see for pointinterval and start are in millisecionds which you can generate using gettime() the interval in your case would be 86400000ms which is one day. the library displays appropriate intervals based on your data interval.
score:0
here is my ugly solution :)
i'm using array as queue. http://javascript.about.com/library/blqueue.htm if you fill point datas to the queue, you can to set datas for your chart series.
var myqueue = new array();
var mypoint = [x, y]; myqueue.push(mypoint);
chart.series[0].setdata(myqueue);
my x axis is not a datetime, it's an integer
first
var x = 0;
x value should be always increment when you need a new point. http://dl.dropbox.com/u/3482121/picture/highcharts/pm/screenshot.png
score:5
xaxis: {
categories: categoriesname,
labels: {
style: {
color: '#000',
font: '9px trebuchet ms, verdana, sans-serif'
}
},
**tickinterval: tickinterval,**// set this
tickpixelinterval: 80,
tickmarkplacement: 'on'
},
score:45
it seems like the xaxis:labels:step value is what should be used to accomplish this:
xaxis: {
categories: ['jan', 'feb', 'mar', 'apr', 'may'],
labels:{
step: 2 // this will show every second label
}
},
super late, but i figure this can help someone out.
Source: stackoverflow.com
Related Query
- Highcharts - show every other x-axis category
- how to show column and area charts with different y axis with same category and same x axis in highcharts
- Show label only every x number of steps in highcharts
- Highcharts - show every month on datetime x-axis when the parent container is small
- How can I force highcharts to show every x-axis label regardless of spacing constraints?
- How to show only specific x-axis values on datetime axis in Highcharts
- Show some specefic number on gauge highcharts axis labels
- Highcharts show plot value on x axis label
- How can I hide and show a category in highcharts
- HighCharts - Show categories in x axis intead of the value of x in Bubble Chart
- Highcharts stacked column stackLabels do not show when axis is reversed
- How To Show All Data Labels For Datetime Axis In Highcharts
- not able ot show date in x axis in highcharts
- Fourth y axis does not show labels in Highcharts
- Show special symbol for each series in category in highcharts
- Highcharts show days of month dates in X axis (from JSON file). tickInterval: not work?
- Highcharts - line chart dataLabels on every other point?
- How to make the Y Axis values not start from 0 in highcharts? How to display forcefully display the last category data on X axis in HighCharts ?
- Highcharts column only show one category
- Highcharts - xAxis showing every other year
- Highcharts - Bar chart show full label on Y Axis
- Using Highcharts to show multiple stacked bar charts next to each other
- How to show values in Highcharts tooltip other than x and y when data points are too high?
- How to show other point property in bubble highcharts using tooltip
- Highcharts - Show a string category label in the tooltip for a line graph
- Show 1st of every month on highcharts
- Highcharts - how to access category of multiple axis of the point from tooltip
- Show only two axis values in highcharts
- Highcharts - change group padding and column width on category axis
- Why code of Horizonal line(y-axis) on a single in Highcharts get applied to all other charts integrated with Webdatarocks
More Query from same tag
- Reset zoom doesn't adhere to axis extremes
- How to make the Y Axis values not start from 0 in highcharts? How to display forcefully display the last category data on X axis in HighCharts ?
- Highcharts-ng Size does fill div until Inspect Element
- DataLabels formatter in Highchart for the first category
- Symfony webpack "Highcharts is not defined"
- Is there a way to add a custom tooltip to the second level columns of the drilldown on highcharts?
- Need to add highchart colors dynamincally while colors are defeined less
- Highstock MACD Study is using sma instead of ema
- How to add custom exporting button in highCharts?
- Adding different y-axis name to all different chart in synchronous chart Highchart
- Missed colors in Highcharts donut chart rendering
- Is there a way to to always show the data along with tooltip data rather on on hover only in highcharts-stockchart?
- Format highcharts tooltip
- Highcharts while collecting JSON and changing the date by modifying the pointstart
- multiple highcharts on same page
- Animating column chart
- Highcharts : How to perform an action on Pie chart's legend click ?
- Highchart + IE = Greyscale Exports?
- Updating plotOptions bar color on a click event
- Hichcharts- hidden series does not show again after updating plots twice
- highchart xaxis and random y value
- Highchart generate array series
- Highcharts Zoom in Logarithmic Scale
- Highcharts show tooltip on load with table datasource?
- Javascript not working after renaming asp.net page
- Highcharts bar chart configuration to increase height and round edges
- Highchart - Changing label text of the yaxis programatically
- I want to capture the starting and end point of all the series in my multigraph and show it in a table using MeasureX of StockTools in Highstock
- Custom field name in ECharts
- Highcharts - is it possible to apply opacity for a specific zone?