Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
added test
  • Loading branch information
LeeLenaleee committed Nov 29, 2021
commit 2a3a69cda151ac4043e3463eb25ae3157283d9ee
34 changes: 34 additions & 0 deletions test/fixtures/core.interaction/drawActiveElementsOnTop-false.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
module.exports = {
config: {
type: 'bubble',
data: {
datasets: [{
data: [
{ x: 1, y: 1, r: 80 },
{ x: 1, y: 1, r: 20 }
],
drawActiveElementsOnTop: false,
backgroundColor: (ctx) => (ctx.dataIndex === 1 ? "red" : "blue"),
hoverBackgroundColor: "yellow",
hoverRadius: 0,
}]
},
options: {
plugins: {
tooltip: false,
legend: false
},
}
},
options: {
canvas: {
width: 600,
height: 400
},
async run(chart) {
const point = chart.getDatasetMeta(0).data[0];
await jasmine.triggerMouseEvent(chart, 'click', {y: point.y, x: point.x + 25});
}
}
};

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.