question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add the tickAmount for datetime!

See original GitHub issue

Feature request

In the documentation is mentioned: Note: tickAmount doesn’t have any effect when xaxis.type = datetime

I don’t understand why this has been removed and what is the workaround if you want to add a chart that works base on categories that contain an array of times:

image

and you just want to show the label for only each hour:

image

and then when you hover on the chart you’ll be able to see them per 5 minutes. Is there any other way to achieve that?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
junedchhipacommented, Jan 24, 2020

If you don’t want auto-generated timescale x-axis, you can easily switch to xaxis.type: 'category' and the x-axis will display all the labels (the labels will only be hidden if they overlap).

The only downside to this is that you will have to format the x-axis labels using a 3rd party library (such as day.js) to make it look pretty.

0reactions
github-actions[bot]commented, Oct 24, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

xaxis - ApexCharts.js
tickAmount : Number. Number of Tick Intervals to show. Note: tickAmount doesn't have any effect when xaxis.type = datetime.
Read more >
Highcharts - TickInterval with datetime values - Stack Overflow
This answer is assuming you indeed want tickInterval and not tickAmount . I've successfully used tickInterval for datetime axes.
Read more >
xAxis.tickAmount | highcharts API Reference
For datetime axes, this decides where to put the tick between weeks. 0 = Sunday, 1 = Monday. Defaults to 1 . Try...
Read more >
Apexchart Timeseries Fixing tooltip date with min ... - CodePen
This uses min max and tickAmount to solve the problem. ... "Note: tickAmount doesn't have any effect when xaxis.type = datetime" So that...
Read more >
DateTime.Ticks Property (System) - Microsoft Learn
Gets the number of ticks that represent the date and time of this instance.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found