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

149
Visualizações
Mixing styles in Vis.js charts

I am trying to create a 2D chart with a mix of bar graphs and line graphs using Vis.js timeline (graph2d).

I have tried using groups to define the different graphs, which works fine as long as the groups are of the same style.

Specifying the style of each group by adding the style as an option to each group, as shown below, does nothing.

var groups = new vis.DataSet();
groups.add({ id: 0, content: 'group0', options:{style:'bar'}});
groups.add({ id: 1, content: 'group1', options:{style:'line'}});

The style of all groups in the chart is the same and seems to be only defined by the style attribute specified directly in the options passed to the graph2d constructor.

I have searched around (Google, SO, the Vis.js Github page, etc.), but it does not seem like an issue anyone else has - or no one is using mixed charts, which I doubt).

Is this not possible with Vis.js (old documentation and examples suggests that it has been possible)?

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