Skip to content
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

format value #3

Closed
MatheusPemill opened this issue Jan 20, 2022 · 1 comment
Closed

format value #3

MatheusPemill opened this issue Jan 20, 2022 · 1 comment

Comments

@MatheusPemill
Copy link

I'm trying to format the value of the funnel but i getting no results. I'm trying with the getRowValueStyle function.

@DarylBuckle
Copy link
Owner

Hi @MatheusPemill,

The Colours and Styles example has a working example of getRowValueStyle and demonstrates how to use it. The code can be found below;

https://github.com/DarylBuckle/react-funnel-pipeline/blob/master/example/src/App.tsx

<FunnelChart 
  data={data}
  pallette={[
    '#ffb3ba',
    '#ffdfba',
    '#ffffba',
    '#baffc9',
    '#bae1ff',
  ]}
  getRowStyle={() => { return { margin: '0px'} }}
  getRowNameStyle={(row) => { return row.value < 15 ? { color: 'red'} : { color: 'black'}}}
  getRowValueStyle={(row) => { return row.value < 15 ? { color: 'red'} : { color: 'black'}}}
/>

If you are still having trouble after looking at this example, please could you provide some code demonstrating the issue you're having. Thanks.

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

No branches or pull requests

2 participants