ngx-charts icon indicating copy to clipboard operation
ngx-charts copied to clipboard

Ability to have label and value centered in number cards

Open timwright35 opened this issue 7 years ago • 2 comments

I'm submitting a ... (check one with "x")

[ ] bug report => search github for a similar issue or PR before submitting
[X] feature request
[ ] support request => Please do not submit support request here

Current behavior Currently the label and value are set using some calculations that make it left align, this works fine when there are many cards, IE they look centered then but when there is one giant card it looks off.

Expected behavior Ability to send in via input the desire for them to be centered and have the component change the calculations to center everything.

Reproduction of the problem Make one card with data and see the formatting

What is the motivation / use case for changing the behavior? I have a dynamic section where there can be 1 or more cards, when it is many cards it looks fine but when there is only 1 there is no way to center the data.

Please tell us about your environment:

  • ngx-charts version: x.x.x 5.3.1

  • Angular version: 2.x.x 4.2.5

  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ] All

  • Language: [all | TypeScript X.X | ES6/7 | ES5] All

timwright35 avatar Jul 05 '17 14:07 timwright35

Bump

nikolnikov avatar Apr 27 '21 17:04 nikolnikov

@timwright35 I am needed that currentlt. Did you find a way to do that?

stacklast avatar Feb 22 '22 21:02 stacklast