Loading...
 

Datavis Convergence

As of 2016-12, there are duplicate ways to do Data Visualization (dev) in Tiki. See: Visualization (doc)

There are several ways to make even a simple pie chart. And some more libs are considered for integration. Usually, the Tiki community converges / concentrates its efforts on a small number of powerful tools. If there is duplication, it's because one approach is easy / out-of-the-box, and another is very powerful (ex.: PluginCustomSearch vs PluginTrackerFilter) This page is to discuss / debate the ideal roadmap.

  • What to integrate
  • What to use for what use case
  • What to deprecate


Here is related discussion on the Tiki developer mailing list: https://tiki.org/forumthread62514

Contents of this page:

Major options

The major options are R, Kibana, plotly.js, D3.js and Chart.js

1.1.1. R

Pros

  • Already well developed within the Tiki ecosystem: https://r.tiki.org/
  • It's more than just charts: it can do dashboards, complex tables, calculations, htmlwidgets, book creation, markdown conversion, etc.
  • it has exponential growth of packages: plot.ly, many d3 wrappers, scientific data from/for any discipline, ...


Cons

  • Adds a dependency
  • Does not run on shared hosting

1.1.2. Kibana

Pros


Cons

  • Relies on Elasticsearch
  • Does not run on shared hosting
  • Missing some charts already requested in some projects like boxplots.

1.1.3. plotly.js

Pros


Cons

  • Heavy

1.1.4. D3.js

Pros


Cons

1.1.5. Chart.js

Uses Canvas (and not SVG)

Pros


Cons

1.2. Minor options

Shouldn't we improve the current charting and visualization capabilities the we (more-or-less) have already in Tiki?

1.2.1. Raphael.js in Spreadsheets

Spreadsheets

They use raphael.js (http://dmitrybaranovskiy.github.io/raphael/), but some love is needed to fix some chart display & usability bugs. They look like "low hanging fruit" to some of us, specially for the basic needs of fairly simple charts, and PluginChart is indeed needed to work again to visualize those charts from tiki spreadsheets, and ideally, charts from any new lib intergrated (besides, or instead, of raphael.js in tiki spreadsheets).

Parameters for the pie chart through tiki-graph_sheet.php?sheetId=1&graphic=PieChartGraphic&width=500&height=400&renderer=PNG

Image

Resulting pie chart

Image


1.3. Other research


Slides available: https://goo.gl/77dwl5

1.4. Plot.ly vs Chart.js

The two realistic contenders for charts in Tiki, without an external dependency (like R) are:

Criteria Plot.ly Chart.js
Can be included in newsletters Yes? Image export Would require Converting dynamic JavaScript content into static assets Actually not so complicated for ChartJS.
Can be included in mPDF Already done for raster image export (native pdf export isn't in the OSS version ) Would work with same solution as for newsletters
Client javascript Size heavy
(plotly-latest.min.js is 760k)
lightweight
(vendor_bundled/vendor/chartjs/Chart.js/Chart.min.js is 150k)
Popularity Good Most popular
Diversity of charts Most Good
Technology Built on top of d3.js and stack.gl Canvas

Note that in both case, using them server side is pretty heavy, might be an issue on shared hosting.

See also:
https://www.openhub.net/p/_compare?project_0=Chart-js&project_1=plotly.js
http://www.chartjs.org/docs/latest/notes/comparison.html
https://blog.sicara.com/compare-best-javascript-chart-libraries-2017-89fbe8cb112d#66bc
https://source.opennews.org/articles/what-i-learned-recreating-one-chart-using-24-tools/


Alias names for this page:
DatavisConvergence

Keywords

The following is a list of keywords that should serve as hubs for navigation within the Tiki development and should correspond to documentation keywords.

Each feature in Tiki has a wiki page which regroups all the bugs, requests for enhancements, etc. It is somewhat a form of wiki-based project management. You can also express your interest in a feature by adding it to your profile. You can also try out the Dynamic filter.

Accessibility (WAI & 508)
Accounting 7.x
Administration
Ajax 2.x
Articles & Submissions
Backlinks
Banner
Batch 6.x
BigBlueButton audio/video/chat/screensharing (5.x)
Blog
Bookmark
Browser Compatibility
Calendar
Category
Chat
Comment
Communication Center
Consistency
Contacts Address book
Contact us
Content template
Contribution 2.x
Cookie
Copyright
Credits 6.x
Custom Home (and Group Home Page)
Database MySQL - MyISAM
Database MySQL - InnoDB
Date and Time
Debugger Console
Directory (of hyperlinks)
Documentation link from Tiki to doc.tiki.org (Help System)
Docs 8.x
DogFood
Draw 7.x
Dynamic Content
Preferences
Dynamic Variable
External Authentication
FAQ
Featured links
Feeds (RSS)
File Gallery
Forum
Friendship Network (Community)
Group
Help
History
Hotword
HTML Page
i18n (Multilingual, l10n, Babelfish)
Image Gallery
Import-Export
Install
Integrator
Interoperability
Inter-User Messages
InterTiki
jQuery
Kaltura video management
Karma
Live Support
Logs (system & action)
Lost edit protection
Mail-in
Map
Menu
Meta Tag
Missing features
Visual Mapping 3.x
Mobile Tiki and Voice Tiki
Mods
Modules
MultiTiki
MyTiki
Newsletter
Notepad
OS independence (Non-Linux, Windows/IIS, Mac, BSD)
Organic Groups (Self-managed Teams)
Payment 5.x
PDF
Performance Speed / Load / Compression / Cache
Permission
Poll
Profiles
Quiz
Rating
Realname
Report
Revision Approval
Score
Search engine optimization (SEO)
Search
Security
Semantic links 3.x
Share
Shopping Cart 5.x
Shoutbox
Site Identity
Slideshow
Smarty Template
Social Networking
Spam protection (Anti-bot CATPCHA)
Spellcheck
Spreadsheet
Staging and Approval
Stats
Survey
Syntax Highlighter (Codemirror)
Tablesorter
Tags 2.x
Task
Tell a Friend, alert + Social Bookmarking
Terms and Conditions
Theme
TikiTests 2.x
Timesheet
Token Access
Toolbar (Quicktags)
Tours
Trackers
TRIM
User Administration
User Files
User Menu
Watch
WebHelp
Webmail and Groupmail
WebServices 3.x
Wiki 3D
Wiki History, page rename, etc
Wiki plugins extends basic syntax
Wiki syntax text area, parser, etc
Wiki structure (book and table of content)
Workspace and perspectives 4.x
WYSIWTSN 4.x
WYSIWYCA
WYSIWYG 2.x
XMLRPC




Useful Tools