<% # todo page superlatives (most-edited page, oldest page, etc) %>

<%= link_to data_vault_path, class: 'grey-text tooltipped', style: 'position: relative; top: 4px;', data: { position: 'bottom', enterDelay: '500', tooltip: "Back to your Data Vault" } do %> arrow_back <% end %> Your Notebook.ai usage

Your page updates

You can use the charts below to see how often you update your worldbuilding pages in Notebook.ai.

<%= area_chart current_user.content_change_events.where('updated_at > ?', DateTime.now - 7.days).group_by_day(:created_at).map { |date, count| [date.split(' ').first, count] }, download: true %>

Every field you edit on a page counts as one update. For example, editing a character's age and birthday counts as two updates, even if done at the same time.

Page breakdown

This graph represents the number of pages you've created of each type.

<%= pie_chart current_user.content.map { |n, l| [n.pluralize(l.count), l = l.count] }, download: true, legend: "left" %> You can click a page type in the key to toggle it on/off in the pie chart.