Skip to content
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

[BUG] Subcharts with JupyterChart is wrong layout #410

Open
DonYum opened this issue Jun 14, 2024 · 5 comments · May be fixed by #510
Open

[BUG] Subcharts with JupyterChart is wrong layout #410

DonYum opened this issue Jun 14, 2024 · 5 comments · May be fixed by #510
Labels
bug Something isn't working

Comments

@DonYum
Copy link

DonYum commented Jun 14, 2024

Expected Behavior

image

Current Behaviour

image

Reproducible Example

import pandas as pd
from lightweight_charts import JupyterChart

if __name__ == '__main__':
    chart = JupyterChart(inner_width=0.5, inner_height=0.5)
    chart2 = chart.create_subchart(position='right', width=0.5, height=0.5)
    chart3 = chart.create_subchart(position='left', width=0.5, height=0.5)
    chart4 = chart.create_subchart(position='right', width=0.5, height=0.5)

    chart.watermark('1')
    chart2.watermark('2')
    chart3.watermark('3')
    chart4.watermark('4')

    df = pd.read_csv('ohlcv.csv')
    chart.set(df)
    chart2.set(df)
    chart3.set(df)
    chart4.set(df)

    chart.load()

Environment

- OS: macOS 13.2
- Library: lightweight-charts==2.0.1
@DonYum DonYum added the bug Something isn't working label Jun 14, 2024
@DonYum DonYum changed the title [BUG] [BUG] Subcharts with JupyterChart is wrong layout Jun 14, 2024
@DonYum
Copy link
Author

DonYum commented Jun 21, 2024

Is there any progress?

@marcelogrcia
Copy link

In fact, any subchart is plotting in JupyterChart right now..

@CoderTom314
Copy link

i failed to plot any subchart with jupyterchart as of today

@lisbravo
Copy link

Same issue
image

from lightweight_charts import JupyterChart

chart = JupyterChart( inner_width=0.5, inner_height = 0.5)
chart.set(sym_df)

chart2 = chart.create_subchart(position='right', width=0.5, height=0.5)
chart3 = chart.create_subchart(position='left', width=0.5, height=0.5)
chart4 = chart.create_subchart(position='right', width=0.5, height=0.5)

chart2.watermark('2')
chart3.watermark('3')
chart4.watermark('4')

chart2.set(sym_df)    
chart3.set(sym_df)    
chart4.set(sym_df)    

chart.load()

lisbravo added a commit to lisbravo/lightweight-charts-python that referenced this issue Jan 13, 2025
@lisbravo lisbravo linked a pull request Jan 13, 2025 that will close this issue
@lisbravo
Copy link

@DonYum
Fixed and pull request submitted
#510

kustra pushed a commit to kustra/lightweight-charts-python that referenced this issue Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants