Skip to content
Snippets Groups Projects
Unverified Commit a4fc3b28 authored by Tom Robinson's avatar Tom Robinson
Browse files

Add click action for area chart area

parent 93f2ce83
Branches
Tags
No related merge requests found
......@@ -373,7 +373,7 @@ function applyChartTooltips(chart, series, isStacked, isScalarSeries, onHoverCha
}
if (onVisualizationClick) {
chart.selectAll(".bar, .dot, .bubble")
chart.selectAll(".bar, .dot, .area, .bubble")
.style({ "cursor": "pointer" })
.on("mouseup", function(d) {
const seriesIndex = determineSeriesIndexFromElement(this, isStacked);
......@@ -408,6 +408,10 @@ function applyChartTooltips(chart, series, isStacked, isScalarSeries, onHoverCha
{ value: d.data.key, column: cols[0] }
]
}
} else {
clicked = {
dimensions: []
};
}
// handle multiseries
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment