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.

access tick.format via api?

See original GitHub issue

I have a timeseries graph by weeks.

So, I have the tick format set to: ‘%Y-%m-%d’

When you click “by month” I reload the data to show by month.

When that happens I would like to do something like:

chart.axis.x.tick.format = '%Y-%m';  // e.g. drop day since we're grouping by month

Or:

chart.axis({
      x: {
        tick: {
          format = '%Y-%m'
        }
      }
    });

Is that possible? If not, would it be possible to add that to the API?

Thanks! C3 is great.

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Reactions:7
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
masayuki0812commented, Jun 3, 2014

Hi, Currently there is no api to change the axis.x.tick.format, but you can do this by defining a variable outside of the format function. Please see this fiddle http://jsfiddle.net/hG2eZ/2/ .

0reactions
masayuki0812commented, Jun 3, 2014

All right. I’ll close this issue. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to retrieve page-based data using Tick History REST API
The following article provides developers a method to use Refinitiv Tick History (RTH) - REST API to retrieve page-based data which mainly used...
Read more >
How to Use an API: Just the Basics 2022 | TechnologyAdvice
The easiest way to start using an API is by finding an HTTP client online, like REST-Client, Postman, or Paw. These ready-to-use tools...
Read more >
Setting up CloudWatch logging for a REST API in API Gateway
Learn how to set up CloudWatch logging in Amazon API Gateway. ... The access log format must include at least $context.requestId or $context....
Read more >
Understanding And Using REST APIs - Smashing Magazine
Everything you need to know about REST APIs, from start to finish. ... a common format for sending and requesting data through a...
Read more >
Query data using the Web API (Microsoft Dataverse)
This is a sub-set of the 11.2.5.1.2 Built-in Query Functions. Date , Math , Type , Geo and other string functions aren't supported...
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