Customizing / Over Riding a Label in ChartsJS

0
0

Hi,

I was wondering if it was possible to Over Ride or Customize a Label for a Chart without modifying the underlying Dataset Value?

My use case is as follows :-

  • Bar Chart Which Measures Performance based on a Minutes Seconds Value
  • So if one of the Dataset Vales was 2.50, i use this value to correctly scale the value so it is half way between 2 and 3
  • When I hover over I get the Tool Tip of 2.50 but really in Minutes / Seconds it should be 2:30 (aka 2 and a half minutes)
  • I’m assuming I cant change the DataSet ToolTip which I can live with but hoping the DataLabels at the top (Red Squares) I can over ride.

I cant seem to see any options to set a value like this.

Thanks,

Brayden.

Attachment
  • You must to post comments
0
0

Hi Brayden,

Attached is a sample that might suite your needs.

You can use the Formatted property of the DataSet that let’s you display your own custom formatted labels. Please make sure that you have DataLabel Display option set to True.

HTH,
Alaa

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.