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

Symbols arent being displayed? #103

Open
brandbern opened this issue Jan 18, 2024 · 1 comment
Open

Symbols arent being displayed? #103

brandbern opened this issue Jan 18, 2024 · 1 comment

Comments

@brandbern
Copy link

brandbern commented Jan 18, 2024

I need to display symbols on the LineChart but i am not able to. Perhaps i have the wrong prop names?
Codepen here for a basic linechart with altered props.

Expected behavior
I am expecting dots simliar to echarts

Screenshots
Rsuite/charts
Screenshot 2024-01-18 at 3 47 02 PM

Echarts
Screenshot 2024-01-18 at 3 43 11 PM

@brandbern
Copy link
Author

AH, i have figure it out. You also need symbolSize if setting a symbol.

export default () => (
  <LineChart data={data}>
    <YAxis minInterval={30000} axisLabel={(value) => `${value / 1000}K`} />
    <Line name="昨日浏览量(PV)" showSymbol symbol="circle" symbolSize={10} />
    <Line name="今日浏览量(PV)" showSymbol symbol="circle" symbolSize={10} />
  </LineChart>
);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant