Skip to content

Added float64 value support. - #5

Closed
mgiannopoulos24 wants to merge 4 commits into
gepser:masterfrom
mgiannopoulos24:master
Closed

Added float64 value support.#5
mgiannopoulos24 wants to merge 4 commits into
gepser:masterfrom
mgiannopoulos24:master

Conversation

@mgiannopoulos24

Copy link
Copy Markdown

Well I hope it works. I wasn't able to understand how to host the website with Google SDK to look the changes myself.

@mgiannopoulos24 mgiannopoulos24 changed the title Aded float64 value support. Added float64 value support. Jul 5, 2024
@gepser gepser reopened this Aug 5, 2024
@gepser

gepser commented Aug 5, 2024

Copy link
Copy Markdown
Owner

Thank you @mgiannopoulos24 , I'll check it out and merge it if everything works 🙌🏼

@mgiannopoulos24

mgiannopoulos24 commented Jan 23, 2025

Copy link
Copy Markdown
Author

Hello @gepser ! After experimenting on how to run it locally, I also managed to fix the issue with float64 values. Now the program can display both integer and float64 values with 2 decimal digits.

Here are some screenshots:

  • Float percentage 99.72:

  • Float percentage 56.96:

  • Integer percentage 12:

Another thing worth mentioning is that you should update the instructions on how to run the program. As shown in #6 there can be a few problems with the program not finding the function Progress.

Below is a solution I found to the problem:

If you use Linux, open a terminal and type:

export FUNCTION_TARGET=Progress

and then:

go run cmd/main.go

If you use Windows, open the PowerShell and type:

$env:FUNCTION_TARGET="Progress"

and then:

go run cmd/main.go

Let me know if you need any other changes!

@mgiannopoulos24

Copy link
Copy Markdown
Author

@gepser Hi there,

Have you had a look on this?

@mgiannopoulos24

Copy link
Copy Markdown
Author

Updated:

feat: Add custom label overlay and data bar support

  • Add custom label parameter to display arbitrary text instead of percentage
  • Add min/max parameters for proportional scaling (Excel-style data bars)
  • Add barColor parameter for custom bar colors
  • Fix local development by setting FUNCTION_TARGET environment variable

This enables using progress bars as data bar visualizations for any
numeric column, similar to Excel's conditional formatting feature.

Related issue:
Issue #7

Example usage:
/progress/186?label=186&min=0&max=241&barColor=4472C4

Showcase:

@gepser

gepser commented Feb 22, 2026

Copy link
Copy Markdown
Owner

Thanks again for this contribution, @mgiannopoulos24 🙌

I just opened a follow-up PR that ports your idea to the current codebase with additional safety checks/tests and keeps compatibility with the latest deploy setup:

Your proposal for float support and data-bar-style usage was the trigger for this update. If this merges, I’ll close this older PR in favor of the new one to keep history clean.

gepser added a commit that referenced this pull request Feb 22, 2026
✨ Safe float + data-bar support (follow-up to #5)
@gepser

gepser commented Feb 22, 2026

Copy link
Copy Markdown
Owner

Also, @mgiannopoulos24, sorry for neglecting this for so long. I didn't touch the project for a long time (but kept using it as it is), and now I had to update a lot of stuff, that's why I couldn't just merge it (would had been a merge hard to fix).

Please keep contributions flowing, I'll do better next time.

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