Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

241
Visualizações
kendo chart category axis item labels - Set highlighted labels has wrong alignment

I'm using kendo chart to render out the charts and I want specific labels to be displayed as a bold text, So for that I'm using visual method which help me customize label and render with createVisual()

When I add bold property to label it is not getting aligned as compared to normal label.

code:

const { x, y } = e.rect.origin;
const text = new Text(
                e.text,
                new Point(x, y),
                { font: 'bold 12px "Source Sans Pro",sans-serif' }
            );
const group = new Group();
group.append(text);
return group;

If I remove bold property then it is working as expected.

Thanks in advance.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Thanks for the help guys. Finally I got the solution here it is.

When I was rendering chart Souce Sans Pro font was not getting loaded before kendo render chart so it was using font fall back logic and calculating axis based on that another fonts.

I added font pre loading logic at the index level and now it is working as expected.

This might help others. :)

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda