struct ContentView: View {
   @State private var appData = ApplicationData.shared

   var body: some View {
      VStack {
         Chart {
            PointPlot(appData.listOfItems, x: .value("Food", \.name), y: .value("Calories", \.calories))
         }.frame(height: 300)
         .padding()
         Spacer()
      }
   }
}