-
Notifications
You must be signed in to change notification settings - Fork 7
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
GitAuto: [Negative progress] <as proxy for conditional formatting - databars like excel> #67
GitAuto: [Negative progress] <as proxy for conditional formatting - databars like excel> #67
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Approve permission(s) to allow GitAuto to access the check run logs here: https://github.com/settings/installations/52064309/permissions/update |
Resolves #64
What is the feature
Add support for negative numbers in the progress data bars, enabling visualization similar to Excel's conditional formatting data bars that handle both positive and negative values.
Why we need the feature
Currently, the progress bars effectively represent positive values, serving as a proxy for Excel-like data bars. However, in datasets that include negative values, the absence of support for negative numbers limits the functionality and visual accuracy. By supporting negative values, users can achieve a more comprehensive and accurate data visualization, mirroring the capabilities of Excel's conditional formatting and enhancing the tool's overall utility.
How to implement and why
Identify Negative Values:
app.py
: Update the data processing logic to detect negative numbers within the dataset. This can be achieved by iterating through the data and flagging values that are below zero.Adjust Bar Rendering Logic:
templates
directory, update the HTML/CSS templates to support directional changes. This may involve adding conditional classes or styles that reverse the fill direction for negative values.Visual Differentiation:
User Configuration:
_config.yml
. This adds flexibility and personalization to the feature.Testing and Validation:
Documentation:
README.md
: Include instructions and examples on how to use the new feature, detailing any configuration options available to users.Implementing these steps ensures that the progress bars can accurately represent both positive and negative values, enhancing the data visualization capabilities of the application and aligning it more closely with Excel's conditional formatting features.
About backward compatibility
This feature will be implemented in a backward-compatible manner. Existing functionality for positive values will remain unchanged, ensuring that current users are not affected by the updates. The addition of negative value support will be handled through optional configurations, allowing users to enable or disable the feature based on their needs without disrupting existing workflows.
Test these changes locally