0

I'm new to Genie (and Julia) and I'm trying to make a basic dashboard on video game data, but am having some issues displaying my data.

I have my app as:

module App
using CSV
using DataFrames
using GenieFramework
@genietools

# dataset
const data = CSV.File("data/games_cleaned.csv") |> DataFrame
println(data)
# add your data analysis code
@handlers begin
    @in number_of_games = 10
    @out datatable = DataTable(data)
    @out datatable_paginated = DataTablePagination(rows_per_page=50)
    @out barplot = PlotData[]
end

# register a new route and the page that will begin
# loaded on access
@page("/", "app.jl.html")
end

Using the Genie Builder and trying to display data in a table in the no code editor, the table comes up saying "No data available". Has anyone else encountered this problem and knows a fix? Cheers!

Jack Gee
  • 136
  • 6

1 Answers1

0

Can you provide the app.jl.html-File? In the handler, the @out barplot = PlotData[] is empty variable - you need to specify the data that should be displayed within the PlotData-Function.

  • MorningPilates, this does not provide an answer to the question. At least I get the impression that you think you cannot answer without requesting more info first. Once you have sufficient [reputation](/help/whats-reputation) you will be able to [comment on any post](/help/privileges/comment); instead, [provide answers that don't require clarification from the asker](//meta.stackexchange.com/q/214173). – Yunnosch Aug 31 '23 at 14:58
  • Welcome to Stack Overflow! Please phrase this as an explained conditional answer, in order to avoid the impression of asking a clarification question instead of answering (for which a comment should be used instead of an answer, compare https://meta.stackexchange.com/questions/214173/why-do-i-need-50-reputation-to-comment-what-can-i-do-instead ). For example like "If your problem is ... then the solution is to .... because .... ." – Yunnosch Aug 31 '23 at 14:59
  • This does not provide an answer to the question. Once you have sufficient [reputation](https://stackoverflow.com/help/whats-reputation) you will be able to [comment on any post](https://stackoverflow.com/help/privileges/comment); instead, [provide answers that don't require clarification from the asker](https://meta.stackexchange.com/questions/214173/why-do-i-need-50-reputation-to-comment-what-can-i-do-instead). - [From Review](/review/low-quality-posts/34937207) – Arkellys Sep 02 '23 at 18:06