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

109
Visualizações
How do I remove/disable from xValue from showing in the graph when a mouse is hovered?

I am using JSCharting library to draw this line chart and in the line chart when you hover your mouse over the graph you get details about the point which straight above or below your mouse pointer. like this:

picture.

Here is my code for drawing the chart:

    JSC.Chart('chartDiv', {
    title_label_text: 'ICryptoWorld Price Chart',
    legend_visible: false,
    type: 'line',
    xAxis_crosshair_enabled: true,
    yAxis: { scale_minorInterval: 25, formatString: 'c' },
    defaultSeries_lastPoint_label_text: '<b>%seriesName</b>',
    defaultPoint_tooltip: `%seriesName : $ <b>%yValue</b>  <br>Date: <b>%zValue<b><br>`,
    series: series
});

So, as you see:

picture

it shows USD and Date but there is also an value above them (In this case it is 1641475802). How do I remove it or disable it from showing?

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

0

Since you enable the crosshair, the main tooltip template for all series is under defaultTooltip_label_text and by default is `%xValue %values'. You can change it to just '%values' which will show only the point tooltips.

   JSC.Chart('chartDiv', {
    title_label_text: 'ICryptoWorld Price Chart',
    legend_visible: false,
    type: 'line',
    xAxis_crosshair_enabled: true,
    defaultTooltip_label_text:'%values',
    yAxis: { scale_minorInterval: 25, formatString: 'c' },
    defaultSeries_lastPoint_label_text: '<b>%seriesName</b>',
    defaultPoint_tooltip: `%seriesName : $ <b>%yValue</b>  <br>Date: <b>%zValue<b><br>`,
    series: series
});

Hope that helps.

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