Skip to content

add new charts module #57

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

Merged
merged 2 commits into from
Mar 31, 2025
Merged

add new charts module #57

merged 2 commits into from
Mar 31, 2025

Conversation

NomakCooper
Copy link
Contributor

SUMMARY

add new charts module

examples:

- name: Generate a line chart for CPU Usage Over Time
  a2dev.general.charts:
    type: "line"
    titlechart: "CPU Usage Over Time"
    xaxis: ['00:00', '02:00', '04:00', '06:00', '08:00']
    xaxisname: "Time"
    yaxis: [[20, 30, 40, 50, 60]]
    yaxisname: ["CPU Usage %"]
    yaxiscolor: ["red"]
    shape_line: "spline"
    imgwidth: 1920
    imgheight: 1080
    path: "/charts"
    filename: "cpu_usage"
    format: "png"
    titlelegend: "Usage"
  delegate_to: localhost

- name: Generate a pie chart for Resource Distribution
  a2dev.general.charts:
    type: "pie"
    titlechart: "Resource Distribution"
    slicedata: [10, 20, 30, 40]
    slicelabel: ["A", "B", "C", "D"]
    slicecolor: ["#ff0000", "#00ff00", "#0000ff", "#ffff00"]
    imgwidth: 800
    imgheight: 600
    path: "/charts"
    filename: "resource_distribution"
    format: "png"
  delegate_to: localhost
ISSUE TYPE
  • New Module Pull Request
COMPONENT NAME

charts

ADDITIONAL INFORMATION

@github-actions github-actions bot added github_actions Pull requests that update GitHub Actions code documentation Documentation issue labels Mar 31, 2025
@NomakCooper
Copy link
Contributor Author

/approve

Copy link

repo-command bot commented Mar 31, 2025

Pull request approved by @NomakCooper

@NomakCooper NomakCooper added the backport-10 backport to stable-10 label Mar 31, 2025
@NomakCooper NomakCooper merged commit b2df41f into 3A2DEV:main Mar 31, 2025
27 checks passed
Copy link
Contributor

patchback bot commented Mar 31, 2025

Backport to stable-10: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-10/b2df41f24826f108be5ec9d486b8d624c7d10b5f/pr-57

Backported as #58

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

@repo-command repo-command bot added merged and removed approved labels Mar 31, 2025
patchback bot pushed a commit that referenced this pull request Mar 31, 2025
* add new charts module

* remove sanity 2.16 and update readme

(cherry picked from commit b2df41f)
NomakCooper added a commit that referenced this pull request Mar 31, 2025
* add new charts module

* remove sanity 2.16 and update readme

(cherry picked from commit b2df41f)

Co-authored-by: Nocchia <133043574+NomakCooper@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-10 backport to stable-10 documentation Documentation issue github_actions Pull requests that update GitHub Actions code merged module new_module plugin tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant