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

Styling colors #95

Open
vinicius-gregorio opened this issue Sep 6, 2022 · 0 comments
Open

Styling colors #95

vinicius-gregorio opened this issue Sep 6, 2022 · 0 comments

Comments

@vinicius-gregorio
Copy link

vinicius-gregorio commented Sep 6, 2022

How can I style colors in the chart?
Not by node, but a color for the whole chart, i having some issues.

I'm using React with react-kapsule.

Any article/documentation recommended so I can properly do it?

What I want:

  • Style the chart and label colors
  • Style on hover colors for the chart
  • Style borders and colors

the code i currently have:
(not different for what you have seen)

const SunburstChart: React.FunctionComponent = () => {
  const chart = Sunburst();
  chart.data(data);

  const ReactSunburst = fromKapsule<{
    width: number;
    height: number;
    data: Object;
  }>(Sunburst, {
    methodNames: ["focusNode"],
  });
  return (
    <div>
      <ReactSunburst width={300} height={300} data={data} />
    </div>
  );
};

export { SunburstChart };
@vinicius-gregorio vinicius-gregorio changed the title Styling colors by nodes Styling colors Sep 6, 2022
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

1 participant