score:0
no, since chart.js v3 the click event is limited to the chart area only so you will need to add your own click listener to the canvas.
in this click listener you can then use the getvalueforpixel
to get the x label
Source: stackoverflow.com
Related Query
- event click only x-axis label chartJS
- show label in tooltip but not in x axis for chartjs line chart
- Click event on stacked bar chart - ChartJs
- Chartjs change the specific label color in x axis in callback function
- Map event position to y axis value in chartjs line chart
- How to get onClick Event for a Label in ChartJS and React?
- Chart Click Event - Clicking label of doughnut chart, doesn't return label ng2-charts
- How do I add time sourced from an external source as an X axis to a ChartJS graph?
- Chartjs 3.x - How to duplicate X axis on both sides of horizontal bar chart with only 1 dataset?
- ChartJS align axis label to the top
- How to draw a range label on x axis using chartJS
- How to set ChartJS Axis label with PrimeFaces
- Chart with Time axis only displaying first grid line and tick label (unitStepSize)
- How to register plot or label click event in chart.js
- Click every label onload ChartJS
- Chartjs chart with only one axis
- VueJS + Chartjs - Chart only renders after code change
- How to show label at right side of Y axis same as left side of Y Axis ChartJS
- I am using chart js to draw a chart. I did everything right but i don't know why the x axis and y axis label is not comming in chart. code below
- Change Chartjs label color on click without losing hover
- ChartJS fails to render one of the lines in cartesian chart following update after change to max Y axis label value
- How to use ChartJS object in a click event handler?
- Add a click event to the bar chart of chartjs
- How to set ChartJS Y axis title?
- ChartJS New Lines '\n' in X axis Labels or Displaying More Information Around Chart or Tooltip with ChartJS V2
- Truncating canvas labels in ChartJS while keeping the full label value in the tooltips
- ChartJS - Draw chart with label by month, data by day
- Chart Js change text label orientation on Ox axis
- How to add an on click event to my Line chart using Chart.js
- Make x label horizontal in ChartJS
More Query from same tag
- How to wrap legend text in Chartjs?
- Chart.js Chart in Angular does not load until resizing browser window
- How can i add an image as background in Chartjs?
- How to change the display of an axis Chart.js
- How to make a chart with chartjs and Angular?
- ChartJS with React: Only one value showing on time chart
- ChartJS multiple dataset issue. second dataset gets over 1st instead of overlaying
- React render function preventing creating new canvas element on each time invoked - Charts.js
- Pie chart.js - show all 3 segment borders
- how can I render multiple charts in chartjs?
- ChartJS remove previous chart when making new one
- Is it possible to draw a bar and arrow/pointer on the right side of a chart?
- Why doesn't Chart.js display my output (result of a const function)?
- Animated Word Web in Javascript
- Chart.js multiple series with same scale
- How can I configure Chart.js in a Electron app?
- JSON Data in javascript
- Chart.js Fill color at null line and null points Tooltip
- Chart.JS does not render and display a sad face icon
- chart js using for loop
- Chart.js not displaying in box
- ChartJs not working with this JSON Object
- Glow effect on line bar using Chart.js in React
- Drawing a line at a fixed angle relative to data with Chart.js
- ChartJs - set x-axis ticks at specified/fixed intervals
- How to decrease the interval for Horizontal Stacked bar in ChartNew.js?
- How to make Chart.js with dynamic months on x-axis
- chartjs: set default min for the line chart
- Chart.js label and point getting cutoff on the right
- ChartJS - Returning labels and data from server on different calls