sfu-natlang / lensingwikipedia

Lensing Wikipedia is an interface to visually browse through human history as represented in Wikipedia. This the source code that runs the website:
http://lensingwikipedia.cs.sfu.ca
Other
11 stars 4 forks source link

Comparison view #122

Closed avacariu closed 9 years ago

avacariu commented 9 years ago

This issue is to keep track of my progress on the comparison view.

Features

All work is in the ngram branch.

anoopsarkar commented 9 years ago

I think we can merge the ngram branch without the 3rd and 6th features above. If you are happy with the functionality and it is reasonably responsive we can merge.

avacariu commented 9 years ago

I still have one small bug where the lines are drawn a bit outside of the plot. I've been trying to fix it, but I don't see why it's not working; I'm doing the exact same thing as several examples online (which work fine).

@theq629 If you've got some time, do you think you could take a look at the branch to see if I'm using clip-path incorrectly? I'm using it the same as in the Timeline tab, but it's somehow not working for me. The browser's detecting the target properly, but it's ignoring the size/shape for whatever reason...

avacariu commented 9 years ago

Nevermind, it works now! I'll clean it up and then we can probably merge it.

avacariu commented 9 years ago

@anoopsarkar Other than the names showing up at the top of each line, everything else works properly. I haven't implemented the names thing because it would end up being pretty slow, and I think it'd end up being more difficult to use.

The main issue is that currently, the user can click on a name to make the line disappear from the graph (thus cleaning it up if you're only interested in a small time period, and one of the lines is causing everything to be scaled down). If we put the name on the plot, then it'd have to disappear when it's clicked, so the user wouldn't be able to bring the line back.

Secondly, it'd be more difficult to show the number of events; the legend shows the raw number of events for that year, while the plot shows smoothed values (which because of interpolation are even less accurate). Having tooltips would make the graph look inaccurate and obscure part of the plot. I think a legend separate from the plot is the best solution.

I can still try to implement it, but I can't think of a design which keeps it fast and usable :confused:

anoopsarkar commented 9 years ago

Currently, how do we know which line corresponds to which entity? Is it based on the legend and matching the color from the legend to the plot?

avacariu commented 9 years ago

@anoopsarkar I think this feature's done. I want to look into speeding it up, but otherwise the interface is functional; I've implemented the modifications we talked about on Monday (bolded lines, legend on the right, improved spacing in the controls).

If you find a bug, I can work on fixing it tomorrow (or technically today - Wednesday Feb 4).

anoopsarkar commented 9 years ago

Let us live dangerously. Can you send me a pull request.

avacariu commented 9 years ago

I just realized there are some merge conflicts with master I have to resolve before doing a pull request. I didn't realize we reverted to the old way of creating the tags (i.e. revert from using a function to writing the HTML ourselves).