Skip to content
Snippets Groups Projects
Commit c1337879 authored by Liwei Lin's avatar Liwei Lin Committed by Shixiong Zhu
Browse files

[SPARK-19330][DSTREAMS] Also show tooltip for successful batches

## What changes were proposed in this pull request?

### Before
![_streaming_before](https://cloud.githubusercontent.com/assets/15843379/22181462/1e45c20c-e0c8-11e6-831c-8bf69722a4ee.png)

### After
![_streaming_after](https://cloud.githubusercontent.com/assets/15843379/22181464/23f38a40-e0c8-11e6-9a87-e27b1ffb1935.png

)

## How was this patch tested?

Manually

Author: Liwei Lin <lwlin7@gmail.com>

Closes #16673 from lw-lin/streaming.

(cherry picked from commit 40a4cfc7)
Signed-off-by: default avatarShixiong Zhu <shixiong@databricks.com>
parent b94fb284
No related branches found
No related tags found
No related merge requests found
...@@ -169,7 +169,7 @@ function drawTimeline(id, data, minX, maxX, minY, maxY, unitY, batchInterval) { ...@@ -169,7 +169,7 @@ function drawTimeline(id, data, minX, maxX, minY, maxY, unitY, batchInterval) {
.style("cursor", "pointer") .style("cursor", "pointer")
.attr("cx", function(d) { return x(d.x); }) .attr("cx", function(d) { return x(d.x); })
.attr("cy", function(d) { return y(d.y); }) .attr("cy", function(d) { return y(d.y); })
.attr("r", function(d) { return isFailedBatch(d.x) ? "2" : "0";}) .attr("r", function(d) { return isFailedBatch(d.x) ? "2" : "3";})
.on('mouseover', function(d) { .on('mouseover', function(d) {
var tip = formatYValue(d.y) + " " + unitY + " at " + timeFormat[d.x]; var tip = formatYValue(d.y) + " " + unitY + " at " + timeFormat[d.x];
showBootstrapTooltip(d3.select(this).node(), tip); showBootstrapTooltip(d3.select(this).node(), tip);
...@@ -187,7 +187,7 @@ function drawTimeline(id, data, minX, maxX, minY, maxY, unitY, batchInterval) { ...@@ -187,7 +187,7 @@ function drawTimeline(id, data, minX, maxX, minY, maxY, unitY, batchInterval) {
.attr("stroke", function(d) { return isFailedBatch(d.x) ? "red" : "white";}) .attr("stroke", function(d) { return isFailedBatch(d.x) ? "red" : "white";})
.attr("fill", function(d) { return isFailedBatch(d.x) ? "red" : "white";}) .attr("fill", function(d) { return isFailedBatch(d.x) ? "red" : "white";})
.attr("opacity", function(d) { return isFailedBatch(d.x) ? "1" : "0";}) .attr("opacity", function(d) { return isFailedBatch(d.x) ? "1" : "0";})
.attr("r", function(d) { return isFailedBatch(d.x) ? "2" : "0";}); .attr("r", function(d) { return isFailedBatch(d.x) ? "2" : "3";});
}) })
.on("click", function(d) { .on("click", function(d) {
if (lastTimeout != null) { if (lastTimeout != null) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment