Skip to content
This repository has been archived by the owner on Jul 29, 2019. It is now read-only.

can we format minor labels #2464

Closed
omkarbodke opened this issue Dec 16, 2016 · 4 comments
Closed

can we format minor labels #2464

omkarbodke opened this issue Dec 16, 2016 · 4 comments

Comments

@omkarbodke
Copy link

image
I need 14 to be displayed below We and 15 below Th and so on

@omkarbodke omkarbodke changed the title can we insert html tag in minor labels can we format minor labels Dec 16, 2016
@yotamberk
Copy link
Contributor

@timelineAxis you have a format option you can pass a function of the way you want to display the labels. It will look like this:

function format({
  minorLabels: Function(date: Date, scale: Number, step: Number),
  majorLabels: Function(date: Date, scale: Number, step: Number)
}

@omkarbodke
Copy link
Author

omkarbodke commented Dec 19, 2016

@yotamberk : I tried with minorLabels: Function(date: Date, scale: Number, step: Number) {} but its not support "a \n b" or "a <br/> b"

@yotamberk yotamberk reopened this Dec 20, 2016
@yotamberk
Copy link
Contributor

@timelineAxis You right. It isn't possible yet. I've added a fix for this here: #2493

@yotamberk
Copy link
Contributor

This will be available in the v4.18.0 or the current develop branch

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants