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

Bugfix/mon 13349 Trendsgraph on wkhtmltopdf #318

Open
wants to merge 49 commits into
base: master
Choose a base branch
from

Conversation

euniceremoquillo
Copy link
Contributor

Rendering trends graph on the browser has no issue, however the latest version of wkhtmltopdf cannot render the graph when generating pdf.
This replace tgraph.js as a php function in a new view file. This commit resolves the issue on displaying the trends graph on the generated pdf file.

This is resolves MON-13349

Signed-off-by: Eunice Remoquillo [email protected]

This commit replace the trends graph generated using javascript.. Created a new function using php instead of calling the javascript function to generated the graph.
Using javscript on generating trends graph causes it not to be rendered when saving the report as pdf.

This is part of MON-13349

Signed-off-by: Eunice Remoquillo <[email protected]>
This commit displays bar details on mouse hover.

This is part of MON-13349

Signed-off-by: Eunice Remoquillo <[email protected]>
This commit fixes bar positions on the graph when generating a pdf. Added display prefixes for other vendors.

Signed-off-by: Eunice Remoquillo <[email protected]>
This commit fixes the positions of lines and y-labels.

Signed-off-by: Eunice Remoquillo <[email protected]>
@euniceremoquillo euniceremoquillo requested a review from a team April 15, 2024 02:51
Added datetime details on hover. And changed the format used for datetime to remove leading zeroes.

Signed-off-by: Eunice Remoquillo <[email protected]>
This commit changes the rgb component to hexadecimal color code.

Signed-off-by: Eunice Remoquillo <[email protected]>
Copy link
Contributor

@jdumalaonITRS jdumalaonITRS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggesting some changes

modules/reports/controllers/reports.php Show resolved Hide resolved
modules/reports/views/trends/tgraph_report.php Outdated Show resolved Hide resolved
This commit displays the trend scale for trends bar with a short
duration. When scaling, the short bar is changed to black then
creates a smaller bar above it. Colored bars must display details
when hovered.

Unused css file was removed. Indentions were fixed. And necessary
variables were created.

Signed-off-by: Eunice Remoquillo <[email protected]>
Adjusted the min-width to 10px to avoid overflow in the scaled row.
Objects with white color automatically disregards style set to transparent.
This commit replace the trends graph generated using javascript.. Created a new function using php instead of calling the javascript function to generated the graph.
Using javscript on generating trends graph causes it not to be rendered when saving the report as pdf.

This is part of MON-13349

Signed-off-by: Eunice Remoquillo <[email protected]>
This commit displays bar details on mouse hover.

This is part of MON-13349

Signed-off-by: Eunice Remoquillo <[email protected]>
This commit fixes bar positions on the graph when generating a pdf. Added display prefixes for other vendors.

Signed-off-by: Eunice Remoquillo <[email protected]>
This commit fixes the positions of lines and y-labels.

Signed-off-by: Eunice Remoquillo <[email protected]>
Added datetime details on hover. And changed the format used for datetime to remove leading zeroes.

Signed-off-by: Eunice Remoquillo <[email protected]>
This commit changes the rgb component to hexadecimal color code.

Signed-off-by: Eunice Remoquillo <[email protected]>
This commit displays the trend scale for trends bar with a short
duration. When scaling, the short bar is changed to black then
creates a smaller bar above it. Colored bars must display details
when hovered.

Unused css file was removed. Indentions were fixed. And necessary
variables were created.

Signed-off-by: Eunice Remoquillo <[email protected]>
Adjusted the min-width to 10px to avoid overflow in the scaled row.
@euniceremoquillo euniceremoquillo force-pushed the bugfix/MON-13349-Trendsgraph-on-Wkhtmltopdf branch from dcee7e4 to 31e523a Compare May 3, 2024 07:54
Adjusted the size of displayed block so it captures the whole trend block line.
This commit added checks on listed host from the generated graph. This also checks if there will be a displayed information upon hovering a bar from the graph.
This commit improves graph readability for short bars.
This commit fixes the accuracy of calculated bar length.
This commit handles the number of allowable items to display on the graph. Since displaying graphs should be displayed per percentage, displaying a hundred of items would be the threshold.

Signed-off-by: Eunice Remoquillo <[email protected]>
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

Successfully merging this pull request may close these issues.

2 participants