Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

103
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!