-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to remove Extra space in the left side of the stockChart #1606
Comments
Try disposing the axis, too. comparisonYAxis.dispose(); |
Nope @martynasma it didn't worked though it is disposing the axis but the space is there. Full code of removing the aixs :
Below is the comparisonYAxis forming code :
|
Could you whip up a CodePen with the simplified version of what you do with the addition/removal? |
Sure @martynasma Initially see the difference between the red border and the valueAxis ( where March 2021) written. 15.07.2024_05.04.50_REC.mp4I want to remove it without re-rendering the chart. |
|
@martynasma Does this codepen helped you? Or should I provide anything else too..! |
Yes. You can "reclaim" the space via this line: mainPanel.leftAxesContainer.set("minWidth", undefined) |
Perfect @martynasma it worked! Thanks a lot. |
I tried to set the paddingLeft to 0 when user removes the series, that too didn't worked for me.
this.chartInstance.stockChart.set("paddingLeft",0)
10.07.2024_04.59.04_REC.mp4
This is how I am removing the axis :
Which property should I fire when the user closes the button to remove this extra space
The text was updated successfully, but these errors were encountered: