Skip to content

Conversation

@BenFradet
Copy link
Contributor

Moved where the X axis' name (#batches) is written in histograms in the spark streaming web ui so the histograms and the axis' name do not overlap.

@BenFradet
Copy link
Contributor Author

@zsxwing Can you have a look, please?

@andrewor14
Copy link
Contributor

add to whitelist

@andrewor14
Copy link
Contributor

Hi @BenFradet, could you post a screenshot of what this looks like before and after your change?

@BenFradet
Copy link
Contributor Author

Hi @andrewor14,

As I said on the JIRA, I'm not able to post screenshots at this time, sorry, but I might have the time this weekend.

@SparkQA
Copy link

SparkQA commented Jun 17, 2015

Test build #35052 has finished for PR 6845 at commit edd0936.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@BenFradet
Copy link
Contributor Author

As promised, here are the screenshots:

Before:
before

After:
after

@tdas
Copy link
Contributor

tdas commented Jun 20, 2015

Can you provide the screenshot of the full UI so that we get sense of the overall aesthetics?

I think #batches should be aligned with the numbers on the axes, but I am not sure until I see the full screenshot

Also @zsxwing what do you think?

@andrewor14
Copy link
Contributor

Looks great. In any case it shouldn't overlap with the bars.

@BenFradet
Copy link
Contributor Author

@tdas I'll see what I can do.

@BenFradet
Copy link
Contributor Author

@tdas

Do you think we should align units: #batches and events/sec?

Here is the before:
before

And, here is the after:
after

@zsxwing
Copy link
Member

zsxwing commented Jun 20, 2015

Looks a lot of space on the right. Could you just move #batches on the top of the blue bar?

@BenFradet
Copy link
Contributor Author

Do you mean above the axis?

@zsxwing
Copy link
Member

zsxwing commented Jun 20, 2015

Do you mean above the axis?

No. Still overlap. But #batches is on the top.

@BenFradet
Copy link
Contributor Author

Mmh, in this case I think we won't be able to see #batches written since the contrast won't be high enough between gray and dark blue.

@BenFradet
Copy link
Contributor Author

Maybe we should put the axis on the bottom and #batches under the axis.

@tdas
Copy link
Contributor

tdas commented Jun 20, 2015

I dont mind the extra white space at the right. Rather what is bugging me is the batch is not really aligned with x axis / horizontal axis. I mean, if we have to make the batches sit outsides the max-x, then might as well as align it with the numbers (10, 20, 30) on the horizontal axis.

@BenFradet
Copy link
Contributor Author

Agreed, I'll try to update the PR tomorrow.

@BenFradet
Copy link
Contributor Author

I have this version which aligns with the units of the lineplot events/sec:

after

Or do you want to align #batches with the ticks (10, 20, 30, ...)?

@SparkQA
Copy link

SparkQA commented Jun 21, 2015

Test build #35390 has finished for PR 6845 at commit 0564b62.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@tdas
Copy link
Contributor

tdas commented Jun 22, 2015

Yeah, I wanted it aligned with 10, 20, 30 ... all the letters on same line.

@BenFradet
Copy link
Contributor Author

I adjusted #batches so it's aligned with the ticks as well as the units on the timeline graph (events/sec and sec). I'll post a screenshot later.

@SparkQA
Copy link

SparkQA commented Jun 22, 2015

Test build #35464 has finished for PR 6845 at commit dd46f98.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@BenFradet
Copy link
Contributor Author

Here's the final screenshot after

@tdas
Copy link
Contributor

tdas commented Jun 23, 2015

Test this again.

@BenFradet
Copy link
Contributor Author

Jenkins, retest this please.

@zsxwing
Copy link
Member

zsxwing commented Jun 23, 2015

I just tried this PR. There is still one problem. The graphs in the inner table does not align with the outer ones.

issue

Could you change 300px to 350px in this line

<th style="width: 300px;">Histograms</th></tr>
and change 292px to 342px in this line
<td><div style="width: 292px;">{receiverLastError}</div></td>

This would fix the alignment issue.

@SparkQA
Copy link

SparkQA commented Jun 23, 2015

Test build #35540 has finished for PR 6845 at commit eb610ee.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@BenFradet
Copy link
Contributor Author

@zsxwing Thanks for spotting this, I will update the PR later today.

@BenFradet
Copy link
Contributor Author

Here's the latest screenshot:
now

@SparkQA
Copy link

SparkQA commented Jun 23, 2015

Test build #35562 timed out for PR 6845 at commit b63695f after a configured wait of 175m.

@tdas
Copy link
Contributor

tdas commented Jun 23, 2015

test this please.

@SparkQA
Copy link

SparkQA commented Jun 23, 2015

Test build #35582 has finished for PR 6845 at commit b63695f.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@zsxwing
Copy link
Member

zsxwing commented Jun 24, 2015

LGTM

@asfgit asfgit closed this in 1173483 Jun 24, 2015
asfgit pushed a commit that referenced this pull request Jun 24, 2015
…' name in Spark Streaming UI

Moved where the X axis' name (#batches) is written in histograms in the spark streaming web ui so the histograms and the axis' name do not overlap.

Author: BenFradet <[email protected]>

Closes #6845 from BenFradet/SPARK-8399 and squashes the following commits:

b63695f [BenFradet] adjusted inner histograms
eb610ee [BenFradet] readjusted #batches on the x axis
dd46f98 [BenFradet] aligned all unit labels and ticks
0564b62 [BenFradet] readjusted #batches placement
edd0936 [BenFradet] moved where the X axis' name (#batches) is written in histograms in the spark streaming web ui

(cherry picked from commit 1173483)
Signed-off-by: Tathagata Das <[email protected]>
@tdas
Copy link
Contributor

tdas commented Jun 24, 2015

Merged in master and branch-1.4. Thanks!

nemccarthy pushed a commit to nemccarthy/spark that referenced this pull request Jun 25, 2015
…' name in Spark Streaming UI

Moved where the X axis' name (#batches) is written in histograms in the spark streaming web ui so the histograms and the axis' name do not overlap.

Author: BenFradet <[email protected]>

Closes apache#6845 from BenFradet/SPARK-8399 and squashes the following commits:

b63695f [BenFradet] adjusted inner histograms
eb610ee [BenFradet] readjusted #batches on the x axis
dd46f98 [BenFradet] aligned all unit labels and ticks
0564b62 [BenFradet] readjusted #batches placement
edd0936 [BenFradet] moved where the X axis' name (#batches) is written in histograms in the spark streaming web ui

(cherry picked from commit 1173483)
Signed-off-by: Tathagata Das <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants