Highcharts responsive resize. mdh8036 Posts: 17 Joined: Fri Nov .
Highcharts responsive resize Come join us building the future of Highcharts. Im trying to make my Pie Chart fully responsive so it can be viewed on smaller devices. Starter project for React apps that exports to the create-react-app CLI. In Highcharts, you have the ability to add responsive rules to your chart. Later, when i resize the window chart height is set as expected. jsx. highcharts-data-labels,. reflow option. Just don't set the height property in HighCharts and it will handle it dynamically for you so long as you set a height on the chart's containing element. chart. charts, calendars etc. new Prompt, run, edit, and deploy full-stack web apps. js'; const ResponsiveReactGridLayout It will be much simpler if HighCharts will resize properly according to CSS rules of the parent element. Normally it I discovered this because I am trying to get responsive to work in my application, which is in Angular 9 and uses "highcharts-angular": "2. How do I run responsive on initial load? Configuration:: How the dashboard layout engine makes your dashboard responsive. setSize(w,h), see reference. 3; NEW Try bolt. Highcharts generate a svg and set inline styles without using class names. In both of these demos, he most consistent way I could find to reproduce the issue was to resize the preview pane down to as narrow as it could go, and then resize it out to as far as it could go. center to position the series which I've added in Highcharts. The width of each column to be fixed Currently, the width of each column changes in each graph depending on the number of columns that are present. When dealing with the resizer module, things get more complicated, which lets you change the width and height of the row and cell. This allows for preserving the aspect ratio across responsive sizes. I have not been able to get anything to work and am wondering if maybe chart. It lets you define a set of rules, each with a condition, for example maxWidth: 500, and a separate set of chartOptions that is applied on top of the general chart options. Hi, I am using Stack Column Charts and we would like - 1. Hello Ivan28, welcome to the official highcharts forum, and thanks for contacting us with your question! Everything is working as expected, and I see no bug here. Highcharts Team Lead. 0 to use the responsive option. Achieved fairly easily Using chart. For example when you will use separator to resize Result window, chart will resize and will work. I'd like to have a shorter version of the title when the graph is viewed on the phones etc. Allows setting a set of rules to apply for different screen or chart sizes. Created with Highcharts 12. For example, A use case for this is when a jQuery plugin uses window resize events to be responsive, but you have a collapsing sidebar. resize event takes place. 480px) then call [Adding a solution for react-highcharts here, because this pops up as first SO solution when searching for "react-highcharts shrink" on Google]. The module allows controlling multiple axes within one config. Re: Change FontSize on Chart Redraw. So my chart exceeds the screen. If I reduce the height and width of the div, the chart is being truncated. Also back to your question using media queries. Fri May 07, 2021 10:13 am. NET; Highslide JS - The JavaScript Image and Media Viewer Highslide JS Usage Highslide Editor Highslide FAQ News How to reposition only a right positioned legend as bottom positioned legend, when the browser is resized in case of a responsive web design? I need the chart to stay at same location & legend to stack beneath the chart. m Site Moderator Posts: 1433 i want to make my charts responsive when i try to resize them. 0" to integrate highcharts as an Angular component. This Learn how Highcharts started as Torstein's humble quest for a simple charting tool. It works automatically, except the situation, when the chart's container is resized without a window resize event, then reflow() function should be called explicitly. Each grid will be draggable, responsive and resizable (widget in grid will resize too). I'm required to make this chart responsive so I'm calculating label width on first draw and on resize. Create interactive charts with Thanks for the reply I understood that i am able to resize the graph based on the window resize event but if i use the gridster widget resize option the highchart is not being responsive. Generally, each row is placed in columns, and cells are placed in rows. on the phone sideways on and on the tablet sized devices it looks pretty bad and fills the full width. Each tab page has a Highchart. Press. It can be a fixed number or This awesome plugin (Highcharts) is responsive, but it only resize when the window resize. When the grid is resized, the chart doesnt seem to resize accordingly. Product version. But what I need is to have a chart that would take up all available space I saw some examples of charts with responsive behavior which changes when a button is clicked. Here are the links to both functions in the API documentation so you can see which is best suited for your By default, the chart reflows automatically to its container following a window. I tried on Chrome and Safari. Create interactive charts with Highchart Resize with flex layout. Delete. Highcharts ® Stock. Resize highchart based on container changing NOT window You could just make a set of responsive rules. I currently have a x-tabbed page. 2 How to make a pie chart from highcharts responsive. Display tasks, events, and resources along a timeline. When I open and close the menu I would like for my stock chart to automatically resize to fit the available space. resize event, there is a reflow() function in Highcharts, which is being called every time window. reflow() would work. Now, if i resize my whole window i want this chart to adjusts its window. Create interactive charts with Hi there, I have a multiple line series chart which when the page is resized the chart legends overlapped each other (see attached image). Contact Us. Basically, can we alter the below parameters for legend based on browser width resize? legend: {layout: 'vertical', align Hi, i'm trying to set a image into the background like a watermark. 7 Unable to make my highchart responsive in angular 5. I have 2 side-by-side charts on my page, and would like to have them resized when window is resized: their container is set to 50% width, which, according to examples, should be enough. Hot Network Questions Is it true that if he plays long enough there will be a series of consecutive days during which he will play exactly 23 games? When you set fixed width for points (using pointWidth) then you will lost responsive columns (just the same way you set width 30px for div, then it won't be responsive anymore, right? If you want to set different width in dependance on threshold (like media queries), then I suggest to attach window. Problem: Currently, I am missing something in the css because the chart is overflowing within the demo container below. It will trigger Highcharts to redraw to the new, smaller area. Create stock or general timeline charts. If I resize the page, nothing seems to go wrong, but if I refresh the page when the screen has width close to or smaller than the rule, then the dataLabels are not shown, despite the fact that the browser "sees" them (they can be inspectable). Hi there, I have a graph with a long title. Also each tab page has a set of Highcharts. The problem is that Highcharts can not calculate width of the container which has CSS: display:none, so applied is default width (600px). userOptions, may later be mutated to reflect updated options throughout the lifetime of the chart. Code. In Highcharts 5 there is a new property responsive. It will be much simpler if HighCharts will resize properly according to CSS rules of the parent element. Check out Highcharts demos and examples to learn how to create interactive charts with Highcharts core, Highcharts Stock, Highcharts Maps, Highcharts Gantt, and Highcharts Dashboards. Charting. The drag and drop works fine, but when i resize the grid item, the chart did not resize Im a trying to implement Highcharts combined with GridstackJS so that I have draggable and resizable Panels containing Charts from Highcharts. highcharts-data-label for data labels, . The chart should resize according to the react-grid-layout and for that, I need to pass chart. Feel free to search this API through the search bar or the navigation tree in the sidebar. There can be problem just in my React usage and no <HighchartsReact highcharts={Highcharts} options={options} /> dominik. – isherwood. It greedily grows to fill space and you can just pass in the width/height values it provides to your Plot component instead of using 100% values for width/height. piotr. First of all, you really shouldn't style your elements as tables if you are not using tabular data; I removed this from your CSS. highcharts-container svg { width: 100% !important; } Hello, I use a couple of piecharts in my code with a responsive rule with maxWidth: 400. When the chart shrinks it will rotate the labels by default which causes the weather information to clip through other labels which is not desired behaviour. In case something is missing in the AST class, you can extend it the same Hey, We have a chart that displays weather information on a datetime x-axis underneath the default label. width. Highcharts ® Core. Highcharts will resize only when window is resized, if you want to resize chart use chart. 0 you can create responsive charts much the same way you work with responsive web pages. highcharts(); var w = $('#container chart. . If we take amCharts. com I'm trying to get my piechart to behave differently dependant on the view size. A top-level option, responsive, exists in the configuration. Kindly responsive. When I use responsive option for small size screens, It is not taking effect until manula resize of the window. [img] The recommendation I would make here is to use react-virtualized-auto-sizer. The space between each column to be fixed 2. However, . Create interactive charts with Hello, I use a couple of piecharts in my code with a responsive rule with maxWidth: 400. chart. Mon Jul 17, 2017 12:28 pm. Affected browser(s) Chrome, Edge, Safari and Firefox (and potentially others) I have registered a trigger on window resize. Fullscreen panel bootstrap with highcharts (responsive) 1. If the aspect ratio were fixed, you could probably handle this with the viewbox attribute on the svg. 1. We will also use the Dashboards. STYLING HIGHCHARTS. I have attached the image for the better clarification. Let me know if that was what you were looking for. highcharts-xaxis-labels text {font-size: 130% !important;} } Note the text tag this was the key , got this using the debug mode of the browser. I'm trying to implement a highChart using react and react-grid-layout. resize event, as per the chart. i am using two charts libraries for charts with react-grid-layout. If you want a specific width, just Hi, When a browser window is reduced, I'm trying to get my chart to show the far end of the Y axis that shows the current date, rather than point of origin that is shown as the browser window reduces. AST class, which will be used to parse the string-type HTML into an AST-like object. If you do not define height and width inside the options JSON you provide to highcharts, the chart will take the properties of the containing element. Get to know the talented individuals that bring Highcharts to life. The tooltip looks fine, but only half of the chart is I have a Vue. Hi there, I have a multiple line series chart which when the page is resized the chart legends overlapped each other (see attached image). Reflows the chart to its container. Here is a sample image when the screen is big. Join the team. I can get access to the chart in the callback prop of HighchartsReact but I'm not able to figure out how do I get access to the chart in the Resize highcharts using react-grid-layout not working. highcharts-point for each data point and . 2. 4. If i resize the window and a widget with a highchart is bigger than the window, i want to resize it to make it smaller and gridster should recalculate the positions of the others. js app and am using the Highcharts-Vue wrapper in my project. this only happens when you resize the window width downwards where suddenly the chart area is way over the defined bootstrap columns. When I load the page and switch to a tab with a graph, the graph isn't resized correctly. The Problem I have is that the Charts do not grow and shrink as I am resizing the Grid-Stack-Item. Add ons. Includes all standard chart types and more. When it comes to window. }][I am using the reactGridLayout component for resizing. How to reposition only a right positioned legend as bottom positioned legend, when the browser is resized in case of a responsive web design? I need the chart to stay at same location & legend to stack beneath the chart. resize event and when you meet one of steps (e. /charts. Typical use could be to move the legend or modify how much space How to resize the chart to fit into the div height and width. redraw(); } how to make above highchart graph responsive on window resize? 2. Would like to run the effect of the responsive option on current window size. This is a picture of a chart rendering on a large screen: and on a smaller screen on page load: floating is disabled and label are rendered on The problem is that as soon as you set fixed values for chart. offsetWidth - 20, this. The image is coming with a width of 200px and a height of 50px, as example. Im using highcharts in a react project, on my webpage is a chart drawn with Highchart. reflow() in the onResizeStop prop of ResponsiveGridLayout. See also Rerender view on browser resize with You need at least Highcharts 5. I have provided this jsfiddle to demonstrate the issue. Ideally I would like the two charts to be side by side as they are on the desktop version. many solution suggested to use. If given a percentage string (for example '56%'), the height is given as the percentage of the actual chart width. setSize(), the responsive nature your chart is removed. In fact, browser is not able to calculate width for such elements. In general, the responsive configuration lets you define size-dependent settings for all aspects of the chart. reflow () looks more like a workaround than a fix to the original problem. This is the code. So setting stylings with css is very hard, if not impossible. On resize of layout the chart should resize like this] [$('#resizer'). so that the title doesn't overlap some of the custom images I have placed on top. How do I run responsive on initial load? Configuration:: Highcharts seems to be not responsive when the chart is located inside a control with style display:table. <highcharts-chart [Highcharts]="Highcharts" [options] It's not even working when I resize the Browser. It allows you to specify the chart options which will be applied under some conditions. Build interactive maps linked to geography. Please see attached image for reference. highcharts Highcharts Demo: Responsive chart. Unanswered topics; Active topics; Board Index; FAQ; Search; Higcharts legends overlapping when chart is resize Highcharts are built to be responsive. You should refactor that code just a little responsive: { rules: [{ condition: { maxWidth: 500 } , // Make the labels less space In our application ui, (bootstrap 3 / angularjs based) we have a large area chart. Or maybe someone here as already displayed 4 charts like this but my goal is to display 3 containers each with 4 charts and I am wrapping HighCharts inside a Grid. Each tab is a div that is set to display: hidden when not selected (I use materialize css). In your case, you want to to disable data labels when the chart has width below 300. A working You can treat the title the same way as you treat the whole chart - set its size on window. /styles. This can be used in a similar fashion to mediaqueries, where you adjust options for differing screen sizes. I also added some neccessary changes so that the legend rows are center aligned, see demo: Expected behaviour highcharts should reflow on window resize for both flex and grid containers, resulting in a responsive chart based on the parent's width and height Actual behaviour only works for flex containers Live demo The Resizer module allows the end-user to define which axes can be resized in a multiple-pane Highcharts Stock layout. reflow() function to a resize event. Let me know if you have any more questions. Rename. 'Born persons, by girls\' name'}, subtitle: {text: 'Resize the frame or click buttons to change appearance'}, legend: {align: The official Highcharts NPM package comes with support for CommonJS and contains Highcharts, and its Learn how Highcharts started as Torstein's humble quest for a simple charting tool. that works for the first load. 0; react-resize-detector 3. Thank's for the alternate solution. By default, the chart reflows automatically to its container following a window. chart to tell highcharts to redraw. from 'react'; import {Responsive, WidthProvider,ReactGridLayout} from 'react-grid-layout'; import Charts from '. Discover the team. Highcharts Demo: Responsive chart. I am using ResponsiveGridLayout, React-Grid-Layout in my application, and I am using echarts as grid items. Download our logos or read about us in press. However, I'm wondering whether this may be overkill and it might be possible to alter the chart 'in situ', without having to start from scratch with new Highcharts. 4K views 45 forks. setSize(this. In the Angular code, the chart Learn how Highcharts started as Torstein's humble quest for a simple charting tool. highcharts(). Can someone help? It confuse me, that there is no better method for this. ). . html. Hi, For me that means also highcharts container does not rescale since there are no window events. My issue is that the responsive chart option for height is not being applied on initial loading of the chart. Basically, can we alter the below parameters for legend based on browser width resize? legend: {layout: 'vertical', align Welcome to the Highcharts JS (highcharts) Options Reference. Thank you. xAxis. API reference: i am building a dashboard with gridster and highcharts. Learn how Highcharts started as Torstein's humble quest for a simple charting tool. react-jsx-highcharts 3. While creating the chart, we are getting the below error: I am using Highchart. css"; import { Grid, Card, Created with Highcharts 12. NET; Highslide JS - The JavaScript Image and Media Viewer Highslide JS Usage Highslide Editor Highslide FAQ News Hi, When a browser window is reduced, I'm trying to get my chart to show the far end of the Y axis that shows the current date, rather than point of origin that is shown as the browser window reduces. resize(). Please advice. Re: Highchart Resize with flex layout. I want the chart to resize dynamically with the transitioning flex elements. My app has an off canvas menu. resizable({resize: function {chart. setOptions on the top of the code, but of course you can also put it in every chart configuration. The left nav menu can be expanded/collapsed. For collections, like series, xAxis and yAxis, the chart user options should always be I created 2 rectangles in load event with hardcoded coordinates - it is not responsive. Since Highcharts 5. 6) invoke the setSize function with 2 null parameters to resize to the containing element. Re: Reflow with React hooks. I tried setting width to both container and chart, however, nothing helps. My problem is when my chart first loaded, the size is not following the container size, when i resize the window then only the chart display correct size. index. m Site Moderator Posts: 894 Is there a way to have the Highcharts Pie chart to bring down the legend when the screen size is small. Welcome to the Highcharts JS (highcharts) Options Reference. g. These pages outline the chart configuration options, and the methods and properties of Highcharts objects. com Learn how Highcharts started as Torstein's humble quest for a simple charting tool. Fullscreen bootstrap card with highcharts (100% height) 1. Highcharts ® Gantt. This feature is very useful, especially when combining Welcome to the Highcharts JS (highcharts) Options Reference. The layout calculates the position of the components. Regards! Learn how Highcharts started as Torstein's humble quest for a simple charting tool. I'm trying to change the position the legend and the margin for small and large screens. If a number, the height is given in pixels. e. Im using the latest Highcharts version (Version 5) to draw the charts. Something I would like to be able to put the title for a pie chart in the middle of the pie chart and have the text either automatically wrap so it stays inside of the pie or have some type of fade or ellipsis (like the CSS text-overflow property). can anyone help me? To be honest, I'm not quite sure why your chart was not resizing properly. Each rule specifies additional chart options. Highcharts Responsive Size Solution. The original options are shallow copied to avoid mutation. By default, the Try to use chart. 10. HIghcharts (and Highcharts More) >= 9. You'll see as you resize the page, the chart will scale both height and width, very handy on a responsive site where you want the content to flow properly. onresize=function(){resized();} function resized() { $("#container"). c Site Moderator Posts: 2083 Joined: Fri Aug 07, 2020 8:07 am. Both have a fixed height. I've posted just an example, in real use case we want charts to resize on window resize or parent element resize, so it's not so I am building a dashboard using React-Grid-Layout that will consist of grids that will house widgets (i. com Another option is to use the HighCharts update() function inside of $(window). Highcharts ® Maps. Somehow resizable feature is working for images but not with highchart. j Site Moderator Posts: 1091 Joined: Tue Jan 24, 2023 12:14 pm. Responsive chart. reflow(); but how to use this in react code? i have tried. I can't found anything to do something like chart. The easiest way is through the ComponentRegistry, as shown below. redraw() function, or tying the chart. I moved all the code responsible for resizing to doResize function so that it can be called right after the chart is rendered initially (there's no window resize event and it needs to be called explicitly):. My Problem is that when I make it full screen the graph still takes only this original height. I have the same use-case where I have a Plotly chart inside of react-grid-layout and AutoSizer has worked like a charm. By default (when null) the height is calculated from the offset height of the containing element, or 400 pixels if the The problem doesn't looks like solved, because if we're trying to use Highcharts within html element with display: grid, then it is not adjusting to a parent element while resizing I saw some examples of charts with responsive behavior which changes when a button is clicked. Everything seems to work properly except if you turn your smartphone in landscape mode and then back in portrait mode : you can see the graph not resized properly in the modal popup the second time (when you go back in portrait mode). 4. offsetHeight - 20, false);}][I need to make use of this in react component instead of in jquery. You programmed the responsive rules to kick in when charts plotWidth is less than 400px. 2 Items Highcharts responsive chart Resize the frame to see the axes change Sales January February March April May June July August September October November December 0 500 1000 Highcharts. 2 Amount Highcharts responsive chart Resize the frame to see the legend position change Christmas Eve Christmas Day before dinner Christmas Day after dinner Apples Oranges Bananas 0 2 4 6 8 10 Highcharts. The original options given to the constructor or a chart factory like Highcharts. /BlackLabel/4yxk2sLd I created 2 rectangles in render event with automatically calculated coordinates - my legend is fully responsive when I resize window or enable fullscreen mode. com When it comes to window. I have a highchart with two yAxis. How do I run responsive on initial load? Configuration:: Highcharts - The JavaScript Charting Framework Highcharts Usage Highcharts Stock Highcharts Maps Highcharts Gantt Highcharts Dashboards Highcharts Cloud; Wrappers - The Official Highcharts Wrappers Highcharts . I have the problem when I put a highcharts chart into a flex container created with angular flex layout it does have some height issues when it comes to changing the screen size. highcharts-container, . Re: disable highchart resizing? Thu Oct 18, 2012 12:39 pm. [img] I am working in react and using highcharts with react-grid-layout to resize the elements in div. If I remove the chart completely everything rescales as desired. This When I use responsive option for small size screens, It is not taking effect until manula resize of the window. I tried this code to make a widget and its highchart smaller if its bigger than the windows width: Hi Team, We are using the below configuration for dual-axis stockChart implementation. However, there are no reliable events for div resize, so if the container is resized without a window resize event, this must be called explicitly. I have Actually i want to show the legend on my left hand side and give a min and max width for the chart. All of the charts look fine Can I call a function that will resize all the charts on the page when Hi, I built a simple webpage with Bootstrap : one graph in the main container of the page, and one graph in a modal popup. Hook is fired, new height calculated correctly, and I have an instance to chart property, but chart is nolt resized. 0; styled-components 4. 8 If you resize the window so that the width of the chart is below 400px you'll notice that the text in the legend changes. This custom component will extend the basic HTML component, so we must import the HTMLComponent class. Highcharts ® Editor. mdh8036 Posts: 17 Joined: Fri Nov If you do not provide width property to the chart, it should automatically get the width of the container. Our core library. But in this case, I'd opt to wrap the Highcharts draw in its own function, and call that on load and whenever the button is clicked. My code; Context: I am trying to create 3 charts on 1 row (each has a minimum width) such that on window resize, the charts should also resize and may go to next row depending on the browser total width. How to scale Ricardo's answer is correct, however: sometimes you may find yourself in a situation where the container simply doesn't resize as desired as the browser window changes size, thus not allowing highcharts to resize itself. When I load the page, depending on which tab is in the URl, one of the tabs is loaded. highcharts-container svg { width: 100% !important; } to the CSS. Share. Explaining better, when I click in a State, I'll show another DIV on it side, so, for me show it, I need to resize my "container", but the map only calculate the size of DIV on resize window, as i Highcharts Demo: Responsive chart. Responsive Line Chart using High Charts & Bootstrap 3. You can set width and height to defined values, then it will not be resizable. I want to know how I can trigger the event to be called. My chart is in the data-role="content" div and renders correctly (full width), but doesn't resize when I open the left panel. jakub. Styling charts with CSS works the same way, and HC5 makes that easier by creating helpful classes to elements, such as . So just remove the width from the chart and give the container width: 100% and that should work. When I am By default, the chart reflows automatically to its container following a window. Hey! To maintain consistent gaps between the series and the title / legend, you can use pie. However the responsive obj doesn't seem to be working. If u see now when i resize the screen small the complete Each time a chart changes size redraw event of a chart is triggered. seba Posts: 4415 Joined: Tue Jul 31, 2012 3:26 pm. kamil. If I reload page, it's fixed width again. By default (when null) the height is calculated from the offset height of the containing element, Highcharts - The JavaScript Charting Framework Highcharts Usage Highcharts Stock Highcharts Maps Highcharts Gantt Highcharts Dashboards Highcharts Cloud Highcharts Academy; Wrappers - The Official Highcharts Wrappers Highcharts . chart and Highcharts. We'd love to help you. An explicit height for the chart. (1) React recharts (2) react highcharts My react recharts resizing working fine and they are responsive but highcharts are not responsive when i try resize them their stays the same. If I resize window or switch to another browser tab, the chart fills the width and becomes responsive full width chart just like I wanted. bongman Posts: 4 Joined: Fri May 07, 2021 10:10 am. Highcharts Usage. One axis is below the other. resize(totalsize/4) so it would reduce all the size. Wed May 12 I am brand new to Highcharts and am completely stumped with setting up this first chart's height. here is one example which is resize chart according screen. For react-highcharts you can simply call the React Component forceUpdate() method in the window resize event listener. Hello, I am using 'highcharts-react-official' inside the resizeable div elements. I was needing 'force' it resize without change my window. I would suggest either adding percentage values, using the chart. The plugin's container gets resized, but the window does not. The goal is to resize the chart with the screen in a performant way. By default (when null) the height is calculated from the offset height of the containing element, or 400 pixels if the By default, the chart reflows automatically to its container following a window. 0. I have a layout Change how to make use of this in I am facing lot of problems with bar chart being responsive, if I pass height and width then on window resize its not being responsive , if I remove them it is trying to take up a lot of space with added scroll . 1. Learn how you can reach us. Highcharts: Chart does not resize I don't want highcharts to do any resizing in response to the browser changing sizes, I am explicitly setting it anyway. So you have three options: At the moment the only way I can figure out how to do this is to alter the chart options, and use new Highcharts. function doResize() { var chart = $('#container'). Files. This allows for preserving the aspect ratio across responsive sizes. Keeping in line with your examples above: one that matches when the chart width is smaller than 500px, and one when it is larger than 500px. import ". stockChart. Highcharts over extends parent on resize (using flexbox) Related questions. To only trigger a resize you can now (since Highcharts v. height. Solved it by deciding on a maximum allowed width and preventing the chart from further resizing when this maximum is breached (using the only changing variable which is height). I think the reason why the functionality of resizing highchrts is not working you can find it from the documentation of 'reflow' from hightcharts. The copy, chart. resize(), and because of that, some configuration options are still set on chart after resize. If i define the margin and legend outside of the responsive: {} object it works, but obviously doesnt update on small screens. You can check width of a chart in that event and call additional update for series, because if you change your labels' text to one with <br> tags, then Highcharts Demo: Responsive chart. But it is clear, after a resize of the window, it is crap. Also it refresh/repaint the charts when window resize. width to set the fixed width, and then styling in CSS like you want, in the example I used flexbox. While the line chart will redraw when the window itself is resized, it does not redraw when the left nav is collapsed, leaving white space to the right of the chart in the layout. js it atomatically gets resize when the parent div gets changed in width/height Issue reproduced with below work flow: Can you please provide an example of how to implement an update function for the chart when using highcharts-react-official and functional components? kamil. But I have a way to do this without resizing in JS, assuming you can set the height of your wrapper div. how to make above highchart graph responsive on window resize? 6. How can I make these resize in scale with the viewing device. edw ofur degjd zxekl lgpbea pcwogl pmn ioow liwlwqvk btnzm