score:1
Accepted answer
you should use tooltiptemplate option:
var options = {
// string - template string for single tooltips
tooltiptemplate: "<%= label %> january: <%= value %>"
};
window.myline = new chart(ctx).line(data, options);
here is sample: https://jsfiddle.net/wckfhrsa/7/
also, check more tooltip options global chart configuration
Source: stackoverflow.com
Related Query
- Display with Month name in the Tooltip
- Angular chart how to show the legend data value by default along with legend name
- How to show dynamic dates with month name of current month and previous month in momentjs?
- Angular 2: How to pass my API data to graph and Display the Graph with data
- Always show last tooltip on all datasets, leave the rest to display on hover? ChartJS
- Display a single tooltip with Chart.JS?
- Problem with script src for Chart.js. The CDN for Chart.js funtions fine, so my code is ok. Somehow I'm not linking the file correctly
- The chart doesn't display the data from my call to the API with Axios
- How to display Tooltip without hovering pie chart with Chart.JS
- How to display the more then one value inside tooltip in bar chart.js?
- ChartJs How to display horizontal and vertical lines through the datasets points with their values on axes?
- Display Chartjs tooltip values outside the canvas - multi line chart
- Is it possible to display values where the display ends instead of on top of the points with chartjs?
- Chart JS: Donut/Doughnut Chart: Tooltip to be shown always for all the data. All tooltip is not shown when multiple data are with 0 data
- JavaScript Chart.js - Custom data formatting to display on tooltip
- ChartJS New Lines '\n' in X axis Labels or Displaying More Information Around Chart or Tooltip with ChartJS V2
- What's the most effective way to implement a radar plot with 50 points at arbitrary locations using chart.js
- Display line chart with connected dots using chartJS
- How to display Line Chart dataset point labels with Chart.js?
- chart js tooltip how to control the data that show
- Problem for display a chart with Chart.js and Angular
- How to display inline values in a stacked bar chart with Chart.js?
- ChartJS with AngularJS - Canvas won't display anything
- Add all data in the tooltip of Chart JS
- How to display data labels outside in pie chart with lines in ionic
- Testing Chart.js with Jest/Enzyme - Failed to create chart: can't acquire context from the given item
- Chart.js: Display only the horizontal gridline at zero index
- How to display the labels in doughnut chart using ng2 charts?
- Is it possible to combine two Y axes into a single tooltip with ChartJS 2?
- what is the correct way to destructure a nested json object with fetch?
More Query from same tag
- How to cut line graph in ChartJS
- Chart.js How to get min-max values of X axis?
- Pie Charts JS: How to set units?
- CharJs scrolling page on mobile
- Chart.js Bar and Line chart
- Chart.js how to use scriptable options
- How to configure Chartjs Bar Stacked Chart in Laravel 8
- How can I create a time series line graph in chart.js?
- JavaScript implementation doesnt work (Chart.js)
- Chart.js v2 formatting time labels
- Creating and Updating Graph in HTML and Javascript
- How to draw baseline for bar chart in chart.js
- Chart.js Fill color at null line and null points Tooltip
- How to use ChartJS object in a click event handler?
- Chart.js - displaying multiple line charts using multiple labels
- Why can't I use a variable in same function scope in Javascript?
- How do I get the current step size of a chartjs chart whose stepSize I have not defined?
- How to toggle between Custom tooltip and normal tooltip in chartjs and angular
- Change the Y-axis values from real numbers to integers in Chart.js
- Chart.js - Unable to see tooltips on hover while using moment
- Chartjs - Dataset colors are getting overloaded with angular-chartjs
- chart.js mixed chart types
- Performance issue, what causes it?
- How to get x-axis value in chart as string?
- min and max tag is not showing in chart chart.js
- Type check for getElementById only works with optional chaining, not with type check
- Getting data into script tag from route?
- How can I display the xAxes and yAxes data in the tooltip, Chart JS?
- Isn't draws vertical line on hover when I move cursor fast
- How do you create a Radar chart using chart.js with a y-axis of 0 to 100?