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

Can we have some other charts, not only Pie type charts #2352

Closed
Ikki-Dai opened this issue Sep 28, 2021 · 14 comments
Closed

Can we have some other charts, not only Pie type charts #2352

Ikki-Dai opened this issue Sep 28, 2021 · 14 comments
Assignees
Labels

Comments

@Ikki-Dai
Copy link

Ikki-Dai commented Sep 28, 2021

Is your feature request related to a problem? Please describe.
while use mermaid with markdown, only have Pie type chart to use

Describe the solution you'd like
hope have some other type to use, such as bar chart, line chart

Describe alternatives you've considered
More and more people use markdown and mermaid in modern editor, I think rich chart type will support people to use markdown better.
And it will be easier to obtain a bar chart or line chart in markdown than in Word or Excel. even, it can be a revolution against MS Office Word

Additional context
maybe chart grammar like below

chart
  type: bar
  xAxis: [2019,2020,2021],
  yAxis: [150,   220,    300]

and I found something interesting called Vega https://vega.github.io , maybe we can learn from that.

@Ikki-Dai Ikki-Dai added Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request labels Sep 28, 2021
@ashishjain0512 ashishjain0512 added Area: Development epic Graph: Pie Status: Approved Is ready to be worked on and removed Status: Triage Needs to be verified, categorized, etc labels Oct 21, 2021
@ashishjain0512 ashishjain0512 self-assigned this Oct 21, 2021
@wuzhefang
Copy link

want it

@kenorb
Copy link

kenorb commented Jul 27, 2022

+1 for column and line charts (simple plotting on x-axis and y-axis) based on the provided values.

@fenixnet-net
Copy link

I need this for a presentation I'm working on, and I am dismayed to find that there is no other graph type than a pie chart.

@jacob-shuman
Copy link

I love sequence, pie, git charts etc, but it would open up so many possibilities for me to be able to generate a simple bar chart with mermaid!

@akutz
Copy link

akutz commented Dec 17, 2022

Is there by chance a branch with this work in-progress we could use if we just needed something simple?

@zm-cttae
Copy link

zm-cttae commented Jan 20, 2023

My open source stuff in the last year has mostly been optimization and performance testing. I'd really like to be able to present profile data for algorithms in a scatter or line graph format.
E.g. a multi-pass optimization algorithm that can be plotted as logarithmic growth with exponential gradient decay.
C.f. bar charts used by a MSFT dev: /microsoft/vscode/pull/161479

@yunying61
Copy link

I also want these chart.

@jgreywolf
Copy link
Contributor

@ashishjain0512 are you actively working on this?

@zm-cttae
Copy link

zm-cttae commented Jan 26, 2023

Right.. ^ was asking as a contributor to the repo.
Are there any questions to discuss here RE: config format, JS implementation & output?
For a line graph, one would populate xAxis with numbers instead of strings

@jgreywolf jgreywolf removed the epic label Jan 26, 2023
@karistom
Copy link
Contributor

+1
I also want these chart.

@zm-cttae
Copy link

This feature request would allow all of us to use bar line & scatter charts etc on Github.

@karistom
Copy link
Contributor

Bar chart - workaround will be provided in README.md "Bar chart (using gantt chart)" section.
PR - #4261

@karistom
Copy link
Contributor

karistom commented Apr 6, 2023

Bar Chart - https://github.com/mermaid-js/mermaid#bar-chart-using-gantt-chart-docs---live-editor

@zm-cttae
Copy link

zm-cttae commented Apr 8, 2023

Related - #4269

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

No branches or pull requests