Menu

Setting Tick Positions for Date Time Axis

Dave
2013-04-24
2013-04-24
  • Dave

    Dave - 2013-04-24

    Hi,

    I am currently trying to generate a line chart with x-axis that uses date time. The format is mm/yy and can span 10-20 years or more. The problem I ran into is that due to how Highcharts adjusts the tick positioning for date time, it will change to year format and that defaults to January. I need it to be positioned at a different month. I noticed that Highcharts has a tickPositioner but I am unable to find the equivalent in GWT Highcharts. I was wondering if maybe I am not looking in the right classes, or if there is another way to customize the axis to the way I want it to appear.

    Currently, I have tried setting the extremes and tick interval to 1 year, but it won't start the first tick at the Min.

    Anyways, any help is much appreciated. Thanks.

     
  • Shawn Quinn

    Shawn Quinn - 2013-04-24

    Unfortunately, GWT Highcharts doesn't currently directly support the "tickPositioner" call back functionality. (If anyone is interested either in feature sponsorship or contributing this feature, let me know!) In the meantime, you'd have to resort to JSNI to pull this off (and potentially enhance the BaseChart.nativeRenderChart() method...)

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.