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

I can't change the colors of edges and nodes #2

Open
rafaelodassi opened this issue Nov 4, 2024 · 1 comment
Open

I can't change the colors of edges and nodes #2

rafaelodassi opened this issue Nov 4, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@rafaelodassi
Copy link

rafaelodassi commented Nov 4, 2024

I can't change the colors of edges and nodes.

const data = {
		nodes: [
			{ id: "inicio", title: "Início 900" },
			{ id: "encerrarAtendimento", title: "Encerrar Atendimento 0" },
			{ id: "empresa", title: "Empresa 2" },
			{ id: "residencia", title: "Residência 1395" },
			{ id: "cepValido", title: "CEP Válido 400" },
			{ id: "cepInvalido", title: "CEP invalido 995" },
			{ id: "cepUnico", title: "CEP Único 300" },
			{ id: "padrao", title: "Padrão 100" },
			{ id: "enderecoNumero", title: "Endereço Número 400" },
			{ id: "naoPossuiNumero", title: "Não possui Número 45" },
			{ id: "possuiNumero", title: "Possui Número 367" },
			{ id: "numeroValido", title: "Número Válido 355" },
			{ id: "numeroInvalido", title: "Número Inválido 12" },
			{ id: "confirmaEndereco", title: "Confirma Endereço 412" }
		],
		edges: [
			{
				source: "inicio",
				target: "residencia",
				value: 900 / 10,
				color: "orange"
			},
			{
				source: "inicio",
				target: "empresa",
				value: 2 / 10,
				color: "orange"
			},
			{
				source: "residencia",
				target: "cepValido",
				value: 400 / 10,
				color: "orange"
			}
		]
	};

const chartOptions = {
		height: 350,
		fontFamily: "Roboto, sans-serif",
		fontWeight: 600,
		fontSize: "6px"
	};
@junedchhipa junedchhipa added the bug Something isn't working label Nov 22, 2024
@bhaumikspanchal
Copy link
Collaborator

The color of edges is dynamically determined based on the colors of the source and target graph nodes, with color properties supported only for nodes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants