After reading a post at Edward Tufte's blog I've had a quick go at creating a 'slopegraph' in Qlikview but am stuck on a label placement issue.
The problem is after using the script to, rather clumsily, create a resident table with new data points positioned to show a series of 'stacked'
lines, each tracing a trend in UN Life Expectancy data per country, I ran out of space for the expression that holds the labels as data point values.
In order to have enough space on the left of the plot area I've added two dummy years to the data on the x-axis and hidden them with a text block, which is a bit of an ugly hack by anyones standards.
There must be a better way - I'd appreciate any ideas of how to add that space because the slopegraph thing does show up 'lines of unusual slope' quite well.
Using those dummy years removes the only interaction that still works which is the click and drag selection - if I could fix that they may be useful, even if just for a demo.
See attached example qlikview that points at the UN HDR data site for loading a table of Life Expectancy data (one possible test example mentioned on the Tufte blog) and an image of the chart (the 3 dots in the bottom left hide the extra years)
I've been working with that extension object and it is very effective, thanks for creating it.
For my own purposes I was looking for something with slightly simpler parameters where the user would choose an x and y dimension only with a single expression and the object would set the titles to the minimum and maximum values in the y dimension. I also wanted to see a mini-chart in the trend area of the pop-up window..so I fiddled with the D3 code to get a layout like the attached..
I used Ben Christensons simple D3 sparkline example for the mini chart - is it better as a double Tufte chart type combination ?, maybe some kind of win/loss mini chart would also be good,