norberttamas
Posts: 1
Joined: Wed Mar 23, 2011 2:24 am

Data from different date intervals in same xAxis

Hi,

First of all thanks for developing this great charting package. I really like it.
I have two questions:

1. I would like to show data from different date intervals in hour granularity in the same xAxis. I would like to show the two charts over each other, not near each other.
I can do it with 2 xAxis. See example: http://fiddle.jshell.net/X3jPh/770/
Is it possible to hide the second xAxis, because as you see in the example both has the same hour intervals.


2. How can I force to show last labels in xAxis? I tried to use showLastLabel: true. But as you see doesn't really work.


Thank you,

Norbert Tamas,
Software Developer
adMarketplace
hfrntt
Posts: 6393
Joined: Mon Aug 30, 2010 8:41 am
Contact: Website

Re: Data from different date intervals in same xAxis

1. You can set marginBottom and add xAxis offset larger than margin (axis will be drawn outside of the plot area)

2. You should add endOnTick too.

Check this example: http://fiddle.jshell.net/X3jPh/791/
Slawek Kolodziej
Highcharts support team

Return to “Highcharts Usage”