Skip to content

[PR #57/b2df41f2 backport][stable-10] add new charts module #58

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

Conversation

patchback[bot]
Copy link
Contributor

@patchback patchback bot commented Mar 31, 2025

This is a backport of PR #57 as merged into main (b2df41f).

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

* add new charts module

* remove sanity 2.16 and update readme

(cherry picked from commit b2df41f)
@patchback patchback bot mentioned this pull request Mar 31, 2025
@github-actions github-actions bot added github_actions Pull requests that update GitHub Actions code plugin module tests documentation Documentation issue labels Mar 31, 2025
@NomakCooper
Copy link
Contributor

/approve

Copy link

repo-command bot commented Mar 31, 2025

Pull request approved by @NomakCooper

@NomakCooper NomakCooper merged commit 15a01e4 into stable-10 Mar 31, 2025
27 checks passed
@repo-command repo-command bot added merged and removed approved labels Mar 31, 2025
@NomakCooper NomakCooper deleted the patchback/backports/stable-10/b2df41f24826f108be5ec9d486b8d624c7d10b5f/pr-57 branch March 31, 2025 02:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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