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

156
Visualizações
Is it possible to force one specific item to be horizontal?

I'm working on a wordcloud for my personal website. I'm really happy with how it looks so far, but I want to force the biggest word to be horizontal. I have looked through the Wiki and haven't been able to find how to do it.

I have tried with both angles: tag as well as rotation: tag.

Does anyone know how to keep that one word fixed to horizontal in amchart 5 wordcloud?

Parts of the code:

var root = am5.Root.new("content-chart-frontpage-wordcloud-div");

root.setThemes([
  am5themes_Animated.new(root)
]);

var container = root.container.children.push(am5.Container.new(root, {
  width: am5.percent(100),
  height: am5.percent(100),
  layout: root.verticalLayout
}));
    
var series = container.children.push(am5wc. WordCloud.new(root, {

  minFontSize:am5.percent(10),
  maxFontSize:am5.percent(50),

  categoryField: "tag",
  valueField: "weight",
  calculateAggregates: true
}));

series.set("heatRules", [{
  target: series.labels.template,
  dataField: "value",
  min: am5.Color.fromString("#9f8155"),
  max: am5.Color.fromString("#bda684"),
  key: "fill"
}]);
    
series.labels.template.setAll({
  paddingTop: 5,
  paddingBottom: 5,
  paddingLeft: 5,
  paddingRight: 5,
  fontFamily: "Norse",
  cursorOverStyle: "pointer"
});

series.data.setAll([

  //Most important word, horizontal
  { tag: "data", weight: 60 },

  //Words scraped from the website
  { tag: "grafana", weight: 12 },
  { tag: "prometheus", weight: 10 },
  { tag: "export", weight: 8 },
  { tag: "dashboards", weight: 8 },
  { tag: "visualize", weight: 4 },
  ...      
]);
about 4 years ago · Juan Pablo Isaza
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