Skip to content

add updateMax method - #15

Open
mboukhalfa wants to merge 2 commits into
mattlewis92:mainfrom
mboukhalfa:master
Open

add updateMax method#15
mboukhalfa wants to merge 2 commits into
mattlewis92:mainfrom
mboukhalfa:master

Conversation

@mboukhalfa

Copy link
Copy Markdown

There were a problem when updating the Max value for the gauge, the function updateMax() which call the setMaxValue() function in gauge-svg was missed.

@mattlewis92 mattlewis92 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Nice one, thanks for this! 😄 Would you mind adding a test for this change? You can adapt one from here: https://github.com/mattlewis92/angular-gauge/blob/master/test/gauge.component.spec.ts#L59-L71

@bokisha

bokisha commented Apr 1, 2022

Copy link
Copy Markdown

Sadly, this will not fix the issue, because gauge-svg method for updating max value doesn't update gauge itself. I have created pull request to fix that (naikus/svg-gauge#61). Afterwards, i will create also pull request to fix it here (along with tests)

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.

3 participants