{"action":"closed","issue":{"url":"https://api.github.com/repos/highcharts/highcharts/issues/8514","repository_url":"https://api.github.com/repos/highcharts/highcharts","labels_url":"https://api.github.com/repos/highcharts/highcharts/issues/8514/labels{/name}","comments_url":"https://api.github.com/repos/highcharts/highcharts/issues/8514/comments","events_url":"https://api.github.com/repos/highcharts/highcharts/issues/8514/events","html_url":"https://github.com/highcharts/highcharts/issues/8514","id":334812121,"node_id":"MDU6SXNzdWUzMzQ4MTIxMjE=","number":8514,"title":"Reset zoom button does not appear when zooming (x or xy) stock chart ","user":{"login":"kiren-aur","id":19170312,"node_id":"MDQ6VXNlcjE5MTcwMzEy","avatar_url":"https://avatars1.githubusercontent.com/u/19170312?v=4","gravatar_id":"","url":"https://api.github.com/users/kiren-aur","html_url":"https://github.com/kiren-aur","followers_url":"https://api.github.com/users/kiren-aur/followers","following_url":"https://api.github.com/users/kiren-aur/following{/other_user}","gists_url":"https://api.github.com/users/kiren-aur/gists{/gist_id}","starred_url":"https://api.github.com/users/kiren-aur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiren-aur/subscriptions","organizations_url":"https://api.github.com/users/kiren-aur/orgs","repos_url":"https://api.github.com/users/kiren-aur/repos","events_url":"https://api.github.com/users/kiren-aur/events{/privacy}","received_events_url":"https://api.github.com/users/kiren-aur/received_events","type":"User","site_admin":false},"labels":[{"id":132809,"node_id":"MDU6TGFiZWwxMzI4MDk=","url":"https://api.github.com/repos/highcharts/highcharts/labels/Highstock","name":"Highstock","color":"e102d8","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-06-22T09:37:24Z","updated_at":"2018-06-29T10:39:17Z","closed_at":"2018-06-29T10:39:17Z","author_association":"NONE","body":"#### Expected behaviour\r\nWhen we zoom a stock chart, we expect a reset zoom button to appear.\r\n\r\n#### Actual behaviour\r\nWhen we zoom in a stock chart, with zoomType = 'x' or 'xy', the reset zoom button does not appear.\r\nThis weird behavior is only affecting stock charts and only these zoom types.\r\nThe documentation example shows this issue : https://api.highcharts.com/highstock/chart.zoomType\r\nCheck out 'x' and 'xy' links below (I took them directly from the doc.)\r\nIt seems that the same issue appeared in 2012, in this thread : https://github.com/highcharts/highcharts/issues/979 ; one of the proposed workaround is still a working solution. Here it is, for information :  \r\n\r\n```\r\n(function(H) {\r\n     H.wrap(H.Axis.prototype, 'zoom', function(proceed, newMin, newMax) {\r\n       var ret;\r\n\r\n       this.chart.options.rangeSelector.enabled = false;\r\n       this.chart.options.navigator.enabled = false;\r\n       ret = proceed.call(this, newMin, newMax);\r\n       this.chart.options.rangeSelector.enabled = true;\r\n       this.chart.options.navigator.enabled = false;\r\n\r\n       return ret;\r\n     });\r\n})(Highcharts);\r\n```\r\n#### Live demo with steps to reproduce\r\n[zoomType : 'x'](http://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/stock/chart/zoomtype-x/)\r\n[zoomType : 'xy'](http://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/stock/chart/zoomtype-xy/)\r\nSteps : \r\n- Zoom in the charts\r\n- \"Try\" to reset the zoom\r\n\r\n#### Product version\r\nHighstock JS v6.1.0 (2018-04-13)\r\n\r\n#### Affected browser(s)\r\nChrome and Firefox\r\n\r\n"}}
{"actor":{"display_login":"kiren-aur"}}