tiernanmartin / COO-Displacement-Risk

An assessment of displacement risk
https://tiernanmartin.github.io/COO-Displacement-Risk/3-communication/1-bookdown/_book/index.html
1 stars 0 forks source link

Use sparklines in html table popups for housing data #14

Open tiernanmartin opened 7 years ago

tiernanmartin commented 7 years ago

This would demand that more of the KC assessor data be processed, but would provide a clearer picture of the changes in assessed value.

The idea is to have the normal popup table (preferably using DT) with sparkline visualizations included for each record:

This: sparkline-ss-2

With this data: localscape-ss

See https://github.com/htmlwidgets/sparkline

tiernanmartin commented 7 years ago

Useful example of integrating sparkline into a DT table: https://github.com/htmlwidgets/sparkline/issues/22#issuecomment-259748269

tiernanmartin commented 7 years ago

Another instructive example: http://leonawicz.github.io/HtmlWidgetExamples/ex_dt_sparkline.html

timelyportfolio commented 7 years ago

did you ever get this working? would love to see.

tiernanmartin commented 7 years ago

@timelyportfolio unfortunately not.

@tim-salabim suggested embedding the widget in an iframe using mapview::popupGraph().

This works but it is only suitable for a small number of features.

BTW - nice work with the htmlwidget × datatable pattern 🎉

tiernanmartin commented 7 years ago

Neat way of implementing this: http://bl.ocks.org/timelyportfolio/33db1fb9e64257ef7149754bdff0b2e0