I'm having an issue modifying the tooltip, I was requested to add dollar signs before each value, to do this I ended up pulling the default tooltip callback out of the Chart.BoxPlot.js file and modifying it in the options of my chart instance. However, this also required that I pull out the toFixed function as well.
This works, and I was able to add my dollar sign, but it felt a bit hacky, I was wondering if there is an intended procedure for this?
the version that you are using in your codepen is the original and not this forked version. Please ask your question in the original repository instead, since this fork as highly changed in the mean time
I'm having an issue modifying the tooltip, I was requested to add dollar signs before each value, to do this I ended up pulling the default tooltip callback out of the Chart.BoxPlot.js file and modifying it in the options of my chart instance. However, this also required that I pull out the toFixed function as well.
This works, and I was able to add my dollar sign, but it felt a bit hacky, I was wondering if there is an intended procedure for this?
Codepen of this in action: https://codepen.io/djones4822/pen/MWmbBqa
Code used:
Extracted from BoxPlot, add anywhere in your js file:
Add to the options section of the chart definition: