Skip to content

Conversation

@mgiannopoulos24
Copy link

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
Copy link
Owner

gepser commented Aug 5, 2024

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

@mgiannopoulos24
Copy link
Author

mgiannopoulos24 commented Jan 23, 2025

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
Author

@gepser Hi there,

Have you had a look on this?

@mgiannopoulos24
Copy link
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:

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