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

Point at every vertex Vega Altair markline #3798

Open
SumitRathor002 opened this issue Feb 7, 2025 · 1 comment
Open

Point at every vertex Vega Altair markline #3798

SumitRathor002 opened this issue Feb 7, 2025 · 1 comment
Labels
bug needs-repro Issues that **need** a Minimal, Reproducible Example

Comments

@SumitRathor002
Copy link

What happened?

I am trying to create a multi line chart in vega altair, i want the vertex of the line to have a point , However my lines only have a point at the starting and not at all vertex . This is my code , i am tring to pass the point kwargs in dict , i have tried to pass only point = True, but it still has this issue , My vega altair version is 5.4.1.

base = alt.Chart(df).mark_line(
            point = {
                'size': 70,
                'filled': True,
            },
            interpolate = 'catmull-rom'
        ).encode(
        x = alt.X(f'{x_col}:O',
                title = None,
                axis = alt.Axis(
                    labelAngle = 0,
                    grid = False,
                    ticks = False,
                ),
                sort=alt.SortField(f'{sort}:t', order='descending')
                ),
        y = alt.Y(
                f'{y_col}:Q',
                axis = alt.Axis(
                    grid = False,
                    domain = False,
                    ticks = False,
                ),
                scale = alt.Scale(domain = [0, df[y_col].max()*1.25]),
                title = None
            ),
        color = f'{color}:N',
    ).configure_legend(
        labelFontSize=legendFontSize,
        orient = 'none',
        legendX = width - 15,
        legendY = 0,
        title=None,
        labelColor="black",
        symbolSize = 50,
        symbolType = 'stroke',
        clipHeight = 22,
        labelLimit = 300
    ).configure_view(
        stroke = 'transparent'
    ).properties(
            width = width,
            padding = {
                'top': 0,
                'right': 10,
                'bottom': 20,
                'left': 20,  
            }
    )

What would you like to happen instead?

I Expected that point will be pointed at every vertex of line

Which version of Altair are you using?

5.4.1

@SumitRathor002 SumitRathor002 added bug needs-triage Bug report needs maintainer response labels Feb 7, 2025
@dangotbanned dangotbanned added needs-repro Issues that **need** a Minimal, Reproducible Example and removed needs-triage Bug report needs maintainer response labels Feb 7, 2025
@dangotbanned
Copy link
Member

dangotbanned commented Feb 7, 2025

@SumitRathor002 can you please provide a self-contained reproducible example?

Your code block does not define:

  • df
  • legendFontSize
  • width

Also any variables used in an fstring

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug needs-repro Issues that **need** a Minimal, Reproducible Example
Projects
None yet
Development

No branches or pull requests

2 participants