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

Simple charts (bargraph, piechart, etc.) #26

Open
1 of 2 tasks
Omikhleia opened this issue Jun 28, 2022 · 3 comments · May be fixed by #25
Open
1 of 2 tasks

Simple charts (bargraph, piechart, etc.) #26

Omikhleia opened this issue Jun 28, 2022 · 3 comments · May be fixed by #25
Labels
enhancement New feature or request
Milestone

Comments

@Omikhleia
Copy link
Owner

Omikhleia commented Jun 28, 2022

Leveraging the work done on framebox and fancy rough graphics, consider implementing some (basic) charts, such as

  • Bar graphs
  • Pie charts

Data could be read from CSV, using Penlight's pl.data.read()

EDIT:
Rationale: Potential niche addressed would be business-like reports, and also it's fun.

@Omikhleia Omikhleia added the enhancement New feature or request label Jun 28, 2022
@Omikhleia Omikhleia added this to the 2.0 milestone Jun 28, 2022
@Omikhleia Omikhleia linked a pull request Jun 28, 2022 that will close this issue
@Omikhleia
Copy link
Owner Author

E.g. my initial "dirty" PoC from #25 :

image

@Omikhleia
Copy link
Owner Author

Current version of the PoC now includes better bar graphs and initiates pie charts.
image

Caveat

  • PoC code is still ugly :)
  • This PoC will probably remain in this state for some time, as I am considering to move related developments to "ReSilient Types" outside the scope of the "Omikhleia" packages.
    • Next version will almost probably not be MIT-licensed
    • It will use (ported to Lua) a force-directed graph algorithm for proper label placement in pie charts (most likely one based on verlet-integration as this should likely be sufficient and I already coded one in JS and started porting it to Lua.)

@Omikhleia
Copy link
Owner Author

Pie charts made it eventually: https://github.com/Omikhleia/piecharts.sile

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

Successfully merging a pull request may close this issue.

1 participant