✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
🐇 Announcing Dash VTK for 3d simulation graphics. Check out the March webinar.

DashR DataTable

Hello Everyone. I am extremely new to R and Dash. I am having a problem with callbacks and DataTable. I have 4 inputs from the Dropdown and the output from the callback should be DataTable. I’ve uploaded csv file from local PC. The inputs are from the csv. The dataTable from CSV should be displayed after choosing options from dropdown.

I need code snippet for the app callback function for Dash DataTable. Thank you.

htmlDiv(list(
htmlLabel(‘Choose Category of product’,style = list(color = colors$text1)),
dccDropdown(
id = ‘category’,
options= option_category,
placeholder=“Select a category”,
)
),style = list(width = ‘25%’, display = ‘inline-block’)
),
htmlDiv(list(
htmlLabel(‘Choose Region of product’,style = list(color = colors$text1)),
dccDropdown(
id=‘region’,
options=option_region,
placeholder=“Select a region”,

    )
  ), style = list(width = '25%', flaot = 'display', display = 'inline-block')
  ),
  
  htmlDiv(list(
    htmlLabel('Choose Account of product',style = list(color = colors$text1)),
    dccDropdown(
      id = 'account',
      options= option_account,
      placeholder="Select an account",
      
    )
  ),style = list(width = '25%', flaot = 'display', display = 'inline-block')),
  htmlDiv(list(
    htmlLabel('Choose Brand of product',style = list(color = colors$text1)),
    dccDropdown(
      id = 'brand',
      options= option_brands,
      placeholder="Select a Brand",

app$callback(
output = list(id=‘table’, property=‘data’),
params = list(input(id=‘category’, property=‘value’),
input(id=‘region’, property=‘value’),
input(id=‘account’, property=‘value’),
input(id=‘crossfilter-yaxis-type’, property=‘value’)),