WordPress database error: [Can't create/write to file '/tmp/#sql-temptable-4db-1291fa-4.MAI' (Errcode: 28 "No space left on device")]SELECT p.* FROM wp_mdb_forum_posts AS p LEFT JOIN wp_mdb_forum_posts AS q ON( q.Id = p.ParentId AND p.Id = q.AcceptedAnswerId ) WHERE p.PostTypeId = 2 AND p.ParentId = 118776 GROUP BY p.Id ORDER BY CASE WHEN q.Id IS NOT NULL THEN 1 ELSE 0 END DESC, p.UpvoteCount DESC, p.CreationDate ASC
Topic: How to get point data on chart click?
frank81818@hotmail.com
asked 3 years ago
*Expected behavior*Click the bar of chart, get the label/data value of selected.
Actual behavior
jquery can get click event , how to get the clicked data value?
Resources (screenshots, code snippets etc.)Here's my code: const dataBar = { type: 'horizontalBar', data: { labels: names, datasets: [ { data: series, }, ], }
};
const eventOption = {
options: {
// This chart will not respond to mousemove, etc
onClick: function (e,d) {
console.log(d);
//how to get the label name in the _modal?
},
title: {
display: true,
text:"by status",
},
legend: {
display: false,
}
}
};
new mdb.Chart(document.getElementById('pills-3a'), dataBar, eventOption);
Thanks!
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- User: Free
- Premium support: No
- Technology: MDB Standard
- MDB Version: MDB5 3.11.0
- Device: pc
- Browser: chrome
- OS: windows
- Provided sample code: No
- Provided link: No