export default chart => {
  if (chart.responsive) {

    const {
      width,
      height
    } = chart

    // preserve original values
    chart._originWidth = width
    chart._originHeight = height

    // setup height calculation
    const heightRatio = height / width
    const xTicksRatio = chart.xTicks / width
    const yTicksRatio = chart.yTicks / height
    chart._getHeight = width => parseInt(width * heightRatio)

    // show at least two ticks
    chart._getXTicks = width => {
      const ticks = parseInt(width * xTicksRatio)
      return ticks < 2 ? 2 : ticks > chart.xTicks ? chart.xTicks : ticks
    }
    chart._getYTicks = width => {
      const ticks = parseInt(width * yTicksRatio)
      return ticks < 2 ? 2 : ticks > chart.yTicks ? chart.yTicks : ticks
    }

    // add event listener
    window.addEventListener('resize', () => {
      if (chart.updateDimensions(chart)) {
        chart.resize()
      }
    })
  }
}

@@ -630,37 +630,38 @@
 rt._getYTicks = 
-width
+height
  =%3E %7B%0A      cons

Fix computation of ticks for yAxis on responsive