Posts

Showing posts with the label Pie Chart View in Sketchware

Pie Chart View in Sketchware

Image
In Sketchware, to create an app in which data with numerical values can be added and viewed as a pie chart, follow the steps given below. 1. Create a new project in Sketchware. 2. In  main.xml  add two Buttons  button1  and  button2 , and a ListView  listview2 . 3. Create a CustomView  items.xml  and add two TextViews in it  textview1  and  textview2 . 4. Select  items.xml  as CustomView of  listview2 . 5. In  MainActivity.java , add a Shared Preferences component  sp:sp , a Dialog component  dialog_add , and an Intent component  i . 6. Add a Map variable  map , three String variables  jsondata ,  label  and  value , and a ListMap  maplist . 7. In  onCreate  event use blocks to get data from shared preferences to  maplist  and display it in ListView. 8. In  onBindCustomView  event, display the data from  ma...