What does the DataStream demo show?
The DataStream demo is an embeddable statistics widget, built by VirtuoLab with React, Next.js and TypeScript and shown on the dashboard of the invented web shop Koffiebranderij Mokum. First, the widget shows four figures for today's website traffic: visitors, page views, conversion rate and average visit length, each with the change compared with yesterday. The starting values are 1,284 visitors, 4,563 page views, a conversion rate of 1.8% from 23 orders and a visit length of 3:42. A few visitors are added every 5 seconds. A line chart shows visitors per hour over the past 24 hours, and a list shows the 4 most viewed pages. Second, a settings panel switches between a light, dark and brand colour theme and between a compact, standard and wide size. Three switches show or hide the chart, the top pages and the comparison with yesterday. Additionally, the panel shows an embed code with the chosen settings as data attributes, plus a list of 3 allowed domains where the widget loads. The coffee roaster, its orders and all figures are sample data.
