According to the documentation "An array has to contain a key named 'type' containing the type of bean it represents". So I just had to add $decoded['type'] = 'table_name' before calling R::graph(). It also works if I add a hidden field named 'type' in the form I submit.

&lt;input type="hidden" name="type" value="table_name" /&gt;


Redbean: How to use R::graph() with json decoded input
i made an HTML page with all widths and heights as percentage "that's primary for my design to work with all resolutions" but when i re-size my web browser everything will be damaged.
is there a way that when i re-size my web browser i can scroll the page? 
