plotly / plotly/plotly.py

Bug in changing Title persian(arabic) fonts in plotly.GO

Open
#3,778 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug P3
Dominant language
Python
Stars
18.8k
Forks
2.8k
Avg merge
16h 26m
Merged PRs (30d)
21

Description

Hi, I've just wanted to change the title persian font of a graph object but this approach does not change anything at all.

fig.update_layout(barmode='group', xaxis_tickangle=-45 ,title={'y':0.98, 'x':0.5,
                    'text':f"فروش ماهانه <b>{symbol}</b>",'xanchor':'center', 'yanchor':'top',
                    'font':{'size':40, 'family':"Droid Sans"}}, bargroupgap=0.01, autosize=False, width=1280, height=720,
                    margin=dict(l=50,r=10,b=0,t=50), legend=dict(traceorder='normal', font={'size':15},orientation="h",yanchor="middle",y=-0.12,xanchor="auto",x=1),
                    yaxis_title='<b>فروش ماهانه (میلیاردتومان)</b>',font=dict(
        family="Arial",
        size=15
    ),template="plotly_dark")

with changing the title dict args font
even Google standard arabic(persian) fonts does not change anything.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test is named. Start by reproducing the provided update_layout snippet in a Plotly Python environment and inspect how the rendered title handles the requested Persian font family. Done means the title visibly uses the selected font, with a regression check for the reported configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
plotly, python
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.