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

Different labels on the X-axis (scaleLabel) and in the tooltip (tooltipLabel) #48

Closed
Fitzchev opened this issue Apr 19, 2017 · 2 comments
Milestone

Comments

@Fitzchev
Copy link

Fitzchev commented Apr 19, 2017

Hi,

Is there currently a way to do this kind of customization, directly or using an override? I need to display dates without hours in the scale but the full label in the tooltip.

See the jsfiddle below, someone did something similar in javascript, but I don't think that your wrapper implements tooltipTemplate yet.

https://jsfiddle.net/7z1s1feg/

Thanks in advance.

@kegoe
Copy link
Contributor

kegoe commented Oct 12, 2018

Note, that the above syntax refers to Chart.js 1.x API

kegoe added a commit to kegoe/vaadin-chartjs that referenced this issue Oct 12, 2018
@kegoe
Copy link
Contributor

kegoe commented Oct 12, 2018

#87 solves this using the callbacks provided by the Charts.js 2.x API

moberwasserlechner pushed a commit that referenced this issue Oct 31, 2018
* General callback support, callback property for formatting ticks (#39)

* Callbacks for tooltips (#48)
@moberwasserlechner moberwasserlechner added this to the 1.4.0 milestone Feb 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants