xAxis.labels.step ignored after zoom reset #561

Closed
ghost opened this Issue Nov 10, 2011 · 5 comments

Comments

Projects
None yet
1 participant
@ghost

ghost commented Nov 10, 2011

This was working in the last Highstock beta and seems broken now. The step property doesn't seem to be documented anymore; has it been deprecated, and if so, what's the alternative?

  xAxis:
    min:              @dayStart.getTime()
    max:              @dayEnd.getTime()
    lineColor:        "#6e665d"
    lineWidth:        2
    type:             "datetime"
    tickColor:        "#6e665d"
    startOnTick:      true
    endOnTick:        true
    tickInterval:     60 * 60 * 1000
    minorTickColor:   "black"
    maxPadding:       0
    labels:
      y:              20 #Where should the tick labels fall
      step:           3
      formatter:      () ->
        return MyApp.timestampToTimeDisplay(@value)

Results in:

Example

@ghost

ghost commented Nov 10, 2011

Seems to be happening because axis.setExtremes is getting called twice--once for X and once for Y. There's a new property called zoomEnabled that I'm not seeing any documentation for that prevents the undesired behavior for now, but I'm not sure why it should ever happen regardless.

Collaborator

TorsteinHonsi commented Nov 11, 2011

See http://jsfiddle.net/highcharts/avYKB/. Can you change that fiddle to demonstrate your issue?

@ghost

ghost commented Nov 11, 2011

Doesn't seem like it, since that's not running Highstock.

TypeError: 'undefined' is not a constructor (evaluating 'new Highcharts.StockChart')

Collaborator

TorsteinHonsi commented Nov 15, 2011

Collaborator

TorsteinHonsi commented Nov 15, 2011

Responsible commit: c4f6b4a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment